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