Update mkrules.mk
This commit is contained in:
parent
a20aab0491
commit
b6b5eaa878
|
@ -20,12 +20,12 @@ endif
|
|||
# can be located. By following this scheme, it allows a single build rule
|
||||
# to be used to compile all .c files.
|
||||
|
||||
vpath %.S . $(TOP)
|
||||
vpath %.S . $(TOP) $(USER_C_MODULES)
|
||||
$(BUILD)/%.o: %.S
|
||||
$(STEPECHO) "CC $<"
|
||||
$(Q)$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
vpath %.s . $(TOP)
|
||||
vpath %.s . $(TOP) $(USER_C_MODULES)
|
||||
$(BUILD)/%.o: %.s
|
||||
$(STEPECHO) "AS $<"
|
||||
$(Q)$(AS) -o $@ $<
|
||||
|
@ -42,7 +42,7 @@ $(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
|
|||
$(RM) -f $(@:.o=.d)
|
||||
endef
|
||||
|
||||
vpath %.c . $(TOP)
|
||||
vpath %.c . $(TOP) $(USER_C_MODULES)
|
||||
$(BUILD)/%.o: %.c
|
||||
$(call compile_c)
|
||||
|
||||
|
@ -56,7 +56,7 @@ $(BUILD)/%.o: %.c
|
|||
|
||||
QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD)/tmp
|
||||
|
||||
vpath %.c . $(TOP)
|
||||
vpath %.c . $(TOP) $(USER_C_MODULES)
|
||||
|
||||
$(BUILD)/%.pp: %.c
|
||||
$(STEPECHO) "PreProcess $<"
|
||||
|
|
Loading…
Reference in New Issue