# Copyright 2002,2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# Author: Bernardo Innocenti <bernie@develer.com>
+# Author: Bernie Innocenti <bernie@codewiz.org>
# Based on: GCC-AVR standard Makefile part 1, Volker Oth 1/2000
#
#
# Programmer type
# see local pgm_config.mk for programmer customization.
--include pgm_config.mk
-DPROG ?= -V -c stk500 -P /dev/ttyS0
OPTCFLAGS = -ffunction-sections -fdata-sections
#OPTCFLAGS = -funsafe-loop-optimizations
#
# define some variables based on the AVR base path in $(AVR)
#
-#CROSS = avr-
CC = gcc
CXX = g++
+AR = ar
AS = $(CC) -x assembler-with-cpp
LD = $(CC)
LDXX = $(CXX)
CHECKER = sparse
DOXYGEN = doxygen
AVRDUDE = avrdude
-MOC = moc-qt4
FLEXCAT = $(top_srcdir)/tools/flexcat/flexcat
# For conversion from ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
DEP_FLAGS = -MMD -MP
# Compiler flags for generating source listings
-LIST_FLAGS = -Wa,-anhlmsd=$(@:.o=.lst)
+LIST_FLAGS = -Wa,-anhlmsd=$(@:.o=.lst) -dp
# Linker flags for generating map files
# Only in embedded related projects generate map files
# additional libs
LIB = -lm
+
+# Archiver flags
+ARFLAGS = rcs