######################################################################
#
#
#
# ***************************************************************
# NOTE: This is NOT an NDS makefile, this is ONLY used in NET+OS
# ***************************************************************
#
######################################################################

# Root directory for netos.
BASEDIR=./../../..

# Include the parent makefile.
all: localall
-include $(BASEDIR)/Makefile.inc

#-include .config

ifeq '$(TOOLSET)' 'arm'
OPT_PROCESSOR				= 
ASMOPT_PROCESSOR   	        = -gstabs -x assembler-with-cpp
else
OPT_PROCESSOR				= 
ASMOPT_PROCESSOR			= -EB -x assembler-with-cpp
endif

# Add stuff here for additional cleanup
localclean: clean_my_objs

component_clobber: clean_my_libs

# Location of object files.
OBJS = ./objs/$(PROCESSOR)/$(ENDIANDIR)/$(TOOLSET)

SRCDIR=.

#
# The name and path of the library to be built.
#
ifeq ($(DEBUG), on)
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libsshdbg.a
else
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libssh.a
endif


#
# Search path for source header files, specific to this library
#
INCDIRS += -I. -I$(BASEDIR)/h -I$(BASEDIR)/h/tcpip
INCDIRS += -I. -I$(BASEDIR)/h -I$(BASEDIR)/h/ssh
INCDIRE += -I$(BASEDIR)/h/threadx 
# DIGI WDS PORT (start)
INCDIRS += -I$(BASEDIR)/src/openssl102e/include/
# DIGI WDS PORT (end)
INCDIRS += -I. -I$(BASEDIR)/src/bsp/h 


#
# List of C object files for this library.
#
CC_OBJ= 


ifeq '$(TOOLSET)' 'gnu'
MY_CFLAGS =-D__GNU__
endif

# DIGI WDS PORT (start)
MY_CFLAGS += -DOPENSSL102E
# DIGI WDS PORT (end)

#
# List of C++ object files.
#
C_OBJ= $(OBJS)/ssh.o \
        $(OBJS)/ssh_buffer.o \
        $(OBJS)/ssh_connection.o \
        $(OBJS)/ssh_moduli.o \
        $(OBJS)/ssh_transport.o \
        $(OBJS)/ssh_userauth.o \
        $(OBJS)/uuencode.o \
        $(OBJS)/ssh_api.o 

#
# List of assembly object files.
#
S_OBJ=	

#
# Any extra compilier flags or defines go here.
#
EXTRA_FLAGS =

-include $(BASEDIR)/Makefile.bld

