blob: f98ead9b1ec348ee0dc5b81f6bf6b2c3aae07a98 (
plain)
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
|
SHARED_SRC=\
src/shared/lua_api/common\
src/shared/lua_api/load_common\
src/shared/lua_api/load_net\
src/shared/lua_api/load_phys\
src/shared/lua_api/load_scene\
src/shared/lua_api/stream\
src/shared/lua_api/phys/bcharactercontroller\
src/shared/lua_api/phys/bcollider\
src/shared/lua_api/phys/bghostobject\
src/shared/lua_api/phys/bhingeconstraint\
src/shared/lua_api/phys/bphysbox\
src/shared/lua_api/phys/bphysbuffer\
src/shared/lua_api/phys/bphysgeneric\
src/shared/lua_api/phys/bphysmodel\
src/shared/lua_api/phys/btaction\
src/shared/lua_api/phys/bshape\
src/shared/phys/physcommon\
src/shared/util/hashmap\
src/shared/util/tinyobj\
CLIENT_SRC=\
src/client/main\
src/client/callbackhandeler\
src/client/initdevice\
src/client/menuhandeler\
src/client/lua_api/load_cphys\
src/client/lua_api/load_game\
src/client/lua_api/load_gui\
src/client/lua_api/load_io\
src/client/lua_api/load_scene\
src/client/lua_api/load_video\
src/client/lua_api/gui/iguibutton\
src/client/lua_api/gui/iguicheckbox\
src/client/lua_api/gui/iguicolorselector\
src/client/lua_api/gui/iguicombobox\
src/client/lua_api/gui/iguieditbox\
src/client/lua_api/gui/iguielement\
src/client/lua_api/gui/iguifiledialog\
src/client/lua_api/gui/iguiimage\
src/client/lua_api/gui/iguilabel\
src/client/lua_api/gui/iguispinbox\
src/client/lua_api/gui/iguitreeview\
src/client/lua_api/gui/iguiwindow\
src/client/lua_api/io/ifilesystem\
src/client/lua_api/phys/cbcharactercontroller\
src/client/lua_api/phys/cbphysbox\
src/client/lua_api/phys/cbphysmodel\
src/client/lua_api/scene/icamera\
src/client/lua_api/scene/igeneric\
src/client/lua_api/scene/ilight\
src/client/lua_api/scene/imesh\
src/client/lua_api/video/iimage\
src/client/lua_api/video/itexture\
src/client/lua_api/video/smaterial\
src/client/lua_api/video/draw
SERVER_SRC=\
src/server/main\
src/server/lua_api/load_game\
src/server/lua_api/load_io\
# Include paths
CFLAGS += -Ilib/luajit/src -Ilib/irrlicht/include -Isrc -Ilib/bulletminus/src -Ilib/tinyobjloader-c -Ilib/nng/include
ifeq ($(DEBUG), true)
CFLAGS += -g -shared -Wall -Werror -fPIC
LDFLAGS += #-shared #The -shared flags seemes to break the binary whever there's a windows update.
else
# TODO: On linux we can't statically link libGL in a meaningful way,
# so what now?
CFLAGS += -O3 -fpermissive
LDFLAGS += # and -static on linux prevents dynamic linking of things like libGL which must be dynamic
endif
|