Merge pull request #321 from simonduq/contrib/dot-s-files
Makefile.include: support assembly file extensions .s in addition to .S
This commit is contained in:
commit
cd317942e1
@ -54,7 +54,13 @@ endif
|
|||||||
|
|
||||||
MODULES += os os/net os/net/mac os/net/mac/framer os/net/routing os/storage
|
MODULES += os os/net os/net/mac os/net/mac/framer os/net/routing os/storage
|
||||||
|
|
||||||
oname = ${patsubst %.c,%.o,${patsubst %.S,%.o,$(1)}}
|
define oname =
|
||||||
|
${patsubst %.c,%.o, \
|
||||||
|
${patsubst %.S,%.o, \
|
||||||
|
${patsubst %.s,%.o, \
|
||||||
|
$(1) \
|
||||||
|
}}}
|
||||||
|
endef
|
||||||
|
|
||||||
CONTIKI_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(CONTIKI_SOURCEFILES)}}
|
CONTIKI_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(CONTIKI_SOURCEFILES)}}
|
||||||
PROJECT_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(PROJECT_SOURCEFILES)}}
|
PROJECT_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(PROJECT_SOURCEFILES)}}
|
||||||
@ -213,6 +219,7 @@ SOURCEDIRS = . $(PROJECTDIRS) $(CONTIKI_TARGET_DIRS_CONCAT) $(CONTIKI_ARCH_DIRS)
|
|||||||
|
|
||||||
vpath %.c $(SOURCEDIRS)
|
vpath %.c $(SOURCEDIRS)
|
||||||
vpath %.S $(SOURCEDIRS)
|
vpath %.S $(SOURCEDIRS)
|
||||||
|
vpath %.s $(SOURCEDIRS)
|
||||||
|
|
||||||
CFLAGS += ${addprefix -I,$(SOURCEDIRS) $(CONTIKI)}
|
CFLAGS += ${addprefix -I,$(SOURCEDIRS) $(CONTIKI)}
|
||||||
|
|
||||||
@ -267,6 +274,9 @@ ifndef CUSTOM_RULE_S_TO_OBJECTDIR_O
|
|||||||
$(OBJECTDIR)/%.o: %.S | $(OBJECTDIR)
|
$(OBJECTDIR)/%.o: %.S | $(OBJECTDIR)
|
||||||
$(TRACE_AS)
|
$(TRACE_AS)
|
||||||
$(Q)$(AS) $(ASFLAGS) -o $@ $<
|
$(Q)$(AS) $(ASFLAGS) -o $@ $<
|
||||||
|
$(OBJECTDIR)/%.o: %.s | $(OBJECTDIR)
|
||||||
|
$(TRACE_AS)
|
||||||
|
$(Q)$(AS) $(ASFLAGS) -o $@ $<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_C_TO_OBJECTDIR_S
|
ifndef CUSTOM_RULE_C_TO_OBJECTDIR_S
|
||||||
|
Loading…
Reference in New Issue
Block a user