mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
33 lines
951 B
Makefile
33 lines
951 B
Makefile
BIN = bin
|
|
RELEASE = release
|
|
SRC = addons
|
|
FLAGS = -w unquoted-string
|
|
|
|
$(BIN)/ace_%.pbo: $(SRC)/%
|
|
@mkdir -p $(BIN)
|
|
@echo " PBO $@"
|
|
@armake build ${FLAGS} -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 ..
|