file_demo_bios/am57xx: use the common folder for all the shared files; change to...
[processor-sdk/audio-preprocessing.git] / file_demo_bios / k2g / build / makefile
1 # set global environment variables\r
2 SDK_INSTALL_PATH ?= C:/ti\r
3 C6X_GEN_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0\r
4 XDC_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdctools_3_32_01_22_core\r
5 BIOS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/bios_6_46_01_38\r
6 UIA_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/uia_2_00_06_52\r
7 XDAIS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdais_7_24_00_04\r
8 VOLIB_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/volib_C66_2_1_0_1\r
9 AER_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/aer_c64Px_obj_17_0_0_0\r
10 \r
11 GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"\r
12 GEN_CMDS__FLAG := -l"configPkg/linker.cmd"\r
13 \r
14 ORDERED_OBJS += \
15 "./main.obj" \
16 "./clk.obj" \\r
17 "./fil.obj" \\r
18 "./sys.obj" \\r
19 "./sysasnr.obj" \\r
20 "./sysbf.obj" \\r
21 "./sysbfflt.obj" \\r
22 "./sysdrc.obj" \\r
23 "./syseram.obj" \\r
24 "./sysiram.obj" \\r
25 "./sysmss.obj" \\r
26 "./sysvau.obj" \\r
27 "./mhm.obj" \\r
28 "./mss.obj" \\r
29 "./mssproc.obj" \\r
30 "../bflinker.cmd" \
31 $(GEN_CMDS__FLAG) \
32 -laer_c.ae64P \
33 -lvau/lib/vau_c.ae66 \
34 -lvpe/lib/vpe_a.ae66 \
35 -lvpe/lib/vpe_c.ae66 \
36 -lutil/lib/util_c.ae66 \
37 -lmhm/lib/mhm_c.ae66 \
38 -llibc.a \
39 \r
40 -include ../makefile.init\r
41 \r
42 OS := $(shell uname)\r
43 ifeq ($(OS), Linux)\r
44 RM := rm -f\r
45 RMDIR := rm -d -f -r\r
46 else\r
47 RM := rm -f\r
48 RMDIR := rm -r -f\r
49 endif\r
50 \r
51 # All of the sources participating in the build are defined here\r
52 ##-include subdir_vars.mk\r
53 # Add inputs and outputs from these tool invocations to the build variables \r
54 CMD_SRCS += \\r
55 ../bflinker.cmd \r
56 \r
57 CFG_SRCS += \\r
58 ../app.cfg \r
59 \r
60 C_SRCS += \\r
61 ../main.c \r
62 \r
63 OBJS += \\r
64 ./main.obj \r
65 \r
66 C_DEPS += \\r
67 ./main.d \r
68 \r
69 GEN_MISC_DIRS += \\r
70 ./configPkg/ \r
71 \r
72 GEN_CMDS += \\r
73 ./configPkg/linker.cmd \r
74 \r
75 GEN_OPTS += \\r
76 ./configPkg/compiler.opt \r
77 \r
78 GEN_FILES += \\r
79 ./configPkg/linker.cmd \\r
80 ./configPkg/compiler.opt \r
81 \r
82 ifeq ($(OS), Linux)\r
83 GEN_FILES__QUOTED += \\r
84 "configPkg/linker.cmd" \\r
85 "configPkg/compiler.opt" \r
86 GEN_MISC_DIRS__QUOTED += \\r
87 "configPkg/" \r
88 DEPEND_FILES = "main.d" "clk.d" "fil.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "sysvau.d" "mhm.d" "mss.d" "mssproc.d" \r
89 OBJECT_FILES = "main.obj" "clk.obj" "fil.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "sysvau.obj" "mhm.obj" "mss.obj" "mssproc.obj" \r
90 else\r
91 GEN_FILES__QUOTED += \\r
92 "configPkg\linker.cmd" \\r
93 "configPkg\compiler.opt" \r
94 GEN_MISC_DIRS__QUOTED += \\r
95 "configPkg" \r
96 DEPEND_FILES = "main.d" "clk.d" "fil.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "sysvau.d" "mhm.d" "mss.d" "mssproc.d" \r
97 OBJECT_FILES = "main.obj" "clk.obj" "fil.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.d" "syseram.obj" "sysiram.obj" "sysmss.obj" "sysvau.obj" "mhm.obj" "mss.obj" "mssproc.obj" \r
98 endif\r
99 \r
100 C_DEPS__QUOTED += \\r
101 "main.d" \r
102 \r
103 OBJS__QUOTED += \\r
104 "main.obj" \r
105 \r
106 C_SRCS__QUOTED += \\r
107 "../main.c" \r
108 \r
109 \r
110 \r
111 ##-include components/subdir_vars.mk\r
112 C_SRCS += \\r
113 ../../../common/components/clk.c \\r
114 ../../../common/components/fil.c \\r
115 ../../../common/components/sys.c \\r
116 ../../../common/components/sysasnr.c \\r
117 ../../../common/components/sysbf.c \\r
118 ../../../common/components/sysbfflt.c \\r
119 ../../../common/components/sysdrc.c \\r
120 ../../../common/components/syseram.c \\r
121 ../../../common/components/sysiram.c \\r
122 ../../../common/components/sysmss.c \\r
123 ../../../common/components/sysvau.c \r
124 \r
125 OBJS += \\r
126 clk.obj \\r
127 fil.obj \\r
128 sys.obj \\r
129 sysasnr.obj \\r
130 sysbf.obj \\r
131 sysbfflt.obj \\r
132 sysdrc.obj \\r
133 syseram.obj \\r
134 sysiram.obj \\r
135 sysmss.obj \\r
136 sysvau.obj \r
137 \r
138 C_DEPS += \\r
139 clk.d \\r
140 fil.d \\r
141 sys.d \\r
142 sysasnr.d \\r
143 sysbf.d \\r
144 sysbfflt.d \\r
145 sysdrc.d \\r
146 syseram.d \\r
147 sysiram.d \\r
148 sysmss.d \\r
149 sysvau.d \r
150 \r
151 C_DEPS__QUOTED += \\r
152 "clk.d" \\r
153 "fil.d" \\r
154 "sys.d" \\r
155 "sysasnr.d" \\r
156 "sysbf.d" \\r
157 "sysbfflt.d" \\r
158 "sysdrc.d" \\r
159 "syseram.d" \\r
160 "sysiram.d" \\r
161 "sysmss.d" \\r
162 "sysvau.d" \r
163 \r
164 OBJS__QUOTED += \\r
165 "clk.obj" \\r
166 "fil.obj" \\r
167 "sys.obj" \\r
168 "sysasnr.obj" \\r
169 "sysbf.obj" \\r
170 "sysbfflt.obj" \\r
171 "sysdrc.obj" \\r
172 "syseram.obj" \\r
173 "sysiram.obj" \\r
174 "sysmss.obj" \\r
175 "sysvau.obj" \r
176 \r
177 C_SRCS__QUOTED += \\r
178 "../../../common/components/clk.c" \\r
179 "../../../common/components/fil.c" \\r
180 "../../../common/components/sys.c" \\r
181 "../../../common/components/sysasnr.c" \\r
182 "../../../common/components/sysbf.c" \\r
183 "../../../common/components/sysbfflt.c" \\r
184 "../../../common/components/sysdrc.c" \\r
185 "../../../common/components/syseram.c" \\r
186 "../../../common/components/sysiram.c" \\r
187 "../../../common/components/sysmss.c" \\r
188 "../../../common/components/sysvau.c" \r
189 \r
190 \r
191 \r
192 ##-include components/mhm/src/subdir_vars.mk\r
193 C_SRCS += \\r
194 ../../../common/components/mhm/src/mhm.c \r
195 \r
196 OBJS += \\r
197 mhm.obj \r
198 \r
199 C_DEPS += \\r
200 mhm.d \r
201 \r
202 C_DEPS__QUOTED += \\r
203 "mhm.d" \r
204 \r
205 OBJS__QUOTED += \\r
206 "mhm.obj" \r
207 \r
208 C_SRCS__QUOTED += \\r
209 "../../../common/components/mhm/src/mhm.c" \r
210 \r
211 \r
212 \r
213 ##-include components/mss/src/subdir_vars.mk\r
214 C_SRCS += \\r
215 ../../../common/components/mss/src/mss.c \\r
216 ../../../common/components/mss/src/mssproc.c \r
217 \r
218 OBJS += \\r
219 mss.obj \\r
220 mssproc.obj \r
221 \r
222 C_DEPS += \\r
223 mss.d \\r
224 mssproc.d \r
225 \r
226 C_DEPS__QUOTED += \\r
227 "mss.d" \\r
228 "mssproc.d" \r
229 \r
230 OBJS__QUOTED += \\r
231 "mss.obj" \\r
232 "mssproc.obj" \r
233 \r
234 C_SRCS__QUOTED += \\r
235 "../../../common/components/mss/src/mss.c" \\r
236 "../../../common/components/mss/src/mssproc.c" \r
237 \r
238 \r
239 \r
240 ##-include subdir_rules.mk\r
241 configPkg/linker.cmd: ../app.cfg\r
242         @echo 'Building file: $<'\r
243         @echo 'Invoking: XDCtools'\r
244         "$(XDC_INSTALL_PATH)/xs" --xdcpath="$(BIOS_INSTALL_PATH)/packages;$(VOLIB_INSTALL_PATH)/packages;$(UIA_INSTALL_PATH)/packages;$(XDAIS_INSTALL_PATH)/packages;$(XDAIS_INSTALL_PATH)/examples;../../platforms/packages;$(AER_INSTALL_PATH)/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p evmTCI66AK2G02Custom -r debug -c "$(C6X_GEN_INSTALL_PATH)" --compileOptions "-g --optimize_with_debug" "$<"\r
245         @echo 'Finished building: $<'\r
246         @echo ' '\r
247 \r
248 configPkg/compiler.opt: | configPkg/linker.cmd\r
249 configPkg/: | configPkg/linker.cmd\r
250 \r
251 main.obj: ../main.c $(GEN_OPTS) $(GEN_HDRS)\r
252         @echo 'Building file: $<'\r
253         @echo 'Invoking: C6000 Compiler'\r
254         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d" $(GEN_OPTS__FLAG) "$<"\r
255         @echo 'Finished building: $<'\r
256         @echo ' '\r
257 \r
258 \r
259 ##-include components/subdir_rules.mk\r
260 clk.obj: ../../../common/components/clk.c $(GEN_OPTS) $(GEN_HDRS)\r
261         @echo 'Building file: $<'\r
262         @echo 'Invoking: C6000 Compiler'\r
263         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="./clk.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
264         @echo 'Finished building: $<'\r
265         @echo ' '\r
266 \r
267 fil.obj: ../../../common/components/fil.c $(GEN_OPTS) $(GEN_HDRS)\r
268         @echo 'Building file: $<'\r
269         @echo 'Invoking: C6000 Compiler'\r
270         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="fil.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
271         @echo 'Finished building: $<'\r
272         @echo ' '\r
273 \r
274 sys.obj: ../../../common/components/sys.c $(GEN_OPTS) $(GEN_HDRS)\r
275         @echo 'Building file: $<'\r
276         @echo 'Invoking: C6000 Compiler'\r
277         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sys.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
278         @echo 'Finished building: $<'\r
279         @echo ' '\r
280 \r
281 sysasnr.obj: ../../../common/components/sysasnr.c $(GEN_OPTS) $(GEN_HDRS)\r
282         @echo 'Building file: $<'\r
283         @echo 'Invoking: C6000 Compiler'\r
284         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysasnr.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
285         @echo 'Finished building: $<'\r
286         @echo ' '\r
287 \r
288 sysbf.obj: ../../../common/components/sysbf.c $(GEN_OPTS) $(GEN_HDRS)\r
289         @echo 'Building file: $<'\r
290         @echo 'Invoking: C6000 Compiler'\r
291         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysbf.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
292         @echo 'Finished building: $<'\r
293         @echo ' '\r
294 \r
295 sysbfflt.obj: ../../../common/components/sysbfflt.c $(GEN_OPTS) $(GEN_HDRS)\r
296         @echo 'Building file: $<'\r
297         @echo 'Invoking: C6000 Compiler'\r
298         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysbfflt.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
299         @echo 'Finished building: $<'\r
300         @echo ' '\r
301 \r
302 sysdrc.obj: ../../../common/components/sysdrc.c $(GEN_OPTS) $(GEN_HDRS)\r
303         @echo 'Building file: $<'\r
304         @echo 'Invoking: C6000 Compiler'\r
305         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysdrc.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
306         @echo 'Finished building: $<'\r
307         @echo ' '\r
308 \r
309 syseram.obj: ../../../common/components/syseram.c $(GEN_OPTS) $(GEN_HDRS)\r
310         @echo 'Building file: $<'\r
311         @echo 'Invoking: C6000 Compiler'\r
312         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="syseram.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
313         @echo 'Finished building: $<'\r
314         @echo ' '\r
315 \r
316 sysiram.obj: ../../../common/components/sysiram.c $(GEN_OPTS) $(GEN_HDRS)\r
317         @echo 'Building file: $<'\r
318         @echo 'Invoking: C6000 Compiler'\r
319         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysiram.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
320         @echo 'Finished building: $<'\r
321         @echo ' '\r
322 \r
323 sysmss.obj: ../../../common/components/sysmss.c $(GEN_OPTS) $(GEN_HDRS)\r
324         @echo 'Building file: $<'\r
325         @echo 'Invoking: C6000 Compiler'\r
326         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysmss.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
327         @echo 'Finished building: $<'\r
328         @echo ' '\r
329 \r
330 sysvau.obj: ../../../common/components/sysvau.c $(GEN_OPTS) $(GEN_HDRS)\r
331         @echo 'Building file: $<'\r
332         @echo 'Invoking: C6000 Compiler'\r
333         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="sysvau.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
334         @echo 'Finished building: $<'\r
335         @echo ' '\r
336 \r
337 \r
338 \r
339 ##-include components/mhm/src/subdir_rules.mk\r
340 mhm.obj: ../../../common/components/mhm/src/mhm.c $(GEN_OPTS) $(GEN_HDRS)\r
341         @echo 'Building file: $<'\r
342         @echo 'Invoking: C6000 Compiler'\r
343         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mhm.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
344         @echo 'Finished building: $<'\r
345         @echo ' '\r
346 \r
347 \r
348 \r
349 ##-include components/mss/src/subdir_rules.mk\r
350 mss.obj: ../../../common/components/mss/src/mss.c $(GEN_OPTS) $(GEN_HDRS)\r
351         @echo 'Building file: $<'\r
352         @echo 'Invoking: C6000 Compiler'\r
353         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mss.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
354         @echo 'Finished building: $<'\r
355         @echo ' '\r
356 \r
357 mssproc.obj: ../../../common/components/mss/src/mssproc.c $(GEN_OPTS) $(GEN_HDRS)\r
358         @echo 'Building file: $<'\r
359         @echo 'Invoking: C6000 Compiler'\r
360         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --include_path="$(C6X_GEN_INSTALL_PATH)/include" -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mssproc.d" --obj_directory="." $(GEN_OPTS__FLAG) "$<"\r
361         @echo 'Finished building: $<'\r
362         @echo ' '\r
363         \r
364 \r
365 \r
366 ##-include objects.mk\r
367 USER_OBJS :=\r
368 \r
369 LIBS := -laer_c.ae64P -lvau/lib/vau_c.ae66 -lvpe/lib/vpe_a.ae66 -lvpe/lib/vpe_c.ae66 -lutil/lib/util_c.ae66 -lmhm/lib/mhm_c.ae66 -llibc.a\r
370 \r
371 \r
372 \r
373 ifneq ($(MAKECMDGOALS),clean)\r
374 ifneq ($(strip $(S_DEPS)),)\r
375 -include $(S_DEPS)\r
376 endif\r
377 ifneq ($(strip $(S_UPPER_DEPS)),)\r
378 -include $(S_UPPER_DEPS)\r
379 endif\r
380 ifneq ($(strip $(S62_DEPS)),)\r
381 -include $(S62_DEPS)\r
382 endif\r
383 ifneq ($(strip $(C64_DEPS)),)\r
384 -include $(C64_DEPS)\r
385 endif\r
386 ifneq ($(strip $(ASM_DEPS)),)\r
387 -include $(ASM_DEPS)\r
388 endif\r
389 ifneq ($(strip $(CC_DEPS)),)\r
390 -include $(CC_DEPS)\r
391 endif\r
392 ifneq ($(strip $(SV7A_DEPS)),)\r
393 -include $(SV7A_DEPS)\r
394 endif\r
395 ifneq ($(strip $(S55_DEPS)),)\r
396 -include $(S55_DEPS)\r
397 endif\r
398 ifneq ($(strip $(C67_DEPS)),)\r
399 -include $(C67_DEPS)\r
400 endif\r
401 ifneq ($(strip $(CLA_DEPS)),)\r
402 -include $(CLA_DEPS)\r
403 endif\r
404 ifneq ($(strip $(C??_DEPS)),)\r
405 -include $(C??_DEPS)\r
406 endif\r
407 ifneq ($(strip $(CPP_DEPS)),)\r
408 -include $(CPP_DEPS)\r
409 endif\r
410 ifneq ($(strip $(S??_DEPS)),)\r
411 -include $(S??_DEPS)\r
412 endif\r
413 ifneq ($(strip $(C_DEPS)),)\r
414 -include $(C_DEPS)\r
415 endif\r
416 ifneq ($(strip $(C62_DEPS)),)\r
417 -include $(C62_DEPS)\r
418 endif\r
419 ifneq ($(strip $(CXX_DEPS)),)\r
420 -include $(CXX_DEPS)\r
421 endif\r
422 ifneq ($(strip $(C++_DEPS)),)\r
423 -include $(C++_DEPS)\r
424 endif\r
425 ifneq ($(strip $(ASM_UPPER_DEPS)),)\r
426 -include $(ASM_UPPER_DEPS)\r
427 endif\r
428 ifneq ($(strip $(K_DEPS)),)\r
429 -include $(K_DEPS)\r
430 endif\r
431 ifneq ($(strip $(C43_DEPS)),)\r
432 -include $(C43_DEPS)\r
433 endif\r
434 ifneq ($(strip $(INO_DEPS)),)\r
435 -include $(INO_DEPS)\r
436 endif\r
437 ifneq ($(strip $(S67_DEPS)),)\r
438 -include $(S67_DEPS)\r
439 endif\r
440 ifneq ($(strip $(SA_DEPS)),)\r
441 -include $(SA_DEPS)\r
442 endif\r
443 ifneq ($(strip $(S43_DEPS)),)\r
444 -include $(S43_DEPS)\r
445 endif\r
446 ifneq ($(strip $(OPT_DEPS)),)\r
447 -include $(OPT_DEPS)\r
448 endif\r
449 ifneq ($(strip $(PDE_DEPS)),)\r
450 -include $(PDE_DEPS)\r
451 endif\r
452 ifneq ($(strip $(S64_DEPS)),)\r
453 -include $(S64_DEPS)\r
454 endif\r
455 ifneq ($(strip $(C_UPPER_DEPS)),)\r
456 -include $(C_UPPER_DEPS)\r
457 endif\r
458 ifneq ($(strip $(C55_DEPS)),)\r
459 -include $(C55_DEPS)\r
460 endif\r
461 endif\r
462 \r
463 -include ../makefile.defs\r
464 \r
465 # Add inputs and outputs from these tool invocations to the build variables \r
466 EXE_OUTPUTS += \
467 K2G_bf.out \
468 \r
469 EXE_OUTPUTS__QUOTED += \
470 "K2G_bf.out" \
471 \r
472 BIN_OUTPUTS += \
473 K2G_bf.hex \
474 \r
475 BIN_OUTPUTS__QUOTED += \
476 "K2G_bf.hex" \
477 \r
478 \r
479 # All Target\r
480 all: K2G_bf.out\r
481 \r
482 # Tool invocations\r
483 K2G_bf.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)\r
484         @echo 'Building target: $@'\r
485         @echo 'Invoking: C6000 Linker'\r
486         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 -g --define=k2g02 --define=dsp0 --diag_warning=225 --diag_wrap=off --display_error_number -z -m"K2G_bf.map" --heap_size=0x800 --stack_size=0x800 -i"$(AER_INSTALL_PATH)/packages/ti/mas/aer/lib" -i"$(VOLIB_INSTALL_PATH)/packages/ti/mas/" -i"$(C6X_GEN_INSTALL_PATH)/lib" -i"$(C6X_GEN_INSTALL_PATH)/include" --reread_libs --define=CORE1=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="K2G_bf_linkInfo.xml" --rom_model -o "K2G_bf.out" $(ORDERED_OBJS)\r
487         @echo 'Finished building target: $@'\r
488         @echo ' '\r
489 \r
490 K2G_bf.hex: $(EXE_OUTPUTS)\r
491         @echo 'Invoking: C6000 Hex Utility'\r
492         "$(C6X_GEN_INSTALL_PATH)/bin/hex6x"  -o "K2G_bf.hex" $(EXE_OUTPUTS__QUOTED)\r
493         @echo 'Finished building: $@'\r
494         @echo ' '\r
495 \r
496 # Other Targets\r
497 clean:\r
498         -$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED)\r
499         -$(RMDIR) $(GEN_MISC_DIRS__QUOTED)\r
500         -$(RM) ${DEPEND_FILES} \r
501         -$(RM) ${OBJECT_FILES}\r
502         -@echo 'Finished clean'\r
503         -@echo ' '\r
504 \r
505 .PHONY: all clean dependents\r
506 .SECONDARY:\r
507 \r
508 -include ../makefile.targets\r
509 \r