06e9e5e2b8fc3811e9981926de2791c8a901f052
[apps/tidep0079.git] / EC_Master_SysBios_Am572x / Workspace / SYSBIOS_AM57xx / emllICSS / Release / makefile
1 ####PC-- test ####
2 ifndef MAKE
3 export MAKE = make
4 endif
6 ifndef ECHO
7 export ECHO = echo
8 endif
10 GEN_OPTS__FLAG := @"configPkg/compiler.opt"
11 GEN_CMDS__FLAG := "configPkg/linker.cmd"
13 ORDERED_OBJS += \
14 "./TimerP_tirtos.o" \
15 "./UART_soc.o" \
16 "./icss_emacFwConfig.o" \
17 "./icss_emacSoc.o" \
18 "./icss_emac_ec_device.o" \
20 OS := $(shell uname)
21 ifeq ($(OS), Linux)
22 RM := rm -f
23 RMDIR := rm -f -r
24 else
25 RM := rm -f
26 RMDIR := rm -r -f
27 endif
29 # All of the sources participating in the build are defined here
30 #-include sources.mk
31 # Every subdirectory with source files must be described here
32 SUBDIRS := \
33 . \
35 #-include subdir_vars.mk
36 # Add inputs and outputs from these tool invocations to the build variables 
37 CFG_SRCS += \
38 ..\..\EcMasterDemo\EcMaster.cfg 
40 C_SRCS += \
41 $(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c \
42 $(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c \
43 $(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c \
44 $(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c \
45 ../icss_emac_ec_device.c 
47 OBJS += \
48 ./TimerP_tirtos.o \
49 ./UART_soc.o \
50 ./icss_emacFwConfig.o \
51 ./icss_emacSoc.o \
52 ./icss_emac_ec_device.o 
54 C_DEPS += \
55 ./TimerP_tirtos.d \
56 ./UART_soc.d \
57 ./icss_emacFwConfig.d \
58 ./icss_emacSoc.d \
59 ./icss_emac_ec_device.d  
61 GEN_MISC_DIRS += \
62 ./configPkg 
64 GEN_CMDS += \
65 ./configPkg/linker.cmd 
67 GEN_OPTS += \
68 ./configPkg/compiler.opt 
70 GEN_FILES += \
71 ./configPkg/linker.cmd \
72 ./configPkg/compiler.opt 
74 GEN_FILES__QUOTED += \
75 "configPkg\linker.cmd" \
76 "configPkg\compiler.opt" 
78 GEN_MISC_DIRS__QUOTED += \
79 "configPkg" 
81 OBJS__QUOTED += \
82 "TimerP_tirtos.o" \
83 "UART_soc.o" \
84 "icss_emacFwConfig.o" \
85 "icss_emacSoc.o" \
86 "icss_emac_ec_device.o"
88 C_DEPS__QUOTED += \
89 "TimerP_tirtos.d" \
90 "UART_soc.d" \
91 "icss_emacFwConfig.d" \
92 "icss_emacSoc.d" \
93 "icss_emac_ec_device.d"  
95 C_SRCS__QUOTED += \
96 "$(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c" \
97 "$(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c" \
98 "$(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c" \
99 "$(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c" \
100 "../icss_emac_ec_device.c" \
102 #-include subdir_rules.mk
103 # Each subdirectory must supply rules for building sources it contributes
104 configPkg/linker.cmd: ../../EcMasterDemo/EcMaster.cfg
105         @echo 'Building file: $<'
106         @echo 'Invoking: XDCtools'
107         "$(XDC_INSTALL_PATH)/xs" --xdcpath="$(BIOS_INSTALL_PATH)/packages;$(PDK_INSTALL_PATH);" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.idkAM572X -r release -b "$(PDK_INSTALL_PATH)/ti/build/am572x/config_am572x_a15.bld" -c "$(TOOLCHAIN_PATH_A15)" -DBOARD=idkAM572x "$<"
108         @echo 'Finished building: $<'
109         @echo ' '
111 configPkg/compiler.opt: | configPkg/linker.cmd
112 configPkg/: | configPkg/linker.cmd
114 TimerP_tirtos.o: $(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c $(GEN_OPTS) | $(GEN_HDRS)
115         @echo 'Building file: $<'
116         @echo 'Invoking: GNU Compiler'
117         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_AM572x -DAM5XX_FAMILY_BUILD -DMEM_BARRIER_DISABLE -I"../$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac/src" -I"../../../../SDK/INC" -I"../../../../SDK/INC/SYSBIOS" -I"../../../../Sources/LinkOsLayer/SYSBIOS" -I"../../../../Sources/LinkOsLayer" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include/newlib-nano" -O2 -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
118         @echo 'Finished building: $<'
119         @echo ' '
121 UART_soc.o: $(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c $(GEN_OPTS) $(GEN_HDRS)
122         @echo 'Building file: $<'
123         @echo 'Invoking: GNU Compiler'
124         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_AM572x -DAM5XX_FAMILY_BUILD -DMEM_BARRIER_DISABLE -I"../$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac/src" -I"../../../../SDK/INC" -I"../../../../SDK/INC/SYSBIOS" -I"../../../../Sources/LinkOsLayer/SYSBIOS" -I"../../../../Sources/LinkOsLayer" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include/newlib-nano" -O2 -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
125         @echo 'Finished building: $<'
126         @echo ' '
128 icss_emacSoc.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c $(GEN_OPTS) $(GEN_HDRS)
129         @echo 'Building file: $<'
130         @echo 'Invoking: GNU Compiler'
131         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_AM572x -DAM5XX_FAMILY_BUILD -DMEM_BARRIER_DISABLE -I"../$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac/src" -I"../../../../SDK/INC" -I"../../../../SDK/INC/SYSBIOS" -I"../../../../Sources/LinkOsLayer/SYSBIOS" -I"../../../../Sources/LinkOsLayer" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include/newlib-nano" -O2 -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
132         @echo 'Finished building: $<'
133         @echo ' '
135 icss_emacFwConfig.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c $(GEN_OPTS) $(GEN_HDRS)
136         @echo 'Building file: $<'
137         @echo 'Invoking: GNU Compiler'
138         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_AM572x -DAM5XX_FAMILY_BUILD -DMEM_BARRIER_DISABLE -I"../$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac/src" -I"../../../../SDK/INC" -I"../../../../SDK/INC/SYSBIOS" -I"../../../../Sources/LinkOsLayer/SYSBIOS" -I"../../../../Sources/LinkOsLayer" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include/newlib-nano" -O2 -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
139         @echo 'Finished building: $<'
140         @echo ' '
142 icss_emac_ec_device.o: ../icss_emac_ec_device.c $(GEN_OPTS) $(GEN_HDRS)
143         @echo 'Building file: $<'
144         @echo 'Invoking: GNU Compiler'
145         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_AM572x -DAM5XX_FAMILY_BUILD -DMEM_BARRIER_DISABLE -I"../$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac" -I"$(PDK_INSTALL_PATH)/ti/drv/icss_emac/src" -I"../../../../SDK/INC" -I"../../../../SDK/INC/SYSBIOS" -I"../../../../Sources/LinkOsLayer/SYSBIOS" -I"../../../../Sources/LinkOsLayer" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include" -I"$(TOOLCHAIN_PATH_A15)/arm-none-eabi/include/newlib-nano" -O2 -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
146         @echo 'Finished building: $<'
147         @echo ' '
148         
150 #-include objects.mk
151 USER_OBJS :=
153 LIBS :=
156 ifneq ($(MAKECMDGOALS),clean)
157 ifneq ($(strip $(C55_DEPS)),)
158 -include $(C55_DEPS)
159 endif
160 ifneq ($(strip $(C_UPPER_DEPS)),)
161 -include $(C_UPPER_DEPS)
162 endif
163 ifneq ($(strip $(S67_DEPS)),)
164 -include $(S67_DEPS)
165 endif
166 ifneq ($(strip $(S62_DEPS)),)
167 -include $(S62_DEPS)
168 endif
169 ifneq ($(strip $(S_DEPS)),)
170 -include $(S_DEPS)
171 endif
172 ifneq ($(strip $(OPT_DEPS)),)
173 -include $(OPT_DEPS)
174 endif
175 ifneq ($(strip $(C??_DEPS)),)
176 -include $(C??_DEPS)
177 endif
178 ifneq ($(strip $(ASM_UPPER_DEPS)),)
179 -include $(ASM_UPPER_DEPS)
180 endif
181 ifneq ($(strip $(S??_DEPS)),)
182 -include $(S??_DEPS)
183 endif
184 ifneq ($(strip $(C64_DEPS)),)
185 -include $(C64_DEPS)
186 endif
187 ifneq ($(strip $(CXX_DEPS)),)
188 -include $(CXX_DEPS)
189 endif
190 ifneq ($(strip $(S64_DEPS)),)
191 -include $(S64_DEPS)
192 endif
193 ifneq ($(strip $(INO_DEPS)),)
194 -include $(INO_DEPS)
195 endif
196 ifneq ($(strip $(CLA_DEPS)),)
197 -include $(CLA_DEPS)
198 endif
199 ifneq ($(strip $(S55_DEPS)),)
200 -include $(S55_DEPS)
201 endif
202 ifneq ($(strip $(SV7A_DEPS)),)
203 -include $(SV7A_DEPS)
204 endif
205 ifneq ($(strip $(C62_DEPS)),)
206 -include $(C62_DEPS)
207 endif
208 ifneq ($(strip $(C67_DEPS)),)
209 -include $(C67_DEPS)
210 endif
211 ifneq ($(strip $(PDE_DEPS)),)
212 -include $(PDE_DEPS)
213 endif
214 ifneq ($(strip $(K_DEPS)),)
215 -include $(K_DEPS)
216 endif
217 ifneq ($(strip $(C_DEPS)),)
218 -include $(C_DEPS)
219 endif
220 ifneq ($(strip $(CC_DEPS)),)
221 -include $(CC_DEPS)
222 endif
223 ifneq ($(strip $(C++_DEPS)),)
224 -include $(C++_DEPS)
225 endif
226 ifneq ($(strip $(C43_DEPS)),)
227 -include $(C43_DEPS)
228 endif
229 ifneq ($(strip $(S43_DEPS)),)
230 -include $(S43_DEPS)
231 endif
232 ifneq ($(strip $(ASM_DEPS)),)
233 -include $(ASM_DEPS)
234 endif
235 ifneq ($(strip $(S_UPPER_DEPS)),)
236 -include $(S_UPPER_DEPS)
237 endif
238 ifneq ($(strip $(CPP_DEPS)),)
239 -include $(CPP_DEPS)
240 endif
241 ifneq ($(strip $(SA_DEPS)),)
242 -include $(SA_DEPS)
243 endif
244 endif
246 -include ../makefile.defs
248 # Add inputs and outputs from these tool invocations to the build variables 
249 LIB_OUTPUTS += \
250 ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a \
252 LIB_OUTPUTS__QUOTED += \
253 "..\..\..\..\SDK\LIB\SYSBIOS\am572x\Release\libemllICSS.a" \
256 # All Target
257 all:
258         @$(MAKE) --no-print-directory configPkg/linker.cmd
259         @$(MAKE) --no-print-directory main-build
261 # Main-build Target
262 main-build: ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a
264 # Tool invocations
265 ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a: $(OBJS) $(O_SRCS) $(CMD_SRCS) $(A_SRCS)
266 ifneq ($(strip $(ORDERED_OBJS)),)
267         @echo 'Building target: $@'
268         @echo 'Invoking: GNU Librarian'
269         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-ar" -r "../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a" $(ORDERED_OBJS) $(A_SRCS)
270         @echo 'Finished building target: $@'
271         @echo ' '
272 endif
274 # Other Targets
275 clean:
276         -$(RM) $(LIB_OUTPUTS)$(GEN_CMDS)$(GEN_MISC_FILES)$(GEN_FILES)$(GEN_OPTS)
277         -$(RMDIR) $(GEN_MISC_DIRS)
278         -$(RM) TimerP_tirtos.o UART_soc.o icss_emacSoc.o icss_emac_ec_device.o icss_emacFwConfig.o 
279         -$(RM) TimerP_tirtos.d UART_soc.d icss_emacSoc.d icss_emac_ec_device.d icss_emacFwConfig.d 
280         -@echo 'Finished clean'
281         -@echo ' '
283 .PHONY: all clean dependents
284 .SECONDARY:
286 -include ../makefile.targets