From 30d37d31e369a3e70d4ecc5488f819202f2f9cfa Mon Sep 17 00:00:00 2001 From: KoffeinFlummi Date: Mon, 2 May 2016 16:39:47 +0200 Subject: [PATCH] Add makefile --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..e36b18a996 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +BIN = bin +RELEASE = release +SRC = addons + +$(BIN)/ace_%.pbo: $(SRC)/% + @mkdir -p $(BIN) + @echo " PBO $@" + @armake build -f $< $@ + +all: $(patsubst $(SRC)/%, $(BIN)/ace_%.pbo, $(wildcard $(SRC)/*)) + +clean: + rm -rf $(BIN) $(RELEASE) extensions/build/* + +extensions: $(wildcard extensions/*/*) + cd extensions/build && cmake .. && make + find ./extensions/build/ \( -name "*.so" -o -name "*.dll" \) -exec cp {} ./ \; + +extensions-win64: $(wildcard extensions/*/*) + cd extensions/build && CXX=$(eval $(which g++-w64-mingw-i686)) cmake .. && make + +release: all + @mkdir $(RELEASE) 2> /dev/null || rm -rf $(RELEASE)/* + @mkdir -p $(RELEASE)/@ace/addons + @cp $(BIN)/* $(RELEASE)/@ace/addons/ + @cp *.dll $(RELEASE)/@ace/ + @cp *.cpp $(RELEASE)/@ace/ + @cp logo_ace3_ca.paa README.md LICENSE $(RELEASE)/@ace/ + @cp docs/* $(RELEASE)/@ace/ + @echo " ZIP $(RELEASE)/@ace.zip" + @cd $(RELEASE); zip -r @ace.zip @ace &> /dev/null; cd ..