|
@@ -0,0 +1,94 @@
|
|
|
|
|
+################################################################################
|
|
|
|
|
+# 自动生成的文件。不要编辑!
|
|
|
|
|
+################################################################################
|
|
|
|
|
+
|
|
|
|
|
+-include ../makefile.init
|
|
|
|
|
+
|
|
|
|
|
+RM := rm -rf
|
|
|
|
|
+
|
|
|
|
|
+# All of the sources participating in the build are defined here
|
|
|
|
|
+-include sources.mk
|
|
|
|
|
+-include rt-thread/src/subdir.mk
|
|
|
|
|
+-include rt-thread/libcpu/arm/cortex-m3/subdir.mk
|
|
|
|
|
+-include rt-thread/libcpu/arm/common/subdir.mk
|
|
|
|
|
+-include rt-thread/components/utilities/ymodem/subdir.mk
|
|
|
|
|
+-include rt-thread/components/libc/posix/delay/subdir.mk
|
|
|
|
|
+-include rt-thread/components/libc/compilers/newlib/subdir.mk
|
|
|
|
|
+-include rt-thread/components/libc/compilers/common/subdir.mk
|
|
|
|
|
+-include rt-thread/components/finsh/subdir.mk
|
|
|
|
|
+-include rt-thread/components/fal/src/subdir.mk
|
|
|
|
|
+-include rt-thread/components/fal/samples/porting/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/watchdog/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/spi/sfud/src/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/spi/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/serial/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/rtc/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/misc/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/ipc/subdir.mk
|
|
|
|
|
+-include rt-thread/components/drivers/hwtimer/subdir.mk
|
|
|
|
|
+-include packages/syswatch-latest/src/subdir.mk
|
|
|
|
|
+-include packages/ota_downloader-v1.0.0/src/subdir.mk
|
|
|
|
|
+-include packages/freemodbus-latest/port/subdir.mk
|
|
|
|
|
+-include packages/freemodbus-latest/modbus/rtu/subdir.mk
|
|
|
|
|
+-include packages/freemodbus-latest/modbus/functions/subdir.mk
|
|
|
|
|
+-include packages/freemodbus-latest/modbus/subdir.mk
|
|
|
|
|
+-include packages/cJSON-v1.7.17/subdir.mk
|
|
|
|
|
+-include packages/LedBlink-latest/subdir.mk
|
|
|
|
|
+-include packages/EasyFlash-v4.1.0/src/subdir.mk
|
|
|
|
|
+-include libraries/STM32F1xx_HAL_Driver/Src/Legacy/subdir.mk
|
|
|
|
|
+-include libraries/STM32F1xx_HAL_Driver/Src/subdir.mk
|
|
|
|
|
+-include libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/subdir.mk
|
|
|
|
|
+-include libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/subdir.mk
|
|
|
|
|
+-include drivers/subdir.mk
|
|
|
|
|
+-include applications/subdir.mk
|
|
|
|
|
+-include subdir.mk
|
|
|
|
|
+-include objects.mk
|
|
|
|
|
+
|
|
|
|
|
+ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
|
+ifneq ($(strip $(ASM_DEPS)),)
|
|
|
|
|
+-include $(ASM_DEPS)
|
|
|
|
|
+endif
|
|
|
|
|
+ifneq ($(strip $(S_DEPS)),)
|
|
|
|
|
+-include $(S_DEPS)
|
|
|
|
|
+endif
|
|
|
|
|
+ifneq ($(strip $(S_UPPER_DEPS)),)
|
|
|
|
|
+-include $(S_UPPER_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
|
|
|
|
|
+SECONDARY_FLASH += \
|
|
|
|
|
+rtthread.bin \
|
|
|
|
|
+
|
|
|
|
|
+SECONDARY_SIZE += \
|
|
|
|
|
+rtthread.siz \
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+# 所有目标
|
|
|
|
|
+all: rtthread.elf secondary-outputs
|
|
|
|
|
+
|
|
|
|
|
+# 工具调用
|
|
|
|
|
+rtthread.elf: $(OBJS) $(USER_OBJS)
|
|
|
|
|
+ arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -ffunction-sections -fdata-sections -Wall -g -gdwarf-2 -T "D:\RT-ThreadStudio\workspace\IOT_CBD_BZY_CTRL\Application_cbd_apm32f1\linkscripts\STM32F103RE\link.lds" -Xlinker --gc-sections -Wl,-Map,"rtthread.map" -Xlinker --cref -o "rtthread.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
|
|
|
|
+
|
|
|
|
|
+rtthread.bin: rtthread.elf
|
|
|
|
|
+ arm-none-eabi-objcopy -O binary "rtthread.elf" "rtthread.bin"
|
|
|
|
|
+
|
|
|
|
|
+rtthread.siz: rtthread.elf
|
|
|
|
|
+ arm-none-eabi-size --format=berkeley "rtthread.elf"
|
|
|
|
|
+
|
|
|
|
|
+# 其他目标
|
|
|
|
|
+clean:
|
|
|
|
|
+ -$(RM) $(OBJS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) rtthread.elf
|
|
|
|
|
+ -@echo ' '
|
|
|
|
|
+
|
|
|
|
|
+secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)
|
|
|
|
|
+
|
|
|
|
|
+.PHONY: all clean dependents
|
|
|
|
|
+
|
|
|
|
|
+-include ../makefile.targets
|