forked from rodan/openchronos-rfsw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Common.mk
29 lines (26 loc) · 776 Bytes
/
Common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
### Machine flags
#
CC_CMACH = -mmcu=cc430f6137
CC_DMACH = -D__MSP430_6137__ -DMRFI_CC430 -D__CC430F6137__
### Build flags
#
# -fdata-sections, -ffunction-sections and -Wl,--gc-sections -Wl,-s
# are used for dead code elimination, see:
# http://gcc.gnu.org/ml/gcc-help/2003-08/msg00128.html
#
CFLAGS += $(CC_CMACH) $(CC_DMACH) -Wall
CFLAGS += -fno-force-addr -finline-limit=1 -fno-schedule-insns
CFLAGS += -fshort-enums -Wl,-Map=output.map
LDFLAGS =
CFLAGS_REL += -Os -fdata-sections -ffunction-sections -fomit-frame-pointer
LDFLAGS_REL += -Wl,--gc-sections -Wl,-s
CFLAGS_DBG += -O1 -ggdb
LDFLAGS_DBG += -Wl,--gc-sections
# linker flags and include directories
INCLUDES += -I./ -Igcc/
### Build tools
#
CC = msp430-gcc
LD = msp430-ld
AS = msp430-as
AR = msp430-ar