X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=config.mk;h=452801741dd668aeb3f14f68cf2f3289db729058;hb=cdf0c088714fe7b9ee7e10b94858d8eff41f7899;hp=e41cc6b049dbef9cca5cc34bda3f061d6f623946;hpb=4531ca475e75f03ea9a6e559b2e80c88e1ce04e1;p=bertos.git diff --git a/config.mk b/config.mk index e41cc6b0..45280174 100644 --- a/config.mk +++ b/config.mk @@ -3,13 +3,8 @@ # Copyright 2002,2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/) # All rights reserved. # -# Based on: -# GCC-AVR standard Makefile part 1 -# Volker Oth 1/2000 -# # Author: Bernardo Innocenti -# -# $Log$ +# Based on: GCC-AVR standard Makefile part 1, Volker Oth 1/2000 # # @@ -18,20 +13,6 @@ -include pgm_config.mk DPROG ?= -V -c stk500 -P /dev/ttyS0 -# AVR ISP dongle that blows up easily -#DPROG = -V -c stk500 -P /dev/ttyS0 -#DPROG = -V -c jtag2slow -#-P /dev/ttyUSB0 - -# STK200 parallel cable -#DPROG = -c stk200 -E noreset - -# JTAG ICE mkII -#DPROG = avarice --mkII -j usb -l - -# PonyProg serial programmer -#DPROG = -c dasa2 - # Set to 1 to build for embedded devices. # e.g. produce target.elf instead of target and target_nostrip EMBEDDED_TARGET = 1 @@ -49,14 +30,13 @@ DEBUGCFLAGS = -ggdb # # define some variables based on the AVR base path in $(AVR) # -#CROSS = avr- -CC = gcc -CXX = g++ +CROSS = avr- +CC = $(CROSS)gcc +CXX = $(CROSS)g++ AS = $(CC) -x assembler-with-cpp LD = $(CC) -LDXX = $(CXX) -OBJCOPY = objcopy -STRIP = strip +OBJCOPY = $(CROSS)objcopy +STRIP = $(CROSS)strip INSTALL = cp -a RM = rm -f RM_R = rm -rf @@ -103,7 +83,7 @@ endif WARNFLAGS = \ -W -Wformat -Wall -Wundef -Wpointer-arith -Wcast-qual \ -Wcast-align -Wwrite-strings -Wsign-compare \ - -Wmissing-noreturn \ + -Wmissing-prototypes -Wmissing-noreturn \ -Wextra -Wstrict-aliasing=2 \ # -Wunsafe-loop-optimizations