summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschodet2005-06-27 22:38:53 +0000
committerschodet2005-06-27 22:38:53 +0000
commitc8af15a62a2c5edb9ff1f160cc68f4ed63c61511 (patch)
tree62796add129c3478ce87bb6f65147d68aabb2f59
parent942a27d4d9ade76aefdf4ca487dd0a87405132bd (diff)
Fix.
-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)