mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-25 05:11:56 +00:00
88dae8938f
This allows for release or debug configurations, for those who prefer typing "make" into the terminal.
22 lines
629 B
Makefile
22 lines
629 B
Makefile
|
|
BUILDTYPE ?= Release
|
|
|
|
all: linux
|
|
|
|
run:
|
|
cd Build && mono Builder.exe
|
|
|
|
linux: builder native
|
|
|
|
mac: builder nativemac
|
|
|
|
builder:
|
|
msbuild /nologo /verbosity:minimal -p:Configuration=$(BUILDTYPE) BuilderMono.sln
|
|
cp builder.sh Build/builder
|
|
chmod +x Build/builder
|
|
|
|
nativemac:
|
|
g++ -std=c++14 -O2 --shared -g3 -o Build/libBuilderNative.so -fPIC -I Source/Native Source/Native/*.cpp Source/Native/OpenGL/*.cpp Source/Native/OpenGL/gl_load/*.c -ldl
|
|
|
|
native:
|
|
g++ -std=c++14 -O2 --shared -g3 -o Build/libBuilderNative.so -fPIC -I Source/Native Source/Native/*.cpp Source/Native/OpenGL/*.cpp Source/Native/OpenGL/gl_load/*.c -lX11 -ldl
|