diff g23m/condat/com/src/comlib/comlib.mak @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/g23m/condat/com/src/comlib/comlib.mak	Mon Jun 01 03:24:05 2015 +0000
@@ -0,0 +1,61 @@
+#-----------------------------------------------------------------------------
+#  Project :
+#  Modul   :  comlib.mak
+#-----------------------------------------------------------------------------
+#  Copyright 2002 Texas Instruments Berlin, AG
+#                 All rights reserved.
+#
+#                 This file is confidential and a trade secret of Texas
+#                 Instruments Berlin, AG
+#                 The receipt of or possession of this file does not convey
+#                 any rights to reproduce or disclose its contents or to
+#                 manufacture, use, or sell anything it may describe, in
+#                 whole, or in part, without the specific written consent of
+#                 Texas Instruments Berlin, AG.
+#-----------------------------------------------------------------------------
+#|  Purpose :
+#-----------------------------------------------------------------------------
+#
+#	Setting Directory for COMLIB Objects
+#
+OBJ := $(L23_OBJ_DIR)/comlib
+
+SRCCOMLIB=$(CONDAT_DIR)/com/src/comlib
+
+
+COMLIBOBJ= $(OBJ)/cl_ribu.$(OBJ_TAIL) \
+	$(OBJ)/cl_md5.$(OBJ_TAIL)
+
+ifeq ($(PMODE),2)
+COMLIBOBJ += $(OBJ)/cl_rlcmac.$(OBJ_TAIL)
+endif
+
+
+#
+# ---------------- create COMLIB ---------------------
+#
+
+$(TOP_DIR)/$(COMLIB_LIB) : $(OBJ) $(COMLIBOBJ) 
+	$(AR) r $(TOP_DIR)/$(COMLIB_LIB) $(COMLIBOBJ)
+
+$(OBJ):
+	mkdir $(subst /,$(SLASH),$(OBJ))
+
+clean:
+	$(REMOVE) $(subst /,$(SLASH),$(OBJ))
+
+$(COMLIBOBJ): $(OBJ)/%.$(OBJ_TAIL) : $(SRCCOMLIB)/%.c
+	echo -D$(NCONFIG) >  cmd
+#	echo -DNTRACE >> cmd
+	echo -D$(NWARN) >> cmd
+	echo $(COPT) >> cmd
+	echo $(COPT1) >> cmd
+	echo $(COTAR) >> cmd
+	echo -I$(ICOM) >> cmd
+	echo -I$(INUC) >> cmd
+	echo -I$(ICDG) >> cmd
+	echo -I$(ISAP_INLINE) >> cmd
+	echo -fr$(OBJ) >> cmd
+	$(CC_PRE) $^ -@cmd
+	$(CC_INT) $(addsuffix .pp,$(basename $^))
+	$(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd