Subversion Repositories svn.mios32

Rev

Rev 845 | Rev 1056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 845 Rev 1010
Line 1... Line 1...
1
# $Id: common.mk 845 2010-01-22 23:32:05Z tk $
1
# $Id: common.mk 1010 2010-04-25 09:56:20Z tk $
2
#
2
#
3
# following variables should be set before including this file:
3
# following variables should be set before including this file:
4
#   - PROCESSOR e.g.: STM32F103RE
4
#   - PROCESSOR e.g.: STM32F103RE
5
#   - FAMILY    e.g.: STM32F10x
5
#   - FAMILY    e.g.: STM32F10x
6
#   - BOARD     e.g.: MBHP_CORE_STM32
6
#   - BOARD     e.g.: MBHP_CORE_STM32
Line 47... Line 47...
47
47
48
# define C flags
48
# define C flags
49
CFLAGS += $(C_DEFINES) $(C_INCLUDE)
49
CFLAGS += $(C_DEFINES) $(C_INCLUDE)
50
50
51
# define CPP flags (will be added to CFLAGS)
51
# define CPP flags (will be added to CFLAGS)
52
CPPFLAGS += -fno-rtti -fno-exceptions
52
CPPFLAGS += -fno-rtti -fno-exceptions -Wno-write-strings
53
53
54
# add family specific arguments
54
# add family specific arguments
55
ifeq ($(FAMILY),STM32F10x)
55
ifeq ($(FAMILY),STM32F10x)
56
CFLAGS += -mcpu=cortex-m3 -mlittle-endian -ffunction-sections
56
CFLAGS += -mcpu=cortex-m3 -mlittle-endian -ffunction-sections
57
endif
57
endif