From 3742cbc92d0203080a57b93ca56cf6dc116e818f Mon Sep 17 00:00:00 2001 From: schodet Date: Fri, 22 Jul 2005 21:41:01 +0000 Subject: Ajout du support de AVR_PROGS et HOST_PROGS. Ajout du support de sous-modules. --- n/avr/make/Makefile.host | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'n/avr/make/Makefile.host') 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 $@ -- cgit v1.2.3