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