84 lines
2.8 KiB
Makefile
84 lines
2.8 KiB
Makefile
################################################################################
|
|
# MRS Version: 2.1.0
|
|
# 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 User/subdir.mk
|
|
-include Startup/subdir.mk
|
|
-include Peripheral/src/subdir.mk
|
|
-include FreeRTOS/portable/MemMang/subdir.mk
|
|
-include FreeRTOS/portable/GCC/RISC-V/subdir.mk
|
|
-include FreeRTOS/subdir.mk
|
|
-include Debug/subdir.mk
|
|
-include Core/subdir.mk
|
|
-include App/tools/RingQueue/subdir.mk
|
|
-include App/hardwareDriver/Src/subdir.mk
|
|
-include App/functionalModule/Src/subdir.mk
|
|
-include App/application/Src/subdir.mk
|
|
-include subdir.mk
|
|
-include objects.mk
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
ifneq ($(strip $(S_DEPS)),)
|
|
-include $(S_DEPS)
|
|
endif
|
|
ifneq ($(strip $(S_UPPER_DEPS)),)
|
|
-include $(S_UPPER_DEPS)
|
|
endif
|
|
ifneq ($(strip $(ASM_DEPS)),)
|
|
-include $(ASM_DEPS)
|
|
endif
|
|
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
|
-include $(ASM_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 += \
|
|
CH32V303-FreeRTOS.bin \
|
|
CH32V303-FreeRTOS.hex \
|
|
|
|
SECONDARY_LIST += \
|
|
CH32V303-FreeRTOS.lst \
|
|
|
|
SECONDARY_SIZE += \
|
|
CH32V303-FreeRTOS.siz \
|
|
|
|
|
|
# All Target
|
|
all:
|
|
$(MAKE) --no-print-directory main-build
|
|
|
|
main-build: CH32V303-FreeRTOS.elf secondary-outputs
|
|
|
|
# Tool invocations
|
|
CH32V303-FreeRTOS.elf: $(OBJS) $(USER_OBJS)
|
|
@ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -fmax-errors=20 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "d:/psx/su806/2.software/mcu_git/CH32V303-FreeRTOS/Ld/Link.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"CH32V303-FreeRTOS.map" --specs=nano.specs --specs=nosys.specs -o "CH32V303-FreeRTOS.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
|
CH32V303-FreeRTOS.bin: CH32V303-FreeRTOS.elf
|
|
@ riscv-none-embed-objcopy -O binary "CH32V303-FreeRTOS.elf" "CH32V303-FreeRTOS.bin"
|
|
CH32V303-FreeRTOS.hex: CH32V303-FreeRTOS.elf
|
|
@ riscv-none-embed-objcopy -O ihex "CH32V303-FreeRTOS.elf" "CH32V303-FreeRTOS.hex"
|
|
CH32V303-FreeRTOS.lst: CH32V303-FreeRTOS.elf
|
|
@ riscv-none-embed-objdump --all-headers --demangle --disassemble -M xw "CH32V303-FreeRTOS.elf" > "CH32V303-FreeRTOS.lst"
|
|
CH32V303-FreeRTOS.siz: CH32V303-FreeRTOS.elf
|
|
riscv-none-embed-size --format=berkeley "CH32V303-FreeRTOS.elf"
|
|
|
|
# Other Targets
|
|
clean:
|
|
-$(RM) $(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(S_DEPS)$(S_UPPER_DEPS)$(ASM_DEPS)$(ASM_UPPER_DEPS)$(C_DEPS) CH32V303-FreeRTOS.elf
|
|
|
|
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
|
|
|
|
.PHONY: all clean dependents
|
|
|
|
-include ../makefile.targets |