change suffix to _asm to be more explicit

This commit is contained in:
hathach 2021-03-30 01:09:17 +07:00
parent ef73a9864f
commit 2e4657d111
1 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,8 @@ SRC_S := $(SRC_S:.S=.s)
# Due to GCC LTO bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
# assembly file should be placed first in linking order
# '_s' suffix is added to object of assembly file
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_S:.s=_s.o))
# '_asm' suffix is added to object of assembly file
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_S:.s=_asm.o))
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_C:.c=.o))
# Verbose mode
@ -112,13 +112,13 @@ $(BUILD)/obj/%.o: %.c
# ASM sources lower case .s
vpath %.s . $(TOP)
$(BUILD)/obj/%_s.o: %.s
$(BUILD)/obj/%_asm.o: %.s
@echo AS $(notdir $@)
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<
# ASM sources upper case .S
vpath %.S . $(TOP)
$(BUILD)/obj/%_s.o: %.S
$(BUILD)/obj/%_asm.o: %.S
@echo AS $(notdir $@)
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<