2024-07-13 02:22:47 +00:00
|
|
|
|
################################################################################
|
|
|
|
|
# MRS Version: 1.9.0
|
|
|
|
|
# <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ɵ<EFBFBD><C9B5>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>༭<EFBFBD><E0BCAD>
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
-include ../makefile.init
|
|
|
|
|
|
|
|
|
|
RM := rm -rf
|
|
|
|
|
|
|
|
|
|
# All of the sources participating in the build are defined here
|
|
|
|
|
-include sources.mk
|
|
|
|
|
-include rtthread/src/subdir.mk
|
|
|
|
|
-include rtthread/libcpu/risc-v/common/subdir.mk
|
|
|
|
|
-include rtthread/components/finsh/subdir.mk
|
|
|
|
|
-include rtthread/components/drivers/serial/subdir.mk
|
|
|
|
|
-include rtthread/components/drivers/misc/subdir.mk
|
|
|
|
|
-include rtthread/subdir.mk
|
2024-07-13 03:43:10 +00:00
|
|
|
|
-include drivers/RingQueue/subdir.mk
|
2024-07-13 02:22:47 +00:00
|
|
|
|
-include drivers/subdir.mk
|
|
|
|
|
-include User/subdir.mk
|
|
|
|
|
-include Startup/subdir.mk
|
2024-07-13 03:43:10 +00:00
|
|
|
|
-include Software/src/subdir.mk
|
2024-07-13 02:22:47 +00:00
|
|
|
|
-include Peripheral/src/subdir.mk
|
2024-07-13 03:43:10 +00:00
|
|
|
|
-include Hardware/src/subdir.mk
|
2024-07-13 02:22:47 +00:00
|
|
|
|
-include Debug/subdir.mk
|
|
|
|
|
-include Core/subdir.mk
|
|
|
|
|
-include subdir.mk
|
|
|
|
|
-include objects.mk
|
|
|
|
|
|
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
|
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
|
|
|
|
-include $(ASM_UPPER_DEPS)
|
|
|
|
|
endif
|
|
|
|
|
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 += \
|
|
|
|
|
CH32V303_V0.1.hex \
|
|
|
|
|
|
|
|
|
|
SECONDARY_LIST += \
|
|
|
|
|
CH32V303_V0.1.lst \
|
|
|
|
|
|
|
|
|
|
SECONDARY_SIZE += \
|
|
|
|
|
CH32V303_V0.1.siz \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# <20><><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>
|
|
|
|
|
all: CH32V303_V0.1.elf secondary-outputs
|
|
|
|
|
|
|
|
|
|
# <20><><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD>
|
|
|
|
|
CH32V303_V0.1.elf: $(OBJS) $(USER_OBJS)
|
2024-07-13 03:43:10 +00:00
|
|
|
|
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "D:\psx\su806\git\CH32V303_V0.1\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"CH32V303_V0.1.map" --specs=nano.specs --specs=nosys.specs -o "CH32V303_V0.1.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
2024-07-13 02:22:47 +00:00
|
|
|
|
@ @
|
|
|
|
|
CH32V303_V0.1.hex: CH32V303_V0.1.elf
|
|
|
|
|
@ riscv-none-embed-objcopy -O ihex "CH32V303_V0.1.elf" "CH32V303_V0.1.hex"
|
|
|
|
|
@ @
|
|
|
|
|
CH32V303_V0.1.lst: CH32V303_V0.1.elf
|
|
|
|
|
@ riscv-none-embed-objdump --all-headers --demangle --disassemble -M xw "CH32V303_V0.1.elf" > "CH32V303_V0.1.lst"
|
|
|
|
|
@ @
|
|
|
|
|
CH32V303_V0.1.siz: CH32V303_V0.1.elf
|
|
|
|
|
@ riscv-none-embed-size --format=berkeley "CH32V303_V0.1.elf"
|
|
|
|
|
@ @
|
|
|
|
|
# <20><><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>
|
|
|
|
|
clean:
|
|
|
|
|
-$(RM) $(ASM_UPPER_DEPS)$(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) CH32V303_V0.1.elf
|
|
|
|
|
-@
|
|
|
|
|
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean dependents
|
|
|
|
|
|
|
|
|
|
-include ../makefile.targets
|