fixing release makefile
[apps/tidep0079.git] / EC_Master_SysBios_Am572x / Workspace / SYSBIOS_AM57xx / emllICSS / Release / 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" \
104 #-include subdir_rules.mk
105 # Each subdirectory must supply rules for building sources it contributes
106 configPkg/linker.cmd: ../../EcMasterDemo/EcMaster.cfg
107         @echo 'Building file: $<'
108         @echo 'Invoking: XDCtools'
109         "$(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 "$<"
110         @echo 'Finished building: $<'
111         @echo ' '
113 configPkg/compiler.opt: | configPkg/linker.cmd
114 configPkg/: | configPkg/linker.cmd
116 TimerP_tirtos.o: $(PDK_INSTALL_PATH)/ti/osal/src/tirtos/TimerP_tirtos.c $(GEN_OPTS) | $(GEN_HDRS)
117         @echo 'Building file: $<'
118         @echo 'Invoking: GNU Compiler'
119         "$(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) "$<"
120         @echo 'Finished building: $<'
121         @echo ' '
123 UART_soc.o: $(PDK_INSTALL_PATH)/ti/drv/uart/soc/am572x/UART_soc.c $(GEN_OPTS) $(GEN_HDRS)
124         @echo 'Building file: $<'
125         @echo 'Invoking: GNU Compiler'
126         "$(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) "$<"
127         @echo 'Finished building: $<'
128         @echo ' '
130 icss_emacSoc.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/soc/am572x/icss_emacSoc.c $(GEN_OPTS) $(GEN_HDRS)
131         @echo 'Building file: $<'
132         @echo 'Invoking: GNU Compiler'
133         "$(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) "$<"
134         @echo 'Finished building: $<'
135         @echo ' '
137 icss_emacFwConfig.o: $(PDK_INSTALL_PATH)/ti/drv/icss_emac/firmware/icss_dualemac/config/icss_emacFwConfig.c $(GEN_OPTS) $(GEN_HDRS)
138         @echo 'Building file: $<'
139         @echo 'Invoking: GNU Compiler'
140         "$(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) "$<"
141         @echo 'Finished building: $<'
142         @echo ' '
144 icss_emac_ec_device.o: ../icss_emac_ec_device.c $(GEN_OPTS) $(GEN_HDRS)
145         @echo 'Building file: $<'
146         @echo 'Invoking: GNU Compiler'
147         "$(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) "$<"
148         @echo 'Finished building: $<'
149         @echo ' '
150         
152 #-include objects.mk
153 USER_OBJS :=
155 LIBS :=
158 ifneq ($(MAKECMDGOALS),clean)
159 ifneq ($(strip $(C55_DEPS)),)
160 -include $(C55_DEPS)
161 endif
162 ifneq ($(strip $(C_UPPER_DEPS)),)
163 -include $(C_UPPER_DEPS)
164 endif
165 ifneq ($(strip $(S67_DEPS)),)
166 -include $(S67_DEPS)
167 endif
168 ifneq ($(strip $(S62_DEPS)),)
169 -include $(S62_DEPS)
170 endif
171 ifneq ($(strip $(S_DEPS)),)
172 -include $(S_DEPS)
173 endif
174 ifneq ($(strip $(OPT_DEPS)),)
175 -include $(OPT_DEPS)
176 endif
177 ifneq ($(strip $(C??_DEPS)),)
178 -include $(C??_DEPS)
179 endif
180 ifneq ($(strip $(ASM_UPPER_DEPS)),)
181 -include $(ASM_UPPER_DEPS)
182 endif
183 ifneq ($(strip $(S??_DEPS)),)
184 -include $(S??_DEPS)
185 endif
186 ifneq ($(strip $(C64_DEPS)),)
187 -include $(C64_DEPS)
188 endif
189 ifneq ($(strip $(CXX_DEPS)),)
190 -include $(CXX_DEPS)
191 endif
192 ifneq ($(strip $(S64_DEPS)),)
193 -include $(S64_DEPS)
194 endif
195 ifneq ($(strip $(INO_DEPS)),)
196 -include $(INO_DEPS)
197 endif
198 ifneq ($(strip $(CLA_DEPS)),)
199 -include $(CLA_DEPS)
200 endif
201 ifneq ($(strip $(S55_DEPS)),)
202 -include $(S55_DEPS)
203 endif
204 ifneq ($(strip $(SV7A_DEPS)),)
205 -include $(SV7A_DEPS)
206 endif
207 ifneq ($(strip $(C62_DEPS)),)
208 -include $(C62_DEPS)
209 endif
210 ifneq ($(strip $(C67_DEPS)),)
211 -include $(C67_DEPS)
212 endif
213 ifneq ($(strip $(PDE_DEPS)),)
214 -include $(PDE_DEPS)
215 endif
216 ifneq ($(strip $(K_DEPS)),)
217 -include $(K_DEPS)
218 endif
219 ifneq ($(strip $(C_DEPS)),)
220 -include $(C_DEPS)
221 endif
222 ifneq ($(strip $(CC_DEPS)),)
223 -include $(CC_DEPS)
224 endif
225 ifneq ($(strip $(C++_DEPS)),)
226 -include $(C++_DEPS)
227 endif
228 ifneq ($(strip $(C43_DEPS)),)
229 -include $(C43_DEPS)
230 endif
231 ifneq ($(strip $(S43_DEPS)),)
232 -include $(S43_DEPS)
233 endif
234 ifneq ($(strip $(ASM_DEPS)),)
235 -include $(ASM_DEPS)
236 endif
237 ifneq ($(strip $(S_UPPER_DEPS)),)
238 -include $(S_UPPER_DEPS)
239 endif
240 ifneq ($(strip $(CPP_DEPS)),)
241 -include $(CPP_DEPS)
242 endif
243 ifneq ($(strip $(SA_DEPS)),)
244 -include $(SA_DEPS)
245 endif
246 endif
248 -include ../makefile.defs
250 # Add inputs and outputs from these tool invocations to the build variables 
251 LIB_OUTPUTS += \
252 ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a \
254 LIB_OUTPUTS__QUOTED += \
255 "..\..\..\..\SDK\LIB\SYSBIOS\am572x\Release\libemllICSS.a" \
258 # All Target
259 all:
260         @$(MAKE) --no-print-directory configPkg/linker.cmd
261         @$(MAKE) --no-print-directory main-build
263 # Main-build Target
264 main-build: ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a
266 # Tool invocations
267 ../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a: $(OBJS) $(O_SRCS) $(CMD_SRCS) $(A_SRCS)
268 ifneq ($(strip $(ORDERED_OBJS)),)
269         @echo 'Building target: $@'
270         @echo 'Invoking: GNU Librarian'
271         "$(TOOLCHAIN_PATH_A15)/bin/arm-none-eabi-ar" -r "../../../../SDK/LIB/SYSBIOS/am572x/Release/libemllICSS.a" $(ORDERED_OBJS) $(A_SRCS)
272         @echo 'Finished building target: $@'
273         @echo ' '
274 endif
276 # Other Targets
277 clean:
278         -$(RM) $(LIB_OUTPUTS)$(GEN_CMDS)$(GEN_MISC_FILES)$(GEN_FILES)$(GEN_OPTS)
279         -$(RMDIR) $(GEN_MISC_DIRS)
280         -$(RM) TimerP_tirtos.o UART_soc.o icss_emacSoc.o icss_emac_ec_device.o icss_emacFwConfig.o 
281         -$(RM) TimerP_tirtos.d UART_soc.d icss_emacSoc.d icss_emac_ec_device.d icss_emacFwConfig.d 
282         -@echo 'Finished clean'
283         -@echo ' '
285 .PHONY: all clean dependents
286 .SECONDARY:
288 -include ../makefile.targets