forked from singpolyma/st-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.mk
31 lines (26 loc) · 814 Bytes
/
config.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
30
31
# st version
VERSION = 0.3
# Customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
# includes and libs
INCS = -I. -I/usr/include
LIBS = -lutil -L${CC_ROOT}/lib -L${CC_ROOT}/usr/lib -lSDL2 \
-Wl,-Bstatic -lSDL2_ttf -lfreetype -lpng12 \
-Wl,-Bdynamic -lstdc++ -lz -lm -lc \
-Wl,-rpath-link,${CC_ROOT}/lib,-rpath-link,${CC_ROOT}/usr/lib
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS += -g -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} `sdl-config --cflags`
CXXFLAGS += -g -std=c++98 -Wpedantic -Wall -Os ${INCS} ${CPPFLAGS} `sdl-config --cflags`
LDFLAGS += -g ${LIBS}
#-Wl,-rpath-link,${CC_ROOT}/lib,-rpath-link,${CC_ROOT}/usr/lib
# compiler and linker
ifeq ($(CC_ROOT),)
CC = gcc
CXX = g++
else
CC = arm-linux-gnueabihf-gcc
CXX = arm-linux-gnueabihf-g++
endif