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