source: rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/validation/validation_usb_host/build_gcc/gcc.mk@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 3.4 KB
Line 
1#
2# Copyright (c) 2011 Arduino. All right reserved.
3#
4# This library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Lesser General Public
6# License as published by the Free Software Foundation; either
7# version 2.1 of the License, or (at your option) any later version.
8#
9# This library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12# See the GNU Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public
15# License along with this library; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17#
18
19# Tool suffix when cross-compiling
20#CROSS_COMPILE = ../../../../tools/CodeSourcery_arm/bin/arm-none-eabi-
21#CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
22CROSS_COMPILE = $(ARM_GCC_TOOLCHAIN)/arm-none-eabi-
23
24# Compilation tools
25AR = $(CROSS_COMPILE)ar
26CC = $(CROSS_COMPILE)gcc
27CXX = $(CROSS_COMPILE)g++
28AS = $(CROSS_COMPILE)as
29GDB = $(CROSS_COMPILE)gdb
30SIZE = $(CROSS_COMPILE)size
31NM = $(CROSS_COMPILE)nm
32OBJCOPY = $(CROSS_COMPILE)objcopy
33
34ifeq ($(OS),Windows_NT)
35RM=cs-rm -Rf
36else
37RM=rm -Rf
38endif
39
40SEP=\\
41
42# ---------------------------------------------------------------------------------------
43# C Flags
44
45CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int
46CFLAGS += -Werror-implicit-function-declaration -Wmain -Wparentheses
47CFLAGS += -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused
48CFLAGS += -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef
49CFLAGS += -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings
50CFLAGS += -Wsign-compare -Waggregate-return -Wstrict-prototypes
51CFLAGS += -Wmissing-prototypes -Wmissing-declarations
52CFLAGS += -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations
53CFLAGS += -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long
54CFLAGS += -Wunreachable-code
55CFLAGS += -Wcast-align
56
57CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
58CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
59
60# To reduce application size use only integer printf function.
61CFLAGS += -Dprintf=iprintf
62
63# ---------------------------------------------------------------------------------------
64# CPP Flags
65
66CPPFLAGS += -Wall -Wchar-subscripts -Wcomment -Wformat=2
67CPPFLAGS += -Wmain -Wparentheses -Wcast-align -Wunreachable-code
68CPPFLAGS += -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused
69CPPFLAGS += -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef
70CPPFLAGS += -Wshadow -Wpointer-arith -Wwrite-strings
71CPPFLAGS += -Wsign-compare -Waggregate-return -Wmissing-declarations
72CPPFLAGS += -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations
73CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
74
75#-fno-rtti -fno-exceptions
76CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -std=c++98
77CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
78
79# To reduce application size use only integer printf function.
80CPPFLAGS += -Dprintf=iprintf
81
82# ---------------------------------------------------------------------------------------
83# ASM Flags
84
85ASFLAGS = -mcpu=cortex-m3 -mthumb -Wall -g $(OPTIMIZATION) $(INCLUDES)
Note: See TracBrowser for help on using the repository browser.