mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
35 lines
1022 B
Makefile
35 lines
1022 B
Makefile
VERSION = 3.5.1
|
|
BIN = bin
|
|
RELEASE = release
|
|
SRC = addons
|
|
CBA = ../CBA_A3
|
|
FLAGS = -i $(CBA) -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)/ace3_$(VERSION).zip"
|
|
@cd $(RELEASE); zip -r ace3_$(VERSION).zip @ace &> /dev/null; cd ..
|