X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=icc_c%2FMakefile;h=f3c232a51c0c90696ce106f73599a8b39c93070d;hb=a710876d16a13fe5eb14c7b31713c1735d742c22;hp=cbdf209c069914899c4471850eb93e28de9b5bea;hpb=8147823cf64e37f6f43838ffa9e056ea48e30c32;p=avr_serial_lcd.git diff --git a/icc_c/Makefile b/icc_c/Makefile index cbdf209..f3c232a 100644 --- a/icc_c/Makefile +++ b/icc_c/Makefile @@ -1,5 +1,5 @@ ############################################################################### -# Makefile for the serial_lcd C & CPP versions +# Makefile for the serial_lcd C version for ICC ## General Flags PROJECT = serial_lcd @@ -9,7 +9,7 @@ CC = iccavr OBJECTS = $(PROJECT).o ## Compile options common for all C compilation units. -CFLAGS = -e -D__ICC_VERSION="7.16A" -DATtiny2313 -l -A -A -g -Wf-r20_23 -O24 +CFLAGS = -g -e -D__ICC_VERSION="7.16A" -DATtiny2313 -l -A -A -Wf-r20_23 -O24 ## Linker flags LDFLAGS = -g -e:0x0800 -bfunc_lit:0x26.0x800 -dram_end:0xdf -bdata:0x60.0xdf -dhwstk_size:30 -beeprom:0.128 -fihx_coff -S2 @@ -27,11 +27,11 @@ LINKONLYOBJECTS = all: $(TARGET) ## Compile -$(PROJECT).o: ../serial_lcd.c +$(PROJECT).o: ../$(PROJECT).c $(CC) -c $(CFLAGS) $(INCLUDES) $< $(TARGET): $(OBJECTS) - $(CC) -o SERIAL_LCD $(LDFLAGS) $(OBJECTS) -lcavrgr + $(CC) -o $(project) $(LDFLAGS) $(OBJECTS) -lcavrgr ## Clean target .PHONY: distclean