summaryrefslogtreecommitdiff
path: root/n/avr/make/Makefile.avr
diff options
context:
space:
mode:
authorschodet2005-08-09 18:27:24 +0000
committerschodet2005-08-09 18:27:24 +0000
commit2c08e9e035d28c1b33b7851d2eab7fcb02a2858c (patch)
treeb833b13fc6cd517295a1a3e354a41b27e28e1b8b /n/avr/make/Makefile.avr
parent34e38292e12969d2268c0d2834641741023f8177 (diff)
Ajout de l'option L pour faire les listings.
Diffstat (limited to 'n/avr/make/Makefile.avr')
-rw-r--r--n/avr/make/Makefile.avr3
1 files changed, 3 insertions, 0 deletions
diff --git a/n/avr/make/Makefile.avr b/n/avr/make/Makefile.avr
index 8f8030d..fe825c7 100644
--- a/n/avr/make/Makefile.avr
+++ b/n/avr/make/Makefile.avr
@@ -12,6 +12,9 @@ AVR_CC = avr-gcc
AVR_OBJCOPY = avr-objcopy
AVR_OBJDUMP = avr-objdump
AVR_COMPILE.c = $(AVR_CC) $(AVR_CFLAGS) $(AVR_CPPFLAGS) -c
+ifdef L
+AVR_COMPILE.c += -Wa,-adhlns=$(@:%.avr.o=%.c.avr.lst)
+endif
AVR_COMPILE.S = $(AVR_CC) $(AVR_ASFLAGS) $(AVR_CPPFLAGS) -c
AVR_LINK.o = $(AVR_CC) $(AVR_CFLAGS) $(AVR_LDFLAGS)