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