summaryrefslogtreecommitdiff
path: root/n/avr/make/Makefile.gen
diff options
context:
space:
mode:
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))