1 # Hey Emacs, this is a -*- makefile -*-
3 # The purpose of this file is to define the build configuration variables used
4 # by the generic Makefile. See Makefile header for further information.
6 # Copyright (c) 2007, Atmel Corporation All rights reserved.
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are met:
11 # 1. Redistributions of source code must retain the above copyright notice, this
12 # list of conditions and the following disclaimer.
14 # 2. Redistributions in binary form must reproduce the above copyright notice,
15 # this list of conditions and the following disclaimer in the documentation and/
16 # or other materials provided with the distribution.
18 # 3. The name of ATMEL may not be used to endorse or promote products derived
19 # from this software without specific prior written permission.
21 # THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
22 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
24 # SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
25 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28 # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 APPS_PATH = $(PRJ_PATH)/APPLICATIONS
36 BRDS_PATH = $(PRJ_PATH)/BOARDS
37 COMP_PATH = $(PRJ_PATH)/COMPONENTS
38 DRVR_PATH = $(PRJ_PATH)/DRIVERS
39 SERV_PATH = $(PRJ_PATH)/SERVICES
40 UTIL_PATH = $(PRJ_PATH)/UTILS
42 # CPU architecture: {ap|uc}
45 # Part: {none|ap7000|ap7010|ap7020|uc3a0256|uc3a0512|uc3a1128|uc3a1256|uc3a1512}
48 # Flash memories: [type@address,size]...
49 FLASH = internal@0x80000000,512Kb
51 # Device/Platform/Board include path
55 # Target name: {*.a|*.elf}
58 # Definitions: [-D name[=definition]...] [-U name...]
59 # Things that might be added to DEFS:
60 # BOARD Board used: {EVK1100}
61 DEFS = -D BOARD=EVK1100
66 $(UTIL_PATH)/PREPROCESSOR/ \
71 ../../../../Source/portable/GCC/AVR32_UC3/ \
72 ../../../../Source/include/ \
73 ../../../Common/include/ \
78 $(BRDS_PATH)/EVK1100/led.c \
79 $(DRVR_PATH)/INTC/intc.c \
80 $(DRVR_PATH)/PM/pm.c \
81 $(DRVR_PATH)/GPIO/gpio.c \
82 $(DRVR_PATH)/TC/tc.c \
83 ../../../../Source/portable/GCC/AVR32_UC3/port.c \
84 ../../../../Source/portable/MemMang/heap_3.c \
85 ../../../../Source/list.c \
86 ../../../../Source/queue.c \
87 ../../../../Source/tasks.c \
88 ../../../Common/Minimal/BlockQ.c \
89 ../../../Common/Minimal/comtest.c \
90 ../../../Common/Minimal/death.c \
91 ../../../Common/Minimal/dynamic.c \
92 ../../../Common/Minimal/flash.c \
93 ../../../Common/Minimal/flop.c \
94 ../../../Common/Minimal/integer.c \
95 ../../../Common/Minimal/PollQ.c \
96 ../../../Common/Minimal/semtest.c \
97 ../../ParTest/ParTest.c \
98 ../../serial/serial.c \
101 # Assembler source files
103 ../../../../Source/portable/GCC/AVR32_UC3/exception.S
108 # Libraries to link with the project
111 # Linker script file if any
114 # Options to request or suppress warnings: [-fsyntax-only] [-pedantic[-errors]] [-w] [-Wwarning...]
115 # For further details, refer to the chapter "GCC Command Options" of the GCC manual.
118 # Options for debugging: [-g]...
119 # For further details, refer to the chapter "GCC Command Options" of the GCC manual.
122 # Options that control optimization: [-O[0|1|2|3|s]]...
123 # For further details, refer to the chapter "GCC Command Options" of the GCC manual.
124 OPTIMIZATION = -O0 -ffunction-sections -fdata-sections
126 # Extra flags to use when preprocessing
129 # Extra flags to use when compiling
132 # Extra flags to use when assembling
135 # Extra flags to use when linking
136 LD_EXTRA_FLAGS = -Wl,--gc-sections
142 # Documentation configuration file
144 ../../doxyfile.doxygen