X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=config.mk;h=f1a8747d9dce36d06114ec982c367ca07fd19a84;hb=752c240956a19e07eb5f2753a99c68cce4d44832;hp=762a0c3f7cf81e3e6a880ff7a9bed5d72d3442c0;hpb=452db7adbd8779c9ffcb9d17ca2c1a2a9c1af464;p=bertos.git diff --git a/config.mk b/config.mk index 762a0c3f..f1a8747d 100755 --- a/config.mk +++ b/config.mk @@ -10,6 +10,9 @@ # Author: Bernardo Innocenti # # $Log$ +# Revision 1.3 2006/05/18 00:40:10 bernie +# Setup for AVR development. +# # Revision 1.2 2006/03/27 04:48:33 bernie # Add CXXFLAGS; Add recursive targets. # @@ -37,15 +40,15 @@ OPTCFLAGS = -ffunction-sections -fdata-sections #DEBUGCFLAGS = -gdwarf-2 # For GDB -DEBUGCFLAGS = -g +#DEBUGCFLAGS = -g # # define some variables based on the AVR base path in $(AVR) # -CROSS = +CROSS = avr- CC = $(CROSS)gcc -AS = $(CROSS)$(CC) -x assembler-with-cpp -LD = $(CROSS)$(CC) +AS = $(CC) -x assembler-with-cpp +LD = $(CC) OBJCOPY = $(CROSS)objcopy INSTALL = cp -a RM = rm -f @@ -110,8 +113,10 @@ CPPAFLAGS = $(DEBUGCFLAGS) -MMD ASFLAGS = $(DEBUGCFLAGS) # Default linker flags -#LDFLAGS = $(MAP_FLAGS) -Wl,--reduce-memory-overheads -LDFLAGS = $(MAP_FLAGS) -Wl,--gc-sections +#LDFLAGS = $(MAP_FLAGS) + +#bernie: does not complain for missing symbols! +#LDFLAGS = $(MAP_FLAGS) -Wl,--gc-sections # Flags for avrdude AVRDUDEFLAGS = $(DPROG)