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