######################################################################
#
#	$Id: Makefile,v 1.11.12.1 2010/06/29 19:03:39 lming Exp $
#
#    Makefile used to build SSL library.
#
######################################################################

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

# Include the parent makefile.
all: localall

# Add stuff here for additional cleanup
localclean: clean_my_objs

component_clobber: clean_my_libs

-include $(BASEDIR)/Makefile.inc

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

#
# The list of source directories.
#
SRCDIR=$(BASEDIR)/src/ssl

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

#
# Search path for source header files, specific to this library
#
INCDIRS +=  -I./../../h -I./../../src/openssl098g/include -I./../../h/threadx -I./../../h/tcpip -I./../../src/bsp/customize
INCDIRS += -I./../Allegro/src/Engine/Includes -I./../Allegro/src/RomPager/Includes
INCDIRS += -I./../Allegro/src/RomPager/PhraseDictionaries -I./../Allegro/src/RomMailer/Includes
INCDIRS += -I./../Allegro/src/RomPop/Includes -I./../Allegro/src/WebServer/Includes -I./../../h/usb_host
INCDIRS += -I./../../h/rphttpd

#
# List of C object files for this library.
#
C_OBJ= $(OBJS)/tls_record.o\
	$(OBJS)/tls_alert.o\
	$(OBJS)/tls_buffer.o\
	$(OBJS)/tls_change_cipher_spec.o\
	$(OBJS)/tls_connection.o\
	$(OBJS)/tls_handshake.o\
	$(OBJS)/tls_cache.o\
	$(OBJS)/tls_api.o\
	$(OBJS)/https.o\
	$(OBJS)/random.o\
	$(OBJS)/CertHelper.o\
	$(OBJS)/tls_cert_db.o


#
# List of C++ object files.
#
CC_OBJ=

#
# List of assembly object files.
#
S_OBJ=	

#
# Any extra compilier flags.
#
MY_CFLAGS =

#
# Any extra defines go here
#
MY_DEFINES =-DOPENSSL098G

-include $(BASEDIR)/Makefile.bld


