improve makefiles
[avr_serial_lcd.git] / iar_c / Makefile
index 949ac7cbedc23b2700c5dab8dbd36d6028b3e064..304b256b26cb6d1636241cdf1ba6acb316a1d8d4 100644 (file)
@@ -9,10 +9,10 @@ CC = /Program Files/IAR Systems/Embedded Workbench 5.0/avr/bin/iccavr.exe
 LD = /Program Files/IAR Systems/Embedded Workbench 5.0/avr/bin/xlink.exe\r
 \r
 ## Compile options common for all C compilation units.\r
-CFLAGS = --cpu $(MCU) -lA $(PROJECT).lst -z9 -e --lock_regs 4 -D ENABLE_BIT_DEFINITIONS\r
+CFLAGS = --cpu $(MCU) -l $(PROJECT).lst -s9 -e --lock_regs 4 -D ENABLE_BIT_DEFINITIONS\r
 \r
 ## Linker flags\r
-LDFLAGS = -Fubrof9 -xm -xs -f '/Program Files/IAR Systems/Embedded Workbench 5.0/avr/config/lnktiny2313t.xcl' -l $(PROJECT).map -s main\r
+LDFLAGS = -Fubrof9 -xm -xs -xe -xn -xo -f '/Program Files/IAR Systems/Embedded Workbench 5.0/avr/config/lnktiny2313t.xcl' -l $(PROJECT).map -s main\r
 LIBS =  '/Program Files/IAR Systems/Embedded Workbench 5.0/avr/lib/clib/cl0t.r90'\r
 \r
 ## Include Directories\r