mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-15 12:39:50 +00:00
add suffix _s to object of assembly file
This commit is contained in:
parent
05d6d7d8d1
commit
ef73a9864f
@ -52,7 +52,8 @@ SRC_S := $(SRC_S:.S=.s)
|
|||||||
|
|
||||||
# Due to GCC LTO bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
|
# Due to GCC LTO bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
|
||||||
# assembly file should be placed first in linking order
|
# assembly file should be placed first in linking order
|
||||||
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_S:.s=.o))
|
# '_s' suffix is added to object of assembly file
|
||||||
|
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_S:.s=_s.o))
|
||||||
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_C:.c=.o))
|
OBJ += $(addprefix $(BUILD)/obj/, $(SRC_C:.c=.o))
|
||||||
|
|
||||||
# Verbose mode
|
# Verbose mode
|
||||||
@ -111,13 +112,13 @@ $(BUILD)/obj/%.o: %.c
|
|||||||
|
|
||||||
# ASM sources lower case .s
|
# ASM sources lower case .s
|
||||||
vpath %.s . $(TOP)
|
vpath %.s . $(TOP)
|
||||||
$(BUILD)/obj/%.o: %.s
|
$(BUILD)/obj/%_s.o: %.s
|
||||||
@echo AS $(notdir $@)
|
@echo AS $(notdir $@)
|
||||||
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<
|
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
# ASM sources upper case .S
|
# ASM sources upper case .S
|
||||||
vpath %.S . $(TOP)
|
vpath %.S . $(TOP)
|
||||||
$(BUILD)/obj/%.o: %.S
|
$(BUILD)/obj/%_s.o: %.S
|
||||||
@echo AS $(notdir $@)
|
@echo AS $(notdir $@)
|
||||||
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<
|
@$(CC) -x assembler-with-cpp $(ASFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user