comparison src/cs/layer1/tpu_drivers/source/makefile_p_pc @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 # Filename makefile_p_pc
2 # Version 1.8
3 # Date 09/18/02
4 #
5 # Makefile for GSM TPU drivers - PC version
6 #
7 # Copyright (c) Texas Instruments 1996
8 #
9 #
10 .SUFFIXES: .obj $(SUFFIXES)
11
12
13 # Grab customer and rf id's
14 #--------------------------
15 CUST=$(cust)
16 RF=$(rf)
17 CHIPSET=$(bsb)
18 ANALOG=$(anl)
19 DSP=$(dsp)
20 BOARD=$(board)
21 LONG_JUMP=$(ljump)
22 TESTMODE=$(testmode)
23
24 # Directories for PC system
25 #----------------------------
26 ARMTOOLS =u:/470tools
27 PTOOL_DIR =u:/ptool/tools
28 INTRAM_DIR = u:/tools/INTRAM/TOOLS
29
30 CL470_0 = $(ARMTOOLS)/cl470
31 CL470_1 = $(PTOOL_DIR)/pcl470
32 CL470_2 = $(PTOOL_DIR)/vcl470
33 CL470_3 = $(INTRAM_DIR)/icl470 $(PTOOL_DIR)/vcl470
34
35 CL470 = $(CL470_$(LONG_JUMP))
36 AR470 =$(ARMTOOLS)/ar470
37 ASM470 =$(ARMTOOLS)/asm470
38
39 # Source code path
40 #-----------------
41 SOURCE=../source$(CUST)
42 PSOURCE=../p_source$(CUST)
43
44 # Include file source paths
45 #--------------------------
46 INCLUDE = \
47 -I../../nucleus/include \
48 -I../../include \
49 -I../../drivers1/common \
50 -I../source$(CUST) \
51 -I../../cust$(CUST) \
52 -I../../tm_include \
53 -I../p_source$(CUST) \
54 -I../../audio_include \
55 -I../../audio_cust$(CUST) \
56 -I../../hint
57
58
59 DEPEND = $(SOURCE)/tpudrv$(RF).h \
60 ../../include/l1_time.h \
61 ../../drivers1/common/iq.h \
62 ../../cust$(CUST)/l1_rf$(RF).h \
63 tpudrv.h
64
65
66 # Object files path
67 #------------------
68 OBJ=$(SOURCE)/obj
69 OBJS=obj_$(CHIPSET)_$(ANALOG)
70
71 # EXECUTION TARGET
72 #-----------------
73 all: ../lib/tpudrv_$(CUST)_$(RF)_$(CHIPSET)_$(ANALOG)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib
74
75 clean:
76 -rm obj/tpudrv.obj_$(ANALOG) $(OBJ)/tpudrv$(RF).obj_$(ANALOG)_$(BOARD)
77 -rm ../lib/tpudrv_$(CUST)_$(RF)_$(ANALOG)_$(BOARD)_$(LONG_JUMP).lib
78
79 # How to...
80 #----------
81
82 #...generate the library
83 #-----------------------
84 ../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
85 $(AR470) r $@ obj/tpudrv.obj_$(CHIPSET)_$(ANALOG) $(OBJ)/tpudrv$(RF).obj $(OBJ)/p_tpudr$(RF).obj
86
87 #...generate the common object file
88 #----------------------------------
89 obj/tpudrv.obj_$(CHIPSET)_$(ANALOG): $(DEPEND) tpudrv.c
90 $(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
91
92
93 #...generate the target dependant object file
94 #--------------------------------------------
95 $(OBJ)/tpudrv$(RF).obj: $(DEPEND) $(SOURCE)/tpudrv$(RF).c
96 $(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
97
98 #...generate the target dependant GPRS object file
99 #-------------------------------------------------
100 $(OBJ)/p_tpudr$(RF).obj: $(DEPEND) $(PSOURCE)/p_tpudr$(RF).c
101 $(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
102