# 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 <bernie@develer.com>
-#
-# $Log$
+# Based on: GCC-AVR standard Makefile part 1, Volker Oth 1/2000
#
#
-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
#
# 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
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