diff src/cs/layer1/tpu_drivers/source/makefile_p_pc @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/layer1/tpu_drivers/source/makefile_p_pc	Sun Sep 25 22:50:11 2016 +0000
@@ -0,0 +1,102 @@
+#    Filename makefile_p_pc                  
+#    Version  1.8                  
+#    Date     09/18/02                  
+#        
+#       Makefile for GSM TPU drivers - PC version
+#
+#       Copyright (c) Texas Instruments 1996
+#      
+#
+.SUFFIXES: .obj $(SUFFIXES)
+
+
+# Grab customer and rf id's
+#--------------------------
+CUST=$(cust)
+RF=$(rf)
+CHIPSET=$(bsb)
+ANALOG=$(anl)
+DSP=$(dsp)
+BOARD=$(board)
+LONG_JUMP=$(ljump)
+TESTMODE=$(testmode)
+
+# Directories for PC system
+#----------------------------
+ARMTOOLS =u:/470tools
+PTOOL_DIR =u:/ptool/tools
+INTRAM_DIR = u:/tools/INTRAM/TOOLS
+
+CL470_0 = $(ARMTOOLS)/cl470
+CL470_1 = $(PTOOL_DIR)/pcl470
+CL470_2 = $(PTOOL_DIR)/vcl470
+CL470_3 = $(INTRAM_DIR)/icl470 $(PTOOL_DIR)/vcl470
+
+CL470 = $(CL470_$(LONG_JUMP))
+AR470   =$(ARMTOOLS)/ar470
+ASM470  =$(ARMTOOLS)/asm470
+
+# Source code path
+#-----------------
+SOURCE=../source$(CUST)
+PSOURCE=../p_source$(CUST)
+
+# Include file source paths
+#--------------------------
+INCLUDE = \
+	-I../../nucleus/include \
+	-I../../include \
+	-I../../drivers1/common \
+	-I../source$(CUST) \
+	-I../../cust$(CUST) \
+	-I../../tm_include \
+	-I../p_source$(CUST) \
+  -I../../audio_include \
+  -I../../audio_cust$(CUST) \
+  -I../../hint
+
+ 
+DEPEND = $(SOURCE)/tpudrv$(RF).h \
+	../../include/l1_time.h \
+	../../drivers1/common/iq.h \
+	../../cust$(CUST)/l1_rf$(RF).h \
+	tpudrv.h
+
+
+# Object files path
+#------------------
+OBJ=$(SOURCE)/obj
+OBJS=obj_$(CHIPSET)_$(ANALOG)
+
+# EXECUTION TARGET
+#-----------------
+all:	../lib/tpudrv_$(CUST)_$(RF)_$(CHIPSET)_$(ANALOG)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib 
+
+clean:
+	-rm obj/tpudrv.obj_$(ANALOG) $(OBJ)/tpudrv$(RF).obj_$(ANALOG)_$(BOARD) 
+	-rm ../lib/tpudrv_$(CUST)_$(RF)_$(ANALOG)_$(BOARD)_$(LONG_JUMP).lib
+
+# How to...
+#----------
+
+#...generate the library
+#-----------------------
+../lib/tpudrv_$(CUST)_$(RF)_$(CHIPSET)_$(ANALOG)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib: obj/tpudrv.obj_$(CHIPSET)_$(ANALOG) $(OBJ)/tpudrv$(RF).obj $(OBJ)/p_tpudr$(RF).obj
+	$(AR470) r $@ obj/tpudrv.obj_$(CHIPSET)_$(ANALOG) $(OBJ)/tpudrv$(RF).obj $(OBJ)/p_tpudr$(RF).obj
+
+#...generate the common object file
+#----------------------------------
+obj/tpudrv.obj_$(CHIPSET)_$(ANALOG): $(DEPEND) tpudrv.c
+	$(CL470) $(INCLUDE) -i$(ARMTOOLS)  -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dLONG_JUMP=$(LONG_JUMP) -dTESTMODE=$(TESTMODE) -c -g -me -mt -mw -o2 -pw2 -fr obj -eo$(OBJS) tpudrv.c
+
+
+#...generate the target dependant object file
+#--------------------------------------------
+$(OBJ)/tpudrv$(RF).obj: $(DEPEND) $(SOURCE)/tpudrv$(RF).c 
+	$(CL470) $(INCLUDE) -i$(ARMTOOLS)  -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dBOARD=$(BOARD) -dLONG_JUMP=$(LONG_JUMP) -dTESTMODE=$(TESTMODE) -c -g -me -mt -mw -o2 -pw2 -fr$(OBJ) $(SOURCE)/tpudrv$(RF).c 
+
+#...generate the target dependant GPRS object file
+#-------------------------------------------------
+$(OBJ)/p_tpudr$(RF).obj: $(DEPEND) $(PSOURCE)/p_tpudr$(RF).c 
+	$(CL470) $(INCLUDE) -i$(ARMTOOLS) -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dBOARD=$(BOARD) -dLONG_JUMP=$(LONG_JUMP) -c -g -me -mt -mw -o2 -pw2 -fr$(OBJ) $(PSOURCE)/p_tpudr$(RF).c 
+