You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.3 KiB
76 lines
2.3 KiB
################################################################################
|
|
# MRS Version: 1.9.1
|
|
# 自动生成的文件。不要编辑!
|
|
################################################################################
|
|
|
|
-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 StdPeriphDriver/sx1280_divce/subdir.mk
|
|
-include StdPeriphDriver/subdir.mk
|
|
-include Startup/subdir.mk
|
|
-include RVMSIS/subdir.mk
|
|
-include AT/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 += \
|
|
sx1280.hex \
|
|
|
|
SECONDARY_LIST += \
|
|
sx1280.lst \
|
|
|
|
SECONDARY_SIZE += \
|
|
sx1280.siz \
|
|
|
|
|
|
# 所有目标
|
|
all: sx1280.elf secondary-outputs
|
|
|
|
# 工具调用
|
|
sx1280.elf: $(OBJS) $(USER_OBJS)
|
|
@ @ riscv-none-embed-gcc -march=rv32imac -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mno-save-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "C:\Users\tang\Desktop\SX1280_CH592\SX1280_ING\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"../" -L"C:\Users\tang\Desktop\SX1280_CH592\SX1280_ING\StdPeriphDriver" -Xlinker --print-memory-usage -Wl,-Map,"sx1280.map" --specs=nano.specs --specs=nosys.specs -o "sx1280.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
|
@ @
|
|
sx1280.hex: sx1280.elf
|
|
@ riscv-none-embed-objcopy -O ihex "sx1280.elf" "sx1280.hex"
|
|
@ @
|
|
sx1280.lst: sx1280.elf
|
|
@ riscv-none-embed-objdump --source --all-headers --demangle --line-numbers --wide "sx1280.elf" > "sx1280.lst"
|
|
@ @
|
|
sx1280.siz: sx1280.elf
|
|
@ riscv-none-embed-size --format=berkeley "sx1280.elf"
|
|
@ @
|
|
# 其他目标
|
|
clean:
|
|
-$(RM) $(ASM_UPPER_DEPS)$(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) sx1280.elf
|
|
-@
|
|
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
|
|
|
|
.PHONY: all clean dependents
|
|
|
|
-include ../makefile.targets
|
|
|