Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16 | Rev 22 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ############################################################################## |
1 | ############################################################################## |
2 | # Build global options |
2 | # Build global options |
3 | # NOTE: Can be overridden externally. |
3 | # NOTE: Can be overridden externally. |
4 | # |
4 | # |
5 | 5 | ||
- | 6 | ||
6 | # Compiler options here. |
7 | # Compiler options here. |
7 | ifeq ($(USE_OPT),) |
8 | ifeq ($(USE_OPT),) |
8 | USE_OPT = -O0 -g -ggdb -fomit-frame-pointer -falign-functions=16 |
9 | USE_OPT = -O0 -g -ggdb -fomit-frame-pointer -falign-functions=16 |
9 | endif |
10 | endif |
10 | 11 | ||
Line 181... | Line 182... | ||
181 | # Project, sources and paths |
182 | # Project, sources and paths |
182 | ############################################################################## |
183 | ############################################################################## |
183 | 184 | ||
184 | ############################################################################## |
185 | ############################################################################## |
185 | # Compiler settings |
186 | # Compiler settings |
186 | # |
187 | # hello |
187 | 188 | ||
188 | MCU = cortex-m3 |
189 | MCU = cortex-m3 |
189 | 190 | ||
190 | #TRGT = arm-elf- |
- | |
191 | TRGT = arm-none-eabi- |
191 | TRGT := arm-none-eabi- |
192 | CC = $(TRGT)gcc |
192 | CC = $(TRGT)gcc |
193 | CPPC = $(TRGT)g++ |
193 | CPPC = $(TRGT)g++ |
194 | # Enable loading with g++ only if you need C++ runtime support. |
194 | # Enable loading with g++ only if you need C++ runtime support. |
195 | # NOTE: You can use C++ even without C++ support if you are careful. C++ |
195 | # NOTE: You can use C++ even without C++ support if you are careful. C++ |
196 | # runtime support makes code size explode. |
196 | # runtime support makes code size explode. |
Line 199... | Line 199... | ||
199 | CP = $(TRGT)objcopy |
199 | CP = $(TRGT)objcopy |
200 | AS = $(TRGT)gcc -x assembler-with-cpp |
200 | AS = $(TRGT)gcc -x assembler-with-cpp |
201 | OD = $(TRGT)objdump |
201 | OD = $(TRGT)objdump |
202 | HEX = $(CP) -O ihex |
202 | HEX = $(CP) -O ihex |
203 | BIN = $(CP) -O binary |
203 | BIN = $(CP) -O binary |
204 | SZ = touch |
204 | SZ = echo |
205 | 205 | ||
206 | # ARM-specific options here |
206 | # ARM-specific options here |
207 | AOPT = |
207 | AOPT = |
208 | 208 | ||
209 | # THUMB-specific options here |
209 | # THUMB-specific options here |