Adding rules.make to makefiles - PSDK5.0
[apps/tidep0079.git] / EC_Master_SysBios_Am572x / Workspace / SYSBIOS_AM57xx / emllICSS / Debug / makefile
3 ####PC-- test ####
4 ifndef MAKE
5 export MAKE = make
6 endif
8 ifndef ECHO
9 export ECHO = echo
10 endif
12 GEN_OPTS__FLAG := @"configPkg/compiler.opt"
13 GEN_CMDS__FLAG := "configPkg/linker.cmd"
15 ORDERED_OBJS += \
16 "./TimerP_tirtos.o" \
17 "./UART_soc.o" \
18 "./icss_emacFwConfig.o" \
19 "./icss_emacSoc.o" \
20 "./icss_emac_ec_device.o" \
22 OS := $(shell uname)
23 ifeq ($(OS), Linux)
24 RM := rm -f
25 RMDIR := rm -f -r
26 else
27 RM := rm -f
28 RMDIR := rm -r -f
29 endif
31 # All of the sources participating in the build are defined here
32 #-include sources.mk
33 # Every subdirectory with source files must be described here
34 SUBDIRS := \
35 . \
37 #-include subdir_vars.mk
38 # Add inputs and outputs from these tool invocations to the build variables 
39 CFG_SRCS += \
40 ..\..\EcMasterDemo\EcMaster.cfg 
42 C_SRCS += \
43 $(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c \
44 $(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c \
45 $(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c \
46 $(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c \
47 ../icss_emac_ec_device.c 
49 OBJS += \
50 ./TimerP_tirtos.o \
51 ./UART_soc.o \
52 ./icss_emacFwConfig.o \
53 ./icss_emacSoc.o \
54 ./icss_emac_ec_device.o 
56 C_DEPS += \
57 ./TimerP_tirtos.d \
58 ./UART_soc.d \
59 ./icss_emacFwConfig.d \
60 ./icss_emacSoc.d \
61 ./icss_emac_ec_device.d  
63 GEN_MISC_DIRS += \
64 ./configPkg 
66 GEN_CMDS += \
67 ./configPkg/linker.cmd 
69 GEN_OPTS += \
70 ./configPkg/compiler.opt 
72 GEN_FILES += \
73 ./configPkg/linker.cmd \
74 ./configPkg/compiler.opt 
76 GEN_FILES__QUOTED += \
77 "configPkg\linker.cmd" \
78 "configPkg\compiler.opt" 
80 GEN_MISC_DIRS__QUOTED += \
81 "configPkg" 
83 OBJS__QUOTED += \
84 "TimerP_tirtos.o" \
85 "UART_soc.o" \
86 "icss_emacFwConfig.o" \
87 "icss_emacSoc.o" \
88 "icss_emac_ec_device.o"
90 C_DEPS__QUOTED += \
91 "TimerP_tirtos.d" \
92 "UART_soc.d" \
93 "icss_emacFwConfig.d" \
94 "icss_emacSoc.d" \
95 "icss_emac_ec_device.d"  
97 C_SRCS__QUOTED += \
98 "$(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c" \
99 "$(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c" \
100 "$(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c" \
101 "$(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c" \
102 "../icss_emac_ec_device.c" \
105 #-include subdir_rules.mk
106 # Each subdirectory must supply rules for building sources it contributes
107 configPkg/linker.cmd: ../../EcMasterDemo/EcMaster.cfg
108         @echo 'Building file: $<'
109         @echo 'Invoking: XDCtools'
110         "$(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 debug -b "$(PDK_INSTALL_PATH)/ti/build/am572x/config_am572x_a15.bld" -c "$(TOOLCHAIN_PATH_A15)" -DBOARD=idkAM572x "$<"
111         @echo 'Finished building: $<'
112         @echo ' '
114 configPkg/compiler.opt: | configPkg/linker.cmd
115 configPkg/: | configPkg/linker.cmd
117 TimerP_tirtos.o: $(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c $(GEN_OPTS) | $(GEN_HDRS)
118         @echo 'Building file: $<'
119         @echo 'Invoking: GNU Compiler'
120         "$(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 -g -gdwarf-3 -gstrict-dwarf -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
121         @echo 'Finished building: $<'
122         @echo ' '
124 UART_soc.o: $(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c $(GEN_OPTS) $(GEN_HDRS)
125         @echo 'Building file: $<'
126         @echo 'Invoking: GNU Compiler'
127         "$(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 -g -gdwarf-3 -gstrict-dwarf -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
128         @echo 'Finished building: $<'
129         @echo ' '
131 icss_emacSoc.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c $(GEN_OPTS) $(GEN_HDRS)
132         @echo 'Building file: $<'
133         @echo 'Invoking: GNU Compiler'
134         "$(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 -g -gdwarf-3 -gstrict-dwarf -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
135         @echo 'Finished building: $<'
136         @echo ' '
138 icss_emacFwConfig.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c $(GEN_OPTS) $(GEN_HDRS)
139         @echo 'Building file: $<'
140         @echo 'Invoking: GNU Compiler'
141         "$(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 -g -gdwarf-3 -gstrict-dwarf -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
142         @echo 'Finished building: $<'
143         @echo ' '
145 icss_emac_ec_device.o: ../icss_emac_ec_device.c $(GEN_OPTS) $(GEN_HDRS)
146         @echo 'Building file: $<'
147         @echo 'Invoking: GNU Compiler'
148         "$(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 -g -gdwarf-3 -gstrict-dwarf -Wall -finstrument-functions -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o"$@"  $(GEN_OPTS__FLAG) "$<"
149         @echo 'Finished building: $<'
150         @echo ' '
151         
153 #-include objects.mk
154 USER_OBJS :=
156 LIBS :=
159 ifneq ($(MAKECMDGOALS),clean)
160 ifneq ($(strip $(C55_DEPS)),)
161 -include $(C55_DEPS)
162 endif
163 ifneq ($(strip $(C_UPPER_DEPS)),)
164 -include $(C_UPPER_DEPS)
165 endif
166 ifneq ($(strip $(S67_DEPS)),)
167 -include $(S67_DEPS)
168 endif
169 ifneq ($(strip $(S62_DEPS)),)
170 -include $(S62_DEPS)
171 endif
172 ifneq ($(strip $(S_DEPS)),)
173 -include $(S_DEPS)
174 endif
175 ifneq ($(strip $(OPT_DEPS)),)
176 -include $(OPT_DEPS)
177 endif
178 ifneq ($(strip $(C??_DEPS)),)
179 -include $(C??_DEPS)
180 endif
181 ifneq ($(strip $(ASM_UPPER_DEPS)),)
182 -include $(ASM_UPPER_DEPS)
183 endif
184 ifneq ($(strip $(S??_DEPS)),)
185 -include $(S??_DEPS)
186 endif
187 ifneq ($(strip $(C64_DEPS)),)
188 -include $(C64_DEPS)
189 endif
190 ifneq ($(strip $(CXX_DEPS)),)
191 -include $(CXX_DEPS)
192 endif
193 ifneq ($(strip $(S64_DEPS)),)
194 -include $(S64_DEPS)
195 endif
196 ifneq ($(strip $(INO_DEPS)),)
197 -include $(INO_DEPS)
198 endif
199 ifneq ($(strip $(CLA_DEPS)),)
200 -include $(CLA_DEPS)
201 endif
202 ifneq ($(strip $(S55_DEPS)),)
203 -include $(S55_DEPS)
204 endif
205 ifneq ($(strip $(SV7A_DEPS)),)
206 -include $(SV7A_DEPS)
207 endif
208 ifneq ($(strip $(C62_DEPS)),)
209 -include $(C62_DEPS)
210 endif
211 ifneq ($(strip $(C67_DEPS)),)
212 -include $(C67_DEPS)
213 endif
214 ifneq ($(strip $(PDE_DEPS)),)
215 -include $(PDE_DEPS)
216 endif
217 ifneq ($(strip $(K_DEPS)),)
218 -include $(K_DEPS)
219 endif
220 ifneq ($(strip $(C_DEPS)),)
221 -include $(C_DEPS)
222 endif
223 ifneq ($(strip $(CC_DEPS)),)
224 -include $(CC_DEPS)
225 endif
226 ifneq ($(strip $(C++_DEPS)),)
227 -include $(C++_DEPS)
228 endif
229 ifneq ($(strip $(C43_DEPS)),)
230 -include $(C43_DEPS)
231 endif
232 ifneq ($(strip $(S43_DEPS)),)
233 -include $(S43_DEPS)
234 endif
235 ifneq ($(strip $(ASM_DEPS)),)
236 -include $(ASM_DEPS)
237 endif
238 ifneq ($(strip $(S_UPPER_DEPS)),)
239 -include $(S_UPPER_DEPS)
240 endif
241 ifneq ($(strip $(CPP_DEPS)),)
242 -include $(CPP_DEPS)
243 endif
244 ifneq ($(strip $(SA_DEPS)),)
245 -include $(SA_DEPS)
246 endif
247 endif
249 -include ../makefile.defs
251 # Add inputs and outputs from these tool invocations to the build variables 
252 LIB_OUTPUTS += \
253 ../../../../SDK/LIB/SYSBIOS/am572x/Debug/libemllICSS.a \
255 LIB_OUTPUTS__QUOTED += \
256 "..\..\..\..\SDK\LIB\SYSBIOS\am572x\Debug\libemllICSS.a" \
259 # All Target
260 all:
261         @$(MAKE) --no-print-directory configPkg/linker.cmd
262         @$(MAKE) --no-print-directory main-build
264 # Main-build Target
265 main-build: ../../../../SDK/LIB/SYSBIOS/am572x/Debug/libemllICSS.a
267 # Tool invocations
268 ../../../../SDK/LIB/SYSBIOS/am572x/Debug/libemllICSS.a: $(OBJS) $(O_SRCS) $(CMD_SRCS) $(A_SRCS)
269 ifneq ($(strip $(ORDERED_OBJS)),)
270         @echo 'Building target: $@'
271         @echo 'Invoking: GNU Librarian'
272         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-ar" -r "../../../../SDK/LIB/SYSBIOS/am572x/Debug/libemllICSS.a" $(ORDERED_OBJS) $(A_SRCS)
273         @echo 'Finished building target: $@'
274         @echo ' '
275 endif
277 # Other Targets
278 clean:
279         -$(RM) $(LIB_OUTPUTS)$(GEN_CMDS)$(GEN_MISC_FILES)$(GEN_FILES)$(GEN_OPTS)
280         -$(RMDIR) $(GEN_MISC_DIRS)
281         -$(RM) TimerP_tirtos.o UART_soc.o icss_emacSoc.o icss_emac_ec_device.o icss_emacFwConfig.o 
282         -$(RM) TimerP_tirtos.d UART_soc.d icss_emacSoc.d icss_emac_ec_device.d icss_emacFwConfig.d 
283         -@echo 'Finished clean'
284         -@echo ' '
286 .PHONY: all clean dependents
287 .SECONDARY:
289 -include ../makefile.targets