forked from pyland/pyland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.libs
139 lines (112 loc) · 4.67 KB
/
Makefile.libs
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
BOOST_CPPFLAGS =
BOOST_CXXFLAGS =
BOOST_LDFLAGS =
BOOST_LDLIBS = \
-l${LIBBOOST_PYTHON} \
-lboost_filesystem \
-lboost_system \
-lboost_regex \
GLOG_CPPFLAGS = $(shell pkg-config libglog --cflags)
GLOG_CXXFLAGS =
GLOG_LDFLAGS =
GLOG_LDLIBS = $(shell pkg-config libglog --libs)
QT_INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ \
-Iqtgui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui \
-I/usr/include/qt4 -I. -Iqtgui -I. \
QT_LFLAGS = -Wl,-O1
QT_LIBS = $(SUBLIBS) -L/usr/lib/arm-linux-gnueabihf -lqscintilla2 -lSDL2 -lGL -lQtGui -lQtCore -lpthread \
QT_CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT
QT_DEFINES = -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
QT_INCFLAGS = -I/usr/include/qt4/QtGui \
-I/usr/include/qt4/ \
-I/usr/include/qt4/Qt \
-I/usr/include/qt4/QtCore \
-I/usr/include/qt4/QSci \
-I/usr/include/qt4/Qt3Support \
-I/usr/include/qt4/QtBus \
-I/usr/include/qt4/QtDeclarative \
-I/usr/include/qt4/QtDesigner \
-I/usr/include/qt4/QtHelp \
-I/usr/include/qt4/QtNetwork \
-I/usr/include/qt4/QtOpenGL \
-I/usr/include/qt4/QtScript \
-I/usr/include/qt4/QtScriptTools \
-I/usr/include/qt4/QtSql \
-I/usr/include/qt4/QtSvg \
-I/usr/include/qt4/QtTest \
-I/usr/include/qt4/QtUiTools \
-I/usr/include/qt4/QtWebKit \
-isystem /usr/include/qt4/QtXml \
-isystem /usr/include/qt4/QtXmlPatterns \
-isystem /usr/include/qt4/QtGui \
-isystem /usr/include/qt4/ \
-isystem /usr/include/qt4/Qt \
-isystem /usr/include/qt4/QtCore \
-isystem /usr/include/qt4/QSci \
-isystem /usr/include/qt4/Qt3Support \
-isystem /usr/include/qt4/QtBus \
-isystem /usr/include/qt4/QtDeclarative \
-isystem /usr/include/qt4/QtDesigner \
-isystem /usr/include/qt4/QtHelp \
-isystem /usr/include/qt4/QtNetwork \
-isystem /usr/include/qt4/QtOpenGL \
-isystem /usr/include/qt4/QtScript \
-isystem /usr/include/qt4/QtScriptTools \
-isystem /usr/include/qt4/QtSql \
-isystem /usr/include/qt4/QtSvg \
-isystem /usr/include/qt4/QtTest \
-isystem /usr/include/qt4/QtUiTools \
-isystem /usr/include/qt4/QtWebKit \
-isystem /usr/include/qt4/QtXml \
-isystem /usr/include/qt4/QtXmlPatterns \
ifeq "$(PLATFORM)" "desktop"
GL_CPPFLAGS = $(shell pkg-config gl --cflags)
GL_CXXFLAGS =
GL_LDFLAGS =
GL_LDLIBS = $(shell pkg-config gl --libs)
GRAPHICS_CPPFLAGS = $(GL_CPPFLAGS)
GRAPHICS_CXXFLAGS = $(GL_CXXFLAGS)
GRAPHICS_LDFLAGS = $(GL_LDFLAGS)
GRAPHICS_LDLIBS = $(GL_LDLIBS)
CPPFLAGS += -DUSE_GL
# WARNINGS += -Werror
else
X11_CPPFLAGS = $(shell pkg-config x11 --cflags)
X11_CXXFLAGS =
X11_LDFLAGS =
X11_LDLIBS = $(shell pkg-config x11 --libs)
# From hello_triangle
GLES_CPPFLAGS = \
-I/opt/vc/include \
-I/opt/vc/include/interface/vmcs_host/linux \
-I/opt/vc/include/interface/vcos/pthreads \
GLES_CXXFLAGS =
GLES_LDFLAGS = -L/opt/vc/lib/
GLES_LDLIBS = -lGLESv2 -lEGL -lbcm_host -lpthread
GRAPHICS_CPPFLAGS = $(GLES_CPPFLAGS) $(X11_CPPFLAGS)
GRAPHICS_CXXFLAGS = $(GLES_CXXFLAGS) $(X11_CXXFLAGS)
GRAPHICS_LDFLAGS = $(GLES_LDFLAGS) $(X11_LDFLAGS)
GRAPHICS_LDLIBS = $(GLES_LDLIBS) $(X11_LDLIBS)
CPPFLAGS += -DUSE_GLES
endif
# Filter to prevent warnings about -Wstrict-prototypes not being valid for C++
PYTHON_CPPFLAGS = $(filter-out -Wstrict-prototypes,$(shell python${PYTHON_VERSION}-config --cflags))
PYTHON_CXXFLAGS =
PYTHON_LDFLAGS = $(shell python${PYTHON_VERSION}-config --ldflags)
PYTHON_LDLIBS = $(shell python${PYTHON_VERSION}-config --libs)
SDL_CPPFLAGS = $(shell sdl2-config --cflags)
SDL_CXXFLAGS =
SDL_LDFLAGS =
SDL_LDLIBS = $(shell sdl2-config --libs) -lSDL2_image -lSDL2_ttf
TINYXML_CPPFLAGS = $(shell pkg-config tinyxml --cflags)
TINYXML_CXXFLAGS =
TINYXML_LDFLAGS =
TINYXML_LDLIBS = $(shell pkg-config tinyxml --libs)
TMXPARSER_CPPFLAGS = -I./tmx-parser/TmxParser
TMXPARSER_CXXFLAGS =
TMXPARSER_LDFLAGS = -L./tmx-parser
TMXPARSER_LDLIBS = -ltmxparser
ZLIB_CPPFLAGS = $(shell pkg-config zlib --cflags)
ZLIB_CXXFLAGS =
ZLIB_LDFLAGS =
ZLIB_LDLIBS = $(shell pkg-config zlib --libs)