-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
18 lines (15 loc) · 866 Bytes
/
common.mk
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 -I$(prefix)/include
C9FLAGS=-mcpu=arm946e-s -march=armv5te -mlittle-endian -mword-relocations
C11FLAGS=-mcpu=mpcore -mlittle-endian -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
THUMBFLAGS=#-mthumb #-mthumb-interwork
SIZE_OPTIMIZATION = -flto
#SIZE_OPTIMIZATION = -Wl,--gc-sections -ffunction-sections
AM_CPPFLAGS=$(INCPATHS)
AM_CFLAGS= -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 $(THUMBFLAGS) $(SIZE_OPTIMIZATION)
AM_LDFLAGS=-Wl,--use-blx,--pic-veneer,-q
OCFLAGS=--set-section-flags .bss=alloc,load,contents