diff options
| author | Alexander <alex@cogarr.net> | 2019-07-10 14:23:51 -0400 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2019-07-10 14:23:51 -0400 |
| commit | c9db55cdc2f69c3dc7aefabe0cc828a64e377024 (patch) | |
| tree | b6735e6b43660ea77f59654f8dd4ad1339b6f9e3 /Makefile.shared | |
| parent | 456ee9baefb343e98dc94678e05335a547786c2a (diff) | |
| parent | 6539fbff3d4ecd686676f7c0de6672de38023764 (diff) | |
| download | brokengine-c9db55cdc2f69c3dc7aefabe0cc828a64e377024.tar.gz brokengine-c9db55cdc2f69c3dc7aefabe0cc828a64e377024.tar.bz2 brokengine-c9db55cdc2f69c3dc7aefabe0cc828a64e377024.zip | |
Started work on cross-platform refactor
Started refactoring the code to work on windows and linux
Diffstat (limited to 'Makefile.shared')
| -rw-r--r-- | Makefile.shared | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/Makefile.shared b/Makefile.shared new file mode 100644 index 0000000..f2192b9 --- /dev/null +++ b/Makefile.shared @@ -0,0 +1,70 @@ + +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/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 + +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/bullet/src -Ilib/tinyobjloader-c -Ilib/nng/include + +ifeq ($(DEBUG), true) + CFLAGS += -g -shared -Wall -Werror -fPIC + LDFLAGS += -shared +else + CFLAGS += -static + #LDFLAGS += -static +endif |
