summaryrefslogtreecommitdiff
path: root/n/avr/make/Makefile.host
diff options
context:
space:
mode:
authorschodet2005-07-22 21:41:01 +0000
committerschodet2005-07-22 21:41:01 +0000
commit3742cbc92d0203080a57b93ca56cf6dc116e818f (patch)
treeba1ab3521af4ad0c244b8fb8c9ae37924598a98b /n/avr/make/Makefile.host
parent0f9db44ec7e0d92caeeeab4347f8aed8c5a978fe (diff)
Ajout du support de AVR_PROGS et HOST_PROGS.
Ajout du support de sous-modules.
Diffstat (limited to 'n/avr/make/Makefile.host')
-rw-r--r--n/avr/make/Makefile.host5
1 files changed, 3 insertions, 2 deletions
diff --git a/n/avr/make/Makefile.host b/n/avr/make/Makefile.host
index f0b47d8..7241284 100644
--- a/n/avr/make/Makefile.host
+++ b/n/avr/make/Makefile.host
@@ -18,7 +18,8 @@ host: exe
# General rules. {{{1
-HOST_EXES = $(PROGS:%=%.host)
+HOST_PROGS += $(PROGS)
+HOST_EXES = $(HOST_PROGS:%=%.host)
HOST_SOURCES = $(filter-out %.avr.c,$(SOURCES))
HOST_OBJECTS = $(HOST_SOURCES:%.c=%.host.o)
@@ -28,7 +29,7 @@ define AVR_PROG_template
$(1).host: $$(patsubst %.c,%.host.o,$$(filter-out %.avr.c,$$($(1)_SOURCES)))
endef
-$(foreach prog,$(PROGS),$(eval $(call AVR_PROG_template,$(prog))))
+$(foreach prog,$(HOST_PROGS),$(eval $(call AVR_PROG_template,$(prog))))
$(HOST_EXES):
$(HOST_LINK.o) $^ $(HOST_LDLIBS) -o $@