summaryrefslogtreecommitdiff
path: root/n/avr/make/Makefile.host
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/make/Makefile.host')
-rw-r--r--n/avr/make/Makefile.host4
1 files changed, 2 insertions, 2 deletions
diff --git a/n/avr/make/Makefile.host b/n/avr/make/Makefile.host
index e46c2b0..3fd343f 100644
--- a/n/avr/make/Makefile.host
+++ b/n/avr/make/Makefile.host
@@ -20,13 +20,13 @@ host: exe
HOST_PROGS += $(PROGS)
HOST_EXES = $(HOST_PROGS:%=%.host)
-HOST_SOURCES = $(filter-out %.avr.c,$(SOURCES))
+HOST_SOURCES = $(filter-out %.avr.c %.avr.S,$(SOURCES))
HOST_OBJECTS = $(HOST_SOURCES:%.c=%.host.o)
exe: $(HOST_EXES)
define AVR_PROG_template
-$(1).host: $$(patsubst %.c,%.host.o,$$(filter-out %.avr.c,$$($(1)_SOURCES)))
+$(1).host: $$(patsubst %.c,%.host.o,$$(filter-out %.avr.c %.avr.S,$$($(1)_SOURCES)))
endef
$(foreach prog,$(HOST_PROGS),$(eval $(call AVR_PROG_template,$(prog))))