FreeCalypso > hg > tcs211-c139
comparison chipsetsw/layer1/tpu_drivers/source/makefile_p @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 # Filename makefile_p | |
2 # | |
3 # Makefile for GSM TPU drivers - UNIX version | |
4 # | |
5 # Copyright (c) Texas Instruments 2003 | |
6 # | |
7 # | |
8 .SUFFIXES: .obj $(SUFFIXES) | |
9 | |
10 | |
11 # Grab customer and rf id's | |
12 #-------------------------- | |
13 CUST=$(cust) | |
14 RF=$(rf) | |
15 CHIPSET=$(bsb) | |
16 ANALOG=$(anl) | |
17 DSP=$(dsp) | |
18 BOARD=$(board) | |
19 LONG_JUMP=$(ljump) | |
20 TESTMODE=$(testmode) | |
21 | |
22 # Call of external makefile to extract RF_FAM and ANLG_FAM | |
23 #--------------------------------------------------------- | |
24 include ../../tools/define_split.mak | |
25 | |
26 | |
27 CL470_0 = cl470 | |
28 CL470_3 = perl ../../tools/icl470.pl cl470 | |
29 | |
30 CL470 = $(CL470_$(LONG_JUMP)) | |
31 AR470 = ar470 | |
32 | |
33 # Source code path | |
34 #----------------- | |
35 SOURCE=../source$(CUST) | |
36 PSOURCE=../p_source$(CUST) | |
37 | |
38 # Include file source paths | |
39 #-------------------------- | |
40 INCLUDE = -I../../include -I../../drivers1/common -I../source$(CUST) -I../../cust$(CUST) \ | |
41 -I../../tm_include -I../p_source$(CUST) -I../../audio_include \ | |
42 -I../../audio_cust$(CUST) -I../../hint -I../../gtt_include | |
43 | |
44 DEPEND = $(SOURCE)/tpudrv$(RF_FAM).h ../../include/l1_time.h ../../drivers1/common/iq.h \ | |
45 ../../cust$(CUST)/l1_rf$(RF_FAM).h tpudrv.h ../../include/l1_sw.cfg ../../include/l1_hw.cfg \ | |
46 ../../include/l1_confg.h | |
47 | |
48 # Object files path | |
49 #------------------ | |
50 OBJ=$(SOURCE)/obj | |
51 OBJS=obj | |
52 | |
53 # EXECUTION TARGET | |
54 #----------------- | |
55 all: ../lib/tpudrv_$(CUST)_$(RF_FAM)_$(CHIPSET)_$(ANLG_FAM)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib | |
56 | |
57 clean: | |
58 -rm obj/tpudrv.obj $(OBJ)/tpudrv$(RF_FAM).obj $(OBJ)/p_tpudrv$(RF_FAM).obj \ | |
59 -rm ../lib/tpudrv_$(CUST)_$(RF_FAM)_$(ANLG_FAM)_$(BOARD)_$(LONG_JUMP).lib | |
60 | |
61 # How to... | |
62 #---------- | |
63 | |
64 #...generate the library | |
65 #----------------------- | |
66 ../lib/tpudrv_$(CUST)_$(RF_FAM)_$(CHIPSET)_$(ANLG_FAM)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib: obj/tpudrv.obj $(OBJ)/tpudrv$(RF_FAM).obj $(OBJ)/p_tpudr$(RF_FAM).obj | |
67 $(AR470) r $@ obj/tpudrv.obj $(OBJ)/tpudrv$(RF_FAM).obj $(OBJ)/p_tpudr$(RF_FAM).obj | |
68 | |
69 #...generate the common object file | |
70 #---------------------------------- | |
71 obj/tpudrv.obj: $(DEPEND) tpudrv.c | |
72 $(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 -eoobj tpudrv.c | |
73 | |
74 | |
75 #...generate the target dependant object file | |
76 #-------------------------------------------- | |
77 $(OBJ)/tpudrv$(RF_FAM).obj: $(DEPEND) $(SOURCE)/tpudrv$(RF_FAM).c | |
78 $(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) -eoobj $(SOURCE)/tpudrv$(RF_FAM).c | |
79 | |
80 #...generate the target dependant GPRS object file | |
81 #------------------------------------------------- | |
82 $(OBJ)/p_tpudr$(RF_FAM).obj: $(DEPEND) $(PSOURCE)/p_tpudr$(RF_FAM).c | |
83 $(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) -eoobj $(PSOURCE)/p_tpudr$(RF_FAM).c | |
84 |