]> git.sur5r.net Git - freertos/blob - Demo/AVR32_UC3/AT32UC3A/GCC/config.mk
Add AVR32 port and demo files.
[freertos] / Demo / AVR32_UC3 / AT32UC3A / GCC / config.mk
1 # Hey Emacs, this is a -*- makefile -*-
2
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.
5
6 # Copyright (c) 2007, Atmel Corporation All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright notice, this
12 # list of conditions and the following disclaimer.
13 #
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.
17 #
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.
20 #
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.
31
32
33 # Base paths
34 PRJ_PATH = ../..
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
41
42 # CPU architecture: {ap|uc}
43 ARCH = uc
44
45 # Part: {none|ap7000|ap7010|ap7020|uc3a0256|uc3a0512|uc3a1128|uc3a1256|uc3a1512}
46 PART = uc3a0512
47
48 # Flash memories: [type@address,size]...
49 FLASH = internal@0x80000000,512Kb
50
51 # Device/Platform/Board include path
52 PLATFORM_INC_PATH = \
53   $(BRDS_PATH)/
54
55 # Target name: {*.a|*.elf}
56 TARGET = rtosdemo.elf
57
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
62
63 # Include path
64 INC_PATH = \
65   $(UTIL_PATH)/ \
66   $(UTIL_PATH)/PREPROCESSOR/ \
67   $(DRVR_PATH)/INTC/ \
68   $(DRVR_PATH)/PM/ \
69   $(DRVR_PATH)/GPIO/ \
70   $(DRVR_PATH)/TC/ \
71   ../../../../Source/portable/GCC/AVR32_UC3/ \
72   ../../../../Source/include/ \
73   ../../../Common/include/ \
74   ../../
75
76 # C source files
77 CSRCS = \
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 \
99   ../../main.c
100
101 # Assembler source files
102 ASSRCS = \
103   ../../../../Source/portable/GCC/AVR32_UC3/exception.S
104
105 # Library path
106 LIB_PATH =
107
108 # Libraries to link with the project
109 LIBS =
110
111 # Linker script file if any
112 LINKER_SCRIPT =
113
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.
116 WARNINGS = -Wall
117
118 # Options for debugging: [-g]...
119 # For further details, refer to the chapter "GCC Command Options" of the GCC manual.
120 DEBUG = -g
121
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
125
126 # Extra flags to use when preprocessing
127 CPP_EXTRA_FLAGS =
128
129 # Extra flags to use when compiling
130 C_EXTRA_FLAGS =
131
132 # Extra flags to use when assembling
133 AS_EXTRA_FLAGS =
134
135 # Extra flags to use when linking
136 LD_EXTRA_FLAGS = -Wl,--gc-sections
137
138 # Documentation path
139 DOC_PATH = \
140   ../../DOC/
141
142 # Documentation configuration file
143 DOC_CFG = \
144   ../../doxyfile.doxygen