From 98694a3cab902c3ef3d1bdab941980ed6c94d67d Mon Sep 17 00:00:00 2001 From: schodet Date: Tue, 2 Aug 2005 21:14:07 +0000 Subject: Ajout du support des fichiers asm. --- n/avr/make/Makefile.gen | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'n/avr/make/Makefile.gen') diff --git a/n/avr/make/Makefile.gen b/n/avr/make/Makefile.gen index 7664b8a..a503e51 100644 --- a/n/avr/make/Makefile.gen +++ b/n/avr/make/Makefile.gen @@ -3,7 +3,8 @@ # Flags INCLUDES = -I$(BASE) -I$(BASE)/common -CFLAGS = -g -Wall -W -Wundef $(OPTIMIZE) +CFLAGS = -g -Wall -W -Wundef -Wno-unused-parameter $(OPTIMIZE) +ASFLAGS = -Wa,--gstabs CPPFLAGS = $(DEFS) $(INCLUDES) -MMD \ $(if $(CONFIGFILE),$(CONFIGFILE:%=-include %)) LDFLAGS = @@ -35,6 +36,7 @@ endef $(foreach prog,$(ALL_PROGS),$(eval $(call MODULES_template,$(prog)))) vpath %.c $(MODULES:%=$(BASE)/modules/%) +vpath %.S $(MODULES:%=$(BASE)/modules/%) # Compilation test rules. @@ -56,8 +58,8 @@ test: test.sub clean # Include other Makefiles. -ifneq (,$(filter-out %.c,$(SOURCES))) -$(error Sources should be c files) +ifneq (,$(filter-out %.c %.avr.S,$(SOURCES))) +$(error Sources should be .c or .avr.S files) endif ifneq (,$(ALL_PROGS)) -- cgit v1.2.3