diff --git a/RCON/makefile b/RCON/makefile new file mode 100644 index 0000000..9aa772c --- /dev/null +++ b/RCON/makefile @@ -0,0 +1,47 @@ +# I'm noob in writing makefiles, will improve this later on. + +debug32: + mkdir -p ./obj/ + mkdir -p ./bin/ + mkdir -p ./bin/Debug/ + g++ -m32 -pthread -std=c++11 -L./lib/ -c -g -fPIC -I./inc/ -I/usr/local/include -D_DEBUG ./src/*.cpp + mv *.o obj/ + g++ -m32 -pthread -std=c++11 -L./lib/ -shared -o ./bin/Debug/RCON32.so ./obj/*.o -L/usr/local/lib ./lib/libsquirrel.a + @rm -Rf obj/* + @echo done. + +release32: + mkdir -p ./obj/ + mkdir -p ./bin/ + mkdir -p ./bin/Release/ + g++ -m32 -pthread -std=c++11 -L./lib/ -c -fPIC -I./inc/ -I/usr/local/include ./src/*.cpp + mv *.o obj/ + g++ -m32 -pthread -std=c++11 -L./lib/ -shared -o ./bin/Release/RCON32.so ./obj/*.o -L/usr/local/lib ./lib/libsquirrel.a + @rm -Rf obj/* + @echo done. + +debug64: + mkdir -p ./obj/ + mkdir -p ./bin/ + mkdir -p ./bin/Debug/ + g++ -m64 -pthread -std=c++11 -L./lib/ -c -g -fPIC -I./inc/ -I/usr/local/include -D_DEBUG ./src/*.cpp + mv *.o obj/ + g++ -m64 -pthread -std=c++11 -L./lib/ -shared -o ./bin/Debug/RCON64.so ./obj/*.o -L/usr/local/lib ./lib/libsquirrel.a + @rm -Rf obj/* + @echo done. + +release64: + mkdir -p ./obj/ + mkdir -p ./bin/ + mkdir -p ./bin/Release/ + g++ -m64 -pthread -std=c++11 -L./lib/ -c -fPIC -I./inc/ -I/usr/local/include ./src/*.cpp + mv *.o obj/ + g++ -m64 -pthread -std=c++11 -L./lib/ -shared -o ./bin/Release/RCON64.so ./obj/*.o -L/usr/local/lib ./lib/libsquirrel.a + @rm -Rf obj/* + @echo done. + +all: clean release32 release64 + +clean: + @rm -Rf bin/* + @rm -Rf obj/* diff --git a/makefile b/makefile new file mode 100644 index 0000000..3e4d421 --- /dev/null +++ b/makefile @@ -0,0 +1,31 @@ +# I'm noob in writing makefiles, will improve this later on. + +debug32: + mkdir -p squirrelsrc/lib/ + mkdir -p RCON/lib/ + cd squirrelsrc/squirrel && make sq32 + cp squirrelsrc/lib/libsquirrel.a RCON/lib/libsquirrel.a + cd RCON && make debug32 + +debug64: + mkdir -p squirrelsrc/lib/ + mkdir -p RCON/lib/ + cd squirrelsrc/squirrel && make sq64 + cp squirrelsrc/lib/libsquirrel.a RCON/lib/libsquirrel.a + cd RCON && make debug64 + +release32: + mkdir -p squirrelsrc/lib/ + mkdir -p RCON/lib/ + cd squirrelsrc/squirrel && make sq32 + cp squirrelsrc/lib/libsquirrel.a RCON/lib/libsquirrel.a + cd RCON && make release32 + +release64: + mkdir -p squirrelsrc/lib/ + mkdir -p RCON/lib/ + cd squirrelsrc/squirrel && make sq64 + cp squirrelsrc/lib/libsquirrel.a RCON/lib/libsquirrel.a + cd RCON && make release64 + +all: release32 release64