From c8af15a62a2c5edb9ff1f160cc68f4ed63c61511 Mon Sep 17 00:00:00 2001 From: schodet Date: Mon, 27 Jun 2005 22:38:53 +0000 Subject: Fix. --- n/avr/make/Makefile.avr | 3 +-- n/avr/make/Makefile.gen | 4 ++-- n/avr/make/Makefile.host | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'n/avr') 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) -- cgit v1.2.3