comparison src/cs/layer1/tpu_drivers/source/makefile @ 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
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 # Filename makefile
2 #
3 # Makefile for GSM TPU drivers - UNIX version
4 #
5 # Copyright (c) Texas Instruments 1996
6 #
7 #
8 .SUFFIXES: .obj $(SUFFIXES)
9
10 # Grab customer and rf id's
11 #--------------------------
12 CUST=$(cust)
13 RF=$(rf)
14 CHIPSET=$(bsb)
15 ANALOG=$(anl)
16 DSP=$(dsp)
17 BOARD=$(board)
18 LONG_JUMP=$(ljump)
19 TESTMODE=$(testmode)
20
21 # Call of external makefile to extract RF_FAM and ANLG_FAM
22 #---------------------------------------------------------
23 include ../../tools/define_split.mak
24
25
26 CL470_0 = cl470
27 CL470_3 = perl ../../tools/icl470.pl cl470
28
29 CL470 = $(CL470_$(LONG_JUMP))
30 AR470 = ar470
31
32 # Source code path
33 #-----------------
34 SOURCE=../source$(CUST)
35
36 # Include file source paths
37 #--------------------------
38 INCLUDE = -I../../include -I../../drivers1/common -I../source$(CUST) -I../../cust$(CUST) \
39 -I../../tm_include -I../../audio_include \
40 -I../../audio_cust$(CUST) -I../../hint -I../../gtt_include
41
42 DEPEND = $(SOURCE)/tpudrv$(RF_FAM).h ../../include/l1_time.h ../../drivers1/common/iq.h \
43 ../../cust$(CUST)/l1_rf$(RF_FAM).h tpudrv.h ../../include/l1_sw.cfg ../../include/l1_hw.cfg \
44 ../../include/l1_confg.h
45
46
47 # Object files path
48 #------------------
49 OBJ=$(SOURCE)/obj
50 OBJS=obj
51
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
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.$(OBJS) $(OBJ)/tpudrv$(RF_FAM).$(OBJS)
67 $(AR470) r $@ obj/tpudrv.$(OBJS) $(OBJ)/tpudrv$(RF_FAM).$(OBJS)
68
69 #...generate the common object file
70 #----------------------------------
71 obj/tpudrv.$(OBJS): $(DEPEND) tpudrv.c
72 $(CL470) $(INCLUDE) -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
73
74
75 #...generate the target dependant object file
76 #--------------------------------------------
77 $(OBJ)/tpudrv$(RF_FAM).$(OBJS): $(DEPEND) $(SOURCE)/tpudrv$(RF_FAM).c
78 $(CL470) $(INCLUDE) -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dBOARD=$(BOARD) -dLONG_JUMP=$(LONG_JUMP) -dTESTMODE=$(TESTMODE) -c -g -me -mt -mw -o2 -pw2 -fr$(OBJ) -eo$(OBJS) $(SOURCE)/tpudrv$(RF_FAM).c
79