17:39
[skypekit:skypekit.git] / skypekit_2.0.0.190_29281_CB30 / buildfiles / arch / _common-linux-arm.mk
1 include $(SID_DIR)/buildfiles/arch/_common.mk
2
3 TOOLCHAIN_PREFIX ?= $(COMPILER_PREFIX)/opt/cs08q3/bin/arm-none-linux-gnueabi-
4 CXX=$(TOOLCHAIN_PREFIX)g++
5 CC=$(TOOLCHAIN_PREFIX)gcc
6
7 CFLAGS+=-msoft-float -D__ARMELF__ -ffunction-sections -fdata-sections
8
9 LDFLAGS += -Wl,--gc-sections
10
11 CFLAGS+= $(ARCH_FLAGS)
12
13 CRYPTO_OPT_CFLAGS ?= -O2 -fno-schedule-insns
14
15 ifeq ($(DEBUG),)
16 CFLAGS+= -Os
17 else
18 CFLAGS += -O0 -mapcs-frame
19 endif
20
21 ifneq ($(ENABLE_CONTEXT_DUMPING),)
22 CFLAGS += -mapcs-frame
23 endif
24
25 ifeq ($(SAMPLING_PROFILER_SUPPORT),yes)
26 CFLAGS += -fno-omit-frame-pointer
27 ifneq ($(ENABLE_CONTEXT_DUMPING),)
28 # already added
29 else
30 CFLAGS += -mapcs-frame
31 endif
32 endif