RTL00_WEB/USDK/component/common/network/ssl/polarssl-1.3.8/Makefile
2017-06-21 03:00:20 +03:00

97 lines
3.2 KiB
Makefile

include $(MAKE_INCLUDE_GEN)
.PHONY: all clean
#*****************************************************************************#
# VARIABLES #
#*****************************************************************************#
MODULE_IFLAGS += -I../include
#*****************************************************************************#
# Source FILE LIST #
#*****************************************************************************#
CSRC = library/aesni.o \
library/ccm.o \
library/cipher.o \
library/cipher_wrap.o \
library/debug.o \
library/ecp_ram.o \
library/error.o \
library/gcm.o \
library/havege.o \
library/memory_buffer_alloc.o \
library/padlock.o \
library/pbkdf2.o \
library/pkcs5.o \
library/pkcs11.o \
library/pkcs12.o \
library/pkparse.o \
library/ssl_cache.o \
library/ssl_cli.o \
library/ssl_srv.o \
library/ssl_ciphersuites.o \
library/ssl_tls.o \
library/threading.o \
library/timing.o \
library/version.o \
library/version_features.o \
library/x509.o \
library/x509_create.o \
library/x509_crl.o \
library/x509_crt.o \
library/x509_csr.o \
library/x509write_crt.o \
library/x509write_csr.o \
../ssl_ram_map/ssl_ram_map.o \
ssl_self_test.o
ROM_CSRC =
ifeq ($(CONFIG_NORMAL_BUILD),y) #Normal
CSRC += $(ROM_CSRC)
else ifeq ($(CONFIG_RELEASE_BUILD),y) #CONFIG_RELEASE_BUILD
CSRC =
else
# Not change CSRC
endif
#*****************************************************************************#
# Object FILE LIST #
#*****************************************************************************#
OBJS = $(CSRC)
#*****************************************************************************#
# Include Dependency #
#*****************************************************************************#
-include $(OBJS:.o=.d)
#*****************************************************************************#
# RULES TO GENERATE TARGETS #
#*****************************************************************************#
# Define the Rules to build the core targets
all: CORE_TARGETS COPY_RAM_OBJS
#*****************************************************************************#
# GENERATE OBJECT FILE
#*****************************************************************************#
CORE_TARGETS: $(OBJS)
#*****************************************************************************#
# CLEAN GENERATED FILES #
#*****************************************************************************#
clean:
$(REMOVE) library/*.o
$(REMOVE) library/*.i
$(REMOVE) library/*.s
$(REMOVE) library/*.d
$(REMOVE) ../ssl_ram_map/*.o
$(REMOVE) ../ssl_ram_map/*.i
$(REMOVE) ../ssl_ram_map/*.s
$(REMOVE) ../ssl_ram_map/*.d
-include $(DEPS)