Move unpack lwip ip address macro to macros module.
[bertos.git] / bertos / config.mk
index 8151259453ee29f69d42013215b84ec84be2b1cc..1d75dc0b48b3b4a603b92e21e3fe51d0449331e8 100644 (file)
@@ -3,15 +3,13 @@
 # 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
@@ -25,9 +23,9 @@ DEBUGCFLAGS = -ggdb
 #
 # 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)
@@ -42,7 +40,6 @@ SHELL   = /bin/sh
 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.
@@ -53,7 +50,7 @@ COFFCONVERT=$(OBJCOPY) \
        --change-section-address .noinit-0x800000 \
        --change-section-address .eeprom-0x810000
 
-INCDIR  = -I. -Ibertos 
+INCDIR  = -I. -Ibertos -Ibertos/net/lwip/src/include -Ibertos/net/lwip/src/include/ipv4
 LIBDIR  = lib
 OBJDIR  = obj
 OUTDIR  = images
@@ -66,7 +63,7 @@ FORMAT = srec
 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
@@ -85,12 +82,14 @@ WARNFLAGS = \
 C_WARNFLAGS = \
        -Wmissing-prototypes -Wstrict-prototypes
 
+C_COMPILER_STD = -std=gnu99
+
 # Default C preprocessor flags (for C, C++ and cpp+as)
 CPPFLAGS = $(INCDIR)
 
 # Default C compiler flags
 CFLAGS = $(OPTCFLAGS) $(DEBUGCFLAGS) $(WARNFLAGS) $(C_WARNFLAGS) \
-       $(DEP_FLAGS) $(LIST_FLAGS) -std=gnu99
+       $(DEP_FLAGS) $(LIST_FLAGS) $(C_COMPILER_STD)
 
 # Default C++ compiler flags
 CXXFLAGS = $(OPTCFLAGS) $(DEBUGCFLAGS) $(WARNFLAGS) \
@@ -113,3 +112,6 @@ AVRDUDEFLAGS = $(DPROG)
 
 # additional libs
 LIB = -lm
+
+# Archiver flags
+ARFLAGS = rcs