From 752c240956a19e07eb5f2753a99c68cce4d44832 Mon Sep 17 00:00:00 2001 From: bernie Date: Thu, 18 May 2006 00:40:10 +0000 Subject: [PATCH] Setup for AVR development. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@613 38d2e660-2303-0410-9eaa-f027e97ec537 --- Makefile | 6 +++++- config.mk | 17 +++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b124466b..28777ed6 100755 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ # Author: Bernardo Innocenti # # $Log$ +# Revision 1.2 2006/05/18 00:40:10 bernie +# Setup for AVR development. +# # Revision 1.1 2006/03/22 09:51:53 bernie # Add build infrastructure. # @@ -19,7 +22,8 @@ default: all include config.mk # Include subtargets -include app/demo/demo.mk +#include app/demo/demo.mk +include app/triface/triface.mk include rules.mk 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) -- 2.25.1