-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommon.mk
More file actions
18 lines (15 loc) · 783 Bytes
/
common.mk
File metadata and controls
18 lines (15 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INCPATHS=-I$(top_srcdir)/include -I$(prefix)/include/freetype2
C9FLAGS=-mcpu=arm946e-s -march=armv5te -mlittle-endian -mword-relocations
THUMBFLAGS=-mthumb #-mthumb-interwork
SIZE_OPTIMIZATION = -flto
#SIZE_OPTIMIZATION = -Wl,--gc-sections -ffunction-sections
AM_CPPFLAGS=$(INCPATHS)
ARM_ONLY= -std=gnu11 -O2 -g -fomit-frame-pointer -ffast-math \
-Wpedantic -Wall -Wextra -Wcast-align -Wcast-qual \
-Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op \
-Wmissing-declarations -Wmissing-include-dirs -Wredundant-decls \
-Wshadow -Wsign-conversion -Wstrict-overflow=5 -Wswitch-default \
-Wundef -Wno-unused $(C9FLAGS) $(SIZE_OPTIMIZATION)
AM_CFLAGS=$(ARM_ONLY) $(THUMBFLAGS)
AM_LDFLAGS=-Wl,--use-blx,--pic-veneer,-q
OCFLAGS=--set-section-flags .bss=alloc,load,contents