FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/tpu_drivers/source/makefile_pc @ 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_pc | |
2 # Version 1.9 | |
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:/470tools/ptool/tools | |
28 | |
29 CL470_0 = $(ARMTOOLS)/cl470 | |
30 CL470_1 = $(PTOOL_DIR)/pcl470 | |
31 CL470_2 = $(PTOOL_DIR)/vcl470 | |
32 | |
33 CL470 = $(CL470_$(LONG_JUMP)) | |
34 AR470 =$(ARMTOOLS)/ar470 | |
35 ASM470 =$(ARMTOOLS)/asm470 | |
36 | |
37 # Source code path | |
38 #----------------- | |
39 SOURCE=../source$(CUST) | |
40 | |
41 # Include file source paths | |
42 #-------------------------- | |
43 INCLUDE = \ | |
44 -I../../nucleus/include \ | |
45 -I../../include \ | |
46 -I../../drivers1/common \ | |
47 -I../source$(CUST) \ | |
48 -I../../cust$(CUST) \ | |
49 -I../../tm_include \ | |
50 -I../../audio_include \ | |
51 -I../../audio_cust$(CUST) \ | |
52 -I../../hint | |
53 | |
54 DEPEND = $(SOURCE)/tpudrv$(RF).h \ | |
55 ../../include/l1_time.h \ | |
56 ../../drivers1/common/iq.h \ | |
57 ../../cust$(CUST)/l1_rf$(RF).h \ | |
58 tpudrv.h | |
59 | |
60 | |
61 # Object files path | |
62 #------------------ | |
63 OBJ=$(SOURCE)/obj | |
64 OBJS=obj_$(CHIPSET)_$(ANALOG) | |
65 | |
66 # EXECUTION TARGET | |
67 #----------------- | |
68 all: ../lib/tpudrv_$(CUST)_$(RF)_$(CHIPSET)_$(ANALOG)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib | |
69 | |
70 clean: | |
71 -rm obj/tpudrv.obj_$(ANALOG) $(OBJ)/tpudrv$(RF).obj_$(ANALOG)_$(BOARD) | |
72 -rm ../lib/tpudrv_$(CUST)_$(RF)_$(ANALOG)_$(BOARD)_$(LONG_JUMP).lib | |
73 | |
74 # How to... | |
75 #---------- | |
76 | |
77 #...generate the library | |
78 #----------------------- | |
79 ../lib/tpudrv_$(CUST)_$(RF)_$(CHIPSET)_$(ANALOG)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib: obj/tpudrv.obj_$(CHIPSET)_$(ANALOG) $(OBJ)/tpudrv$(RF).obj | |
80 $(AR470) r $@ obj/tpudrv.obj_$(CHIPSET)_$(ANALOG) $(OBJ)/tpudrv$(RF).obj | |
81 | |
82 #...generate the common object file | |
83 #---------------------------------- | |
84 obj/tpudrv.obj_$(CHIPSET)_$(ANALOG): $(DEPEND) tpudrv.c | |
85 $(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 | |
86 | |
87 | |
88 #...generate the target dependant object file | |
89 #-------------------------------------------- | |
90 $(OBJ)/tpudrv$(RF).obj: $(DEPEND) $(SOURCE)/tpudrv$(RF).c | |
91 $(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 | |
92 |