summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--n/avr/make/Makefile.avr3
-rw-r--r--n/avr/make/Makefile.gen4
-rw-r--r--n/avr/make/Makefile.host2
3 files changed, 4 insertions, 5 deletions
diff --git a/n/avr/make/Makefile.avr b/n/avr/make/Makefile.avr
index ace4331..c2ea9da 100644
--- a/n/avr/make/Makefile.avr
+++ b/n/avr/make/Makefile.avr
@@ -15,7 +15,6 @@ AVR_LINK.o = $(AVR_CC) $(AVR_CFLAGS) $(AVR_LDFLAGS)
# Main rules. {{{1
avr: elf lst hex
- echo $(AVR_SOURCES)
.PHONY: avr clean.avr elf lst text hex srec bin eeprom ehex esrec ebin
@@ -41,7 +40,7 @@ $(AVR_ELFS):
$(AVR_OBJDUMP) -h -S $< > $@
%.avr.o: %.c
- $(AVR_COMPILE.c) -o $@ $^
+ $(AVR_COMPILE.c) -o $@ $<
# Dependency checking.
-include $(AVR_OBJECTS:%.avr.o=%.avr.d)
diff --git a/n/avr/make/Makefile.gen b/n/avr/make/Makefile.gen
index d6fdcca..c68ce73 100644
--- a/n/avr/make/Makefile.gen
+++ b/n/avr/make/Makefile.gen
@@ -2,9 +2,9 @@
# Flags {{{1
-INCLUDES = -Imodules
+INCLUDES = -I$(BASE)
OPTIMIZE =
-CFLAGS = -g -Wall $(OPTIMIZE)
+CFLAGS = -g -Wall -W -Wundef -Werror $(OPTIMIZE)
DEFS =
CPPFLAGS = $(DEFS) $(INCLUDES) -MMD \
$(if $(CONFIGFILE),$(CONFIGFILE:%=-include %))
diff --git a/n/avr/make/Makefile.host b/n/avr/make/Makefile.host
index c50c83b..9b3c8ce 100644
--- a/n/avr/make/Makefile.host
+++ b/n/avr/make/Makefile.host
@@ -33,7 +33,7 @@ $(HOST_EXES):
$(HOST_LINK.o) $^ $(HOST_LDLIBS) -o $@
%.host.o: %.c
- $(HOST_COMPILE.c) -o $@ $^
+ $(HOST_COMPILE.c) -o $@ $<
# Dependency checking.
-include $(HOST_OBJECTS:%.host.o=%.host.d)