From c8c7894aacfac00a4a448a7892015b7d35876eec Mon Sep 17 00:00:00 2001 From: jmesmon Date: Thu, 5 Nov 2009 00:57:10 -0500 Subject: [PATCH] add unified compile target --- heavy/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/heavy/Makefile b/heavy/Makefile index 3c87201..bf59dd0 100644 --- a/heavy/Makefile +++ b/heavy/Makefile @@ -40,7 +40,7 @@ CDEFS = # Place -I options here CINCS = -I../common -I../ -CLINK = +CLINK = -L/usr/lib64/binutils/avr/2.20/ldscripts CDEBUG = -g$(DEBUG) CWARN = -Wall -Wstrict-prototypes @@ -141,11 +141,11 @@ all: build build: elf hex eep -elf: $(TARGET).elf -hex: $(TARGET).hex -eep: $(TARGET).eep -lss: $(TARGET).lss -sym: $(TARGET).sym +elf: $(TARGET).elf $(TARGET).uni.elf +hex: $(TARGET).hex $(TARGET).uni.hex +eep: $(TARGET).eep $(TARGET).uni.eep +lss: $(TARGET).lss $(TARGET).uni.lss +sym: $(TARGET).sym $(TARGET).uni.sym # Program the device. @@ -195,6 +195,8 @@ extcoff: $(TARGET).elf $(TARGET).elf: $(OBJ) $(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) +$(TARGET).uni.elf: $(SRC) + $(CC) $(ALL_CFLAGS) $(SRC) --combine -fwhole-program --output $@ $(LDFLAGS) # Compile: create object files from C source files. .c.o: -- 2.11.4.GIT