From 2d7050e4f2e9cd5950cf22beee8ae9c34dd18094 Mon Sep 17 00:00:00 2001 From: schodet Date: Thu, 28 Jul 2005 20:01:08 +0000 Subject: Virure des folds. --- n/avr/make/Makefile.avr | 12 ++++++------ n/avr/make/Makefile.gen | 16 ++++++++-------- n/avr/make/Makefile.host | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) (limited to 'n/avr/make') diff --git a/n/avr/make/Makefile.avr b/n/avr/make/Makefile.avr index 26f3fd1..8485324 100644 --- a/n/avr/make/Makefile.avr +++ b/n/avr/make/Makefile.avr @@ -1,6 +1,6 @@ # Makefile.avr - AVR part Makefile. # -# Flags. {{{1 +# Flags. AVR_CFLAGS = $(CFLAGS) -mmcu=$(AVR_MCU) AVR_CPPFLAGS = $(CPPFLAGS) $(AVR_DEFS) @@ -13,13 +13,13 @@ AVR_OBJDUMP = avr-objdump AVR_COMPILE.c = $(AVR_CC) $(AVR_CFLAGS) $(AVR_CPPFLAGS) -c AVR_LINK.o = $(AVR_CC) $(AVR_CFLAGS) $(AVR_LDFLAGS) -# Main rules. {{{1 +# Main rules. avr: elf lst hex .PHONY: avr clean.avr elf lst text hex srec bin eeprom ehex esrec ebin -# General rules. {{{1 +# General rules. AVR_PROGS += $(PROGS) AVR_ELFS = $(AVR_PROGS:%=%.avr.elf) @@ -47,7 +47,7 @@ $(AVR_ELFS): # Dependency checking. -include $(AVR_OBJECTS:%.avr.o=%.avr.d) -# Rules for building the .text rom images. {{{1 +# Rules for building the .text rom images. TEXTS = $(AVR_PROGS:%=%.hex) $(AVR_PROGS:%=%.bin) $(AVR_PROGS:%=%.srec) @@ -66,7 +66,7 @@ srec: $(AVR_PROGS:%=%.srec) %.bin: %.avr.elf $(AVR_OBJCOPY) -j .text -j .data -O binary $< $@ -# Rules for building the .eeprom rom images. {{{1 +# Rules for building the .eeprom rom images. EEPROMS = $(AVR_PROGS:%=%_eeprom.hex) $(AVR_PROGS:%=%_eeprom.bin) \ $(AVR_PROGS:%=%_eeprom.srec) @@ -86,7 +86,7 @@ esrec: $(AVR_PROGS:%=%_eeprom.srec) %_eeprom.bin: %.avr.elf $(AVR_OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@ -# Cleaning. {{{1 +# Cleaning. clean.avr: rm -f *.avr.o *.avr.d $(AVR_ELFS) *.avr.lst *.avr.map $(TEXTS) $(EEPROMS) diff --git a/n/avr/make/Makefile.gen b/n/avr/make/Makefile.gen index 7e34c2b..7664b8a 100644 --- a/n/avr/make/Makefile.gen +++ b/n/avr/make/Makefile.gen @@ -1,6 +1,6 @@ # Makefile.gen - General Makefile. -# Flags {{{1 +# Flags INCLUDES = -I$(BASE) -I$(BASE)/common CFLAGS = -g -Wall -W -Wundef $(OPTIMIZE) @@ -9,18 +9,18 @@ CPPFLAGS = $(DEFS) $(INCLUDES) -MMD \ LDFLAGS = LDLIBS = $(LIBS) -# Main rules. {{{1 +# Main rules. all: avr host .PHONY: all clean doc -# General rules. {{{1 +# General rules. ALL_PROGS = $(PROGS) $(AVR_PROGS) $(HOST_PROGS) SOURCES = $(foreach prog,$(ALL_PROGS),$($(prog)_SOURCES)) -# Modules. {{{1 +# Modules. MODULES += host @@ -36,7 +36,7 @@ $(foreach prog,$(ALL_PROGS),$(eval $(call MODULES_template,$(prog)))) vpath %.c $(MODULES:%=$(BASE)/modules/%) -# Compilation test rules. {{{1 +# Compilation test rules. define TEST_MCU_template test.sub:: @@ -54,7 +54,7 @@ $(foreach config,$(TEST_CONFIGFILES),$(eval $(call TEST_template,$(config)))) test: test.sub clean -# Include other Makefiles. {{{1 +# Include other Makefiles. ifneq (,$(filter-out %.c,$(SOURCES))) $(error Sources should be c files) @@ -70,7 +70,7 @@ clean.avr: clean.host: endif -# Rules for building the doc. {{{1 +# Rules for building the doc. doc: $(DOC) @@ -80,7 +80,7 @@ doc: $(DOC) %.exd: $(EXTRACTDOC) test -n "$^" && extractdoc $^ > $@ || true -# Cleaning. {{{1 +# Cleaning. clean: clean.avr clean.host rm -f *.bak *~ $(DOC) *.exd $(EXTRA_CLEAN_FILES) diff --git a/n/avr/make/Makefile.host b/n/avr/make/Makefile.host index 7241284..e46c2b0 100644 --- a/n/avr/make/Makefile.host +++ b/n/avr/make/Makefile.host @@ -1,6 +1,6 @@ # Makefile.host - Host Makefile. # -# Flags. {{{1 +# Flags. HOST_CFLAGS = $(CFLAGS) HOST_CPPFLAGS = $(CPPFLAGS) $(HOST_DEFS) -DHOST=1 @@ -10,13 +10,13 @@ HOST_LDLIBS = $(LDLIBS) $(HOST_LIBS) HOST_COMPILE.c = $(CC) $(HOST_CFLAGS) $(HOST_CPPFLAGS) -c HOST_LINK.o = $(CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -# Main rules. {{{1 +# Main rules. host: exe .PHONY: host clean.host exe -# General rules. {{{1 +# General rules. HOST_PROGS += $(PROGS) HOST_EXES = $(HOST_PROGS:%=%.host) @@ -40,7 +40,7 @@ $(HOST_EXES): # Dependency checking. -include $(HOST_OBJECTS:%.host.o=%.host.d) -# Cleaning. {{{1 +# Cleaning. clean.host: rm -f *.host.o *.host.d $(HOST_EXES) -- cgit v1.2.3