summaryrefslogtreecommitdiff
path: root/n/avr/make/Makefile.gen
diff options
context:
space:
mode:
authorschodet2005-08-02 21:14:07 +0000
committerschodet2005-08-02 21:14:07 +0000
commit98694a3cab902c3ef3d1bdab941980ed6c94d67d (patch)
tree99527827d8a05b7650490ca0bb8dbf9530e5e908 /n/avr/make/Makefile.gen
parent3993c01f8c9ed6647eb22fc2a3a49c9a519474a4 (diff)
Ajout du support des fichiers asm.
Diffstat (limited to 'n/avr/make/Makefile.gen')
-rw-r--r--n/avr/make/Makefile.gen8
1 files changed, 5 insertions, 3 deletions
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))