this is a sample for mbed(LPC1768)
Diff: Release/makefile
- Revision:
- 0:3163adfd2cf1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Release/makefile Thu Nov 19 10:17:55 2015 +0800 @@ -0,0 +1,130 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +-include ../makefile.init + +RM := rm -rf + +# All of the sources participating in the build are defined here +-include sources.mk +-include subdir.mk +-include serialization_lib/subdir.mk +-include mbed/variant/hal/TARGET_NXP/TARGET_LPC176X/subdir.mk +-include mbed/variant/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/subdir.mk +-include mbed/variant/cmsis/TARGET_NXP/TARGET_LPC176X/subdir.mk +-include mbed/core/common/subdir.mk +-include MQTT/MQTTPacket/subdir.mk +-include Libraries/rtos_TARGET_M3/TOOLCHAIN_GCC/subdir.mk +-include Libraries/rtos/rtx/subdir.mk +-include Libraries/rtos/rtos/subdir.mk +-include Libraries/EthernetInterface_TARGET_NXPLPC1768/subdir.mk +-include Libraries/EthernetInterface/lwip/netif/ppp/subdir.mk +-include Libraries/EthernetInterface/lwip/netif/subdir.mk +-include Libraries/EthernetInterface/lwip/core/snmp/subdir.mk +-include Libraries/EthernetInterface/lwip/core/ipv4/subdir.mk +-include Libraries/EthernetInterface/lwip/core/subdir.mk +-include Libraries/EthernetInterface/lwip/api/subdir.mk +-include Libraries/EthernetInterface/lwip-sys/arch/subdir.mk +-include Libraries/EthernetInterface/Socket/subdir.mk +-include Libraries/EthernetInterface/subdir.mk +-include objects.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(CC_DEPS)),) +-include $(CC_DEPS) +endif +ifneq ($(strip $(C++_DEPS)),) +-include $(C++_DEPS) +endif +ifneq ($(strip $(C_UPPER_DEPS)),) +-include $(C_UPPER_DEPS) +endif +ifneq ($(strip $(CXX_DEPS)),) +-include $(CXX_DEPS) +endif +ifneq ($(strip $(ASM_DEPS)),) +-include $(ASM_DEPS) +endif +ifneq ($(strip $(S_UPPER_DEPS)),) +-include $(S_UPPER_DEPS) +endif +ifneq ($(strip $(CPP_DEPS)),) +-include $(CPP_DEPS) +endif +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +-include ../makefile.defs + +# Add inputs and outputs from these tool invocations to the build variables +AR += \ +D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/mbed.ar \ + +ELF += \ +ennoTest2.elf \ + +EEP += \ +ennoTest2.eep \ + +FLASH_IMAGE += \ +ennoTest2.hex \ +ennoTest2.bin \ + +FLASH_IMAGE += \ +ennoTest2.hex \ +ennoTest2.bin \ + + +# All Target +all: ennoTest2 + +# Tool invocations +ennoTest2: $(FLASH_IMAGE) + @echo 'Building target: $@' + @echo 'Printing size:' + "D:/SMeshStudio_4.7.0/mcore/tools/gcc_arm/bin/arm-none-eabi-size" -A "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.elf" + @echo 'Finished building target: $@' + @echo ' ' + +D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/mbed.ar: $(AR_OBJ) + @echo 'Starting archiver' + "D:/SMeshStudio_4.7.0/mcore/tools/gcc_arm/bin/arm-none-eabi-ar" -r "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/mbed.ar" $(AR_OBJ) + @echo 'Finished building: $@' + @echo ' ' + +ennoTest2.elf: $(LINK_OBJ) $(AR) + @echo 'Starting combiner' + "D:/SMeshStudio_4.7.0/mcore/tools/gcc_arm/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float "-TD:/SMeshStudio_4.7.0/mcore/hw/mbed/variants/xbed1.0_lpc1768_gcc_arm/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld" -o "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.elf" $(LINK_OBJ) $(AR) -L"D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release" -L"D:/SMeshStudio_4.7.0/mcore/hw/mbed/variants/xbed1.0_lpc1768_gcc_arm/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM" -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys + @echo 'Finished building: $@' + @echo ' ' + +ennoTest2.eep: $(ELF) + @echo 'Create eeprom image' + ${A.RECIPE.OBJCOPY.EEP.PATTERN} + @echo 'Finished building: $@' + @echo ' ' + +ennoTest2.hex: $(EEP) + @echo 'Create Flash image (ihex format)' + "D:/SMeshStudio_4.7.0/mcore/tools/gcc_arm/bin/arm-none-eabi-objcopy" -Oihex "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.elf" "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.hex" + @echo 'Finished building: $@' + @echo ' ' + +ennoTest2.bin: $(EEP) + @echo 'Create Flash image (bin format)' + "D:/SMeshStudio_4.7.0/mcore/tools/gcc_arm/bin/arm-none-eabi-objcopy" -Obinary "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.elf" "D:/SMeshStudio_4.7.0/workplace/ennoTest2/Release/ennoTest2.bin" + @echo 'Finished building: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) $(C_UPPER_DEPS)$(C_DEPS)$(AR)$(EEP)$(FLASH_IMAGE)$(CC_DEPS)$(AR_OBJ)$(C++_DEPS)$(LINK_OBJ)$(CXX_DEPS)$(ASM_DEPS)$(SIZEDUMMY)$(S_UPPER_DEPS)$(ELF)$(CPP_DEPS) ennoTest2 + -@echo ' ' + +.PHONY: all clean dependents +.SECONDARY: + +-include ../makefile.targets