git忽略obj目录
This commit is contained in:
+13
-13
@@ -44,34 +44,34 @@ endif
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
SECONDARY_FLASH += \
|
||||
TCPClient1.hex \
|
||||
SealCheck.hex \
|
||||
|
||||
SECONDARY_LIST += \
|
||||
TCPClient1.lst \
|
||||
SealCheck.lst \
|
||||
|
||||
SECONDARY_SIZE += \
|
||||
TCPClient1.siz \
|
||||
SealCheck.siz \
|
||||
|
||||
|
||||
# 所有目标
|
||||
all: TCPClient1.elf secondary-outputs
|
||||
all: SealCheck.elf secondary-outputs
|
||||
|
||||
# 工具调用
|
||||
TCPClient1.elf: $(OBJS) $(USER_OBJS)
|
||||
@ @ 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:\zj\ch32v307_camera\prj\TCPClient\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"D:\zj\ch32v307_camera\prj\TCPClient\NetLib" -Wl,-Map,"TCPClient1.map" --specs=nano.specs --specs=nosys.specs -o "TCPClient1.elf" $(OBJS) $(USER_OBJS) $(LIBS) -lprintf
|
||||
SealCheck.elf: $(OBJS) $(USER_OBJS)
|
||||
@ @ 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 "F:\1_Projects\2026\zj\Code\Project_Ch32v307\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"F:\1_Projects\2026\zj\Code\Project_Ch32v307\NetLib" -Wl,-Map,"SealCheck.map" --specs=nano.specs --specs=nosys.specs -o "SealCheck.elf" $(OBJS) $(USER_OBJS) $(LIBS) -lprintf
|
||||
@ @
|
||||
TCPClient1.hex: TCPClient1.elf
|
||||
@ riscv-none-embed-objcopy -O ihex "TCPClient1.elf" "TCPClient1.hex"
|
||||
SealCheck.hex: SealCheck.elf
|
||||
@ riscv-none-embed-objcopy -O ihex "SealCheck.elf" "SealCheck.hex"
|
||||
@ @
|
||||
TCPClient1.lst: TCPClient1.elf
|
||||
@ riscv-none-embed-objdump --source --all-headers --demangle --line-numbers --wide -M xw "TCPClient1.elf" > "TCPClient1.lst"
|
||||
SealCheck.lst: SealCheck.elf
|
||||
@ riscv-none-embed-objdump --source --all-headers --demangle --line-numbers --wide -M xw "SealCheck.elf" > "SealCheck.lst"
|
||||
@ @
|
||||
TCPClient1.siz: TCPClient1.elf
|
||||
@ riscv-none-embed-size --format=berkeley "TCPClient1.elf"
|
||||
SealCheck.siz: SealCheck.elf
|
||||
@ riscv-none-embed-size --format=berkeley "SealCheck.elf"
|
||||
@ @
|
||||
# 其他目标
|
||||
clean:
|
||||
-$(RM) $(ASM_UPPER_DEPS)$(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) TCPClient1.elf
|
||||
-$(RM) $(ASM_UPPER_DEPS)$(OBJS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) SealCheck.elf
|
||||
-@
|
||||
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user