Removed VOL and AER INSTALL PATH
[processor-sdk/audio-preprocessing.git] / realtime_demo_bios / k2g / build / makefile
1 ifneq ($(RULES_MAKE), )\r
2 include $(RULES_MAKE)\r
3 endif\r
4 \r
5 CG_TOOL_ROOT := ${C6X_GEN_INSTALL_PATH}\r
6 \r
7 GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"\r
8 GEN_CMDS__FLAG := -l"configPkg/linker.cmd"\r
9 \r
10 ORDERED_OBJS += \
11 "./fil.obj" \
12 "./mhm.obj" \
13 "./mss.obj" \
14 "./mssproc.obj" \
15 "./sys.obj" \
16 "./sysasnr.obj" \
17 "./sysbf.obj" \
18 "./sysbfflt.obj" \
19 "./sysdrc.obj" \\r
20 "./syseram.obj" \
21 "./sysiram.obj" \
22 "./sysmss.obj" \
23 "./src/audio_cfg.obj" \\r
24 "./src/edma_cfg.obj" \
25 "./src/main.obj" \
26 "./src/mcasp_cfg.obj" \
27 "./src/sample_cs.obj" \
28 "./src/sample_k2g_cfg.obj" \
29 "./src/sample_k2g_int_reg.obj" \
30 "./src/test_exit.obj" \
31 "../src/sysbios/BIOS.obj" \
32 "../src/sysbios/c62_TaskSupport_asm.obj" \
33 "../src/sysbios/c64p_Exception_asm.obj" \
34 "../src/sysbios/c64p_Hwi_asm.obj" \
35 "../src/sysbios/c64p_Hwi_asm_switch.obj" \
36 "../src/sysbios/c64p_Hwi_disp_always.obj" \
37 "../src/sysbios/ti_tls_get_tp.obj" \
38 "../src/sysbios/timer64_Timer_asm.obj" \
39 "../bflinker.cmd" \
40 $(GEN_CMDS__FLAG) \
41 -llibc.a \
42 -lti.addon.cmb.ae66 \\r
43 -lti.board.ae66 \
44 -lti.drv.mcasp.ae66 \
45 -laer_c.ae64P \
46 -lvpe/lib/vpe_a.ae66 \
47 -lvpe/lib/vpe_c.ae66 \
48 -lutil/lib/util_c.ae66 \
49 -lmhm/lib/mhm_c.ae66 \
50 \r
51 -include ../makefile.init\r
52 \r
53 OS := $(shell uname)\r
54 ifeq ($(OS), Linux)\r
55 RM := rm -f\r
56 RMDIR := rm -d -f -r\r
57 else\r
58 RM := rm -f\r
59 RMDIR := rm -r -f\r
60 endif\r
61 \r
62 # All of the sources participating in the build are defined here\r
63 -include sources.mk\r
64 -include subdir_vars.mk\r
65 -include src/subdir_vars.mk\r
66 -include src/sysbios/subdir_vars.mk\r
67 -include subdir_rules.mk\r
68 -include src/subdir_rules.mk\r
69 -include src/sysbios/subdir_rules.mk\r
70 -include objects.mk\r
71 \r
72 ifneq ($(MAKECMDGOALS),clean)\r
73 ifneq ($(strip $(S_DEPS)),)\r
74 -include $(S_DEPS)\r
75 endif\r
76 ifneq ($(strip $(S_UPPER_DEPS)),)\r
77 -include $(S_UPPER_DEPS)\r
78 endif\r
79 ifneq ($(strip $(S62_DEPS)),)\r
80 -include $(S62_DEPS)\r
81 endif\r
82 ifneq ($(strip $(C64_DEPS)),)\r
83 -include $(C64_DEPS)\r
84 endif\r
85 ifneq ($(strip $(ASM_DEPS)),)\r
86 -include $(ASM_DEPS)\r
87 endif\r
88 ifneq ($(strip $(CC_DEPS)),)\r
89 -include $(CC_DEPS)\r
90 endif\r
91 ifneq ($(strip $(SV7A_DEPS)),)\r
92 -include $(SV7A_DEPS)\r
93 endif\r
94 ifneq ($(strip $(S55_DEPS)),)\r
95 -include $(S55_DEPS)\r
96 endif\r
97 ifneq ($(strip $(C67_DEPS)),)\r
98 -include $(C67_DEPS)\r
99 endif\r
100 ifneq ($(strip $(CLA_DEPS)),)\r
101 -include $(CLA_DEPS)\r
102 endif\r
103 ifneq ($(strip $(C??_DEPS)),)\r
104 -include $(C??_DEPS)\r
105 endif\r
106 ifneq ($(strip $(CPP_DEPS)),)\r
107 -include $(CPP_DEPS)\r
108 endif\r
109 ifneq ($(strip $(S??_DEPS)),)\r
110 -include $(S??_DEPS)\r
111 endif\r
112 ifneq ($(strip $(C_DEPS)),)\r
113 -include $(C_DEPS)\r
114 endif\r
115 ifneq ($(strip $(C62_DEPS)),)\r
116 -include $(C62_DEPS)\r
117 endif\r
118 ifneq ($(strip $(CXX_DEPS)),)\r
119 -include $(CXX_DEPS)\r
120 endif\r
121 ifneq ($(strip $(C++_DEPS)),)\r
122 -include $(C++_DEPS)\r
123 endif\r
124 ifneq ($(strip $(ASM_UPPER_DEPS)),)\r
125 -include $(ASM_UPPER_DEPS)\r
126 endif\r
127 ifneq ($(strip $(K_DEPS)),)\r
128 -include $(K_DEPS)\r
129 endif\r
130 ifneq ($(strip $(C43_DEPS)),)\r
131 -include $(C43_DEPS)\r
132 endif\r
133 ifneq ($(strip $(INO_DEPS)),)\r
134 -include $(INO_DEPS)\r
135 endif\r
136 ifneq ($(strip $(S67_DEPS)),)\r
137 -include $(S67_DEPS)\r
138 endif\r
139 ifneq ($(strip $(SA_DEPS)),)\r
140 -include $(SA_DEPS)\r
141 endif\r
142 ifneq ($(strip $(S43_DEPS)),)\r
143 -include $(S43_DEPS)\r
144 endif\r
145 ifneq ($(strip $(OPT_DEPS)),)\r
146 -include $(OPT_DEPS)\r
147 endif\r
148 ifneq ($(strip $(PDE_DEPS)),)\r
149 -include $(PDE_DEPS)\r
150 endif\r
151 ifneq ($(strip $(S64_DEPS)),)\r
152 -include $(S64_DEPS)\r
153 endif\r
154 ifneq ($(strip $(C_UPPER_DEPS)),)\r
155 -include $(C_UPPER_DEPS)\r
156 endif\r
157 ifneq ($(strip $(C55_DEPS)),)\r
158 -include $(C55_DEPS)\r
159 endif\r
160 endif\r
161 \r
162 -include ../makefile.defs\r
163 \r
164 # Add inputs and outputs from these tool invocations to the build variables \r
165 EXE_OUTPUTS += \
166 K2G_bf_rt.out \\r
167 \r
168 EXE_OUTPUTS__QUOTED += \
169 "K2G_bf_rt.out" \\r
170 \r
171 BIN_OUTPUTS += \
172 K2G_bf_rt.hex \\r
173 \r
174 BIN_OUTPUTS__QUOTED += \
175 "K2G_bf_rt.hex" \\r
176 \r
177 \r
178 # All Target\r
179 all: K2G_bf_rt.out\r
180 \r
181 # Tool invocations\r
182 K2G_bf_rt.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)\r
183         @echo 'Building target: $@'\r
184         @echo 'Invoking: C6000 Linker'\r
185         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --abi=eabi --opt_for_speed=5 -g --define=DEVICE_K2G --define=SOC_K2G --define=evmK2G --define=PLATFORM_INIT_IN --define=BUILD_DSP --diag_warning=225 --diag_wrap=off --display_error_number -z -m"K2G_bf_rt.map" --stack_size=0x2000 -i"${C6X_GEN_INSTALL_PATH}/lib" -i"${C6X_GEN_INSTALL_PATH}/include" -i"${PDK_INSTALL_PATH}/ti/board/lib/evmK2G/c66/release" -i"${PDK_INSTALL_PATH}/ti/addon/cmb/lib/k2g/c66/release" -i"${PDK_INSTALL_PATH}/ti/drv/mcasp/lib/k2g/c66/release" -i"${AER_INSTALL_PATH}/packages/ti/mas/aer/lib" -i"${VOLIB_INSTALL_PATH}/packages/ti/mas/" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="K2G_bf_rt_linkInfo.xml" --rom_model -o "K2G_bf_rt.out" $(ORDERED_OBJS)\r
186         @echo 'Finished building target: $@'\r
187         @echo ' '\r
188 \r
189 K2G_bf_rt.hex: $(EXE_OUTPUTS)\r
190         @echo 'Invoking: C6000 Hex Utility'\r
191         "${C6X_GEN_INSTALL_PATH}/bin/hex6x"  -o "K2G_bf_rt.hex" $(EXE_OUTPUTS__QUOTED)\r
192         @echo 'Finished building: $@'\r
193         @echo ' '\r
194 \r
195 # Other Targets\r
196 clean:\r
197         -$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED)\r
198         -$(RMDIR) $(GEN_MISC_DIRS__QUOTED)\r
199         -$(RM) "fil.d" "mhm.d" "mss.d" "mssproc.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "src\audio_cfg.d" "src\edma_cfg.d" "src\main.d" "src\mcasp_cfg.d" "src\sample_cs.d" "src\sample_k2g_cfg.d" "src\sample_k2g_int_reg.d" "src\test_exit.d" \r
200         -$(RM) "fil.obj" "mhm.obj" "mss.obj" "mssproc.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "src\audio_cfg.obj" "src\edma_cfg.obj" "src\main.obj" "src\mcasp_cfg.obj" "src\sample_cs.obj" "src\sample_k2g_cfg.obj" "src\sample_k2g_int_reg.obj" "src\test_exit.obj" \r
201         -@echo 'Finished clean'\r
202         -@echo ' '\r
203 \r
204 .PHONY: all clean dependents\r
205 .SECONDARY:\r
206 \r
207 -include ../makefile.targets\r
208 \r