2021-04-22 10:45:21 -06:00
|
|
|
FLAVOUR=wownero
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-23 15:36:08 -06:00
|
|
|
all: arm64-v8a x86_64 include/wallet2_api.h VERSION
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 12:17:02 -06:00
|
|
|
arm64-v8a: $(FLAVOUR) android64.Dockerfile
|
2021-04-19 02:49:22 -06:00
|
|
|
-rm -rf arm64-v8a
|
2021-04-22 10:45:21 -06:00
|
|
|
-docker container rm $(FLAVOUR)-android-arm64 -f
|
|
|
|
docker build -f android64.Dockerfile -t $(FLAVOUR)-android-arm64 $(FLAVOUR)
|
|
|
|
docker create -it --name $(FLAVOUR)-android-arm64 $(FLAVOUR)-android-arm64 bash
|
|
|
|
docker cp $(FLAVOUR)-android-arm64:/opt/android/prefix/lib/. arm64-v8a/
|
2021-04-22 12:17:02 -06:00
|
|
|
docker cp $(FLAVOUR)-android-arm64:/src/build/release/lib/. arm64-v8a/$(FLAVOUR)
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 12:17:02 -06:00
|
|
|
x86_64: $(FLAVOUR) android64_x86.Dockerfile
|
2021-04-19 02:49:22 -06:00
|
|
|
-rm -rf x86_64
|
2021-04-22 10:45:21 -06:00
|
|
|
-docker container rm $(FLAVOUR)-android-x86_64 -f
|
|
|
|
docker build -f android64_x86.Dockerfile -t $(FLAVOUR)-android-x86_64 $(FLAVOUR)
|
|
|
|
docker create -it --name $(FLAVOUR)-android-x86_64 $(FLAVOUR)-android-x86_64 bash
|
|
|
|
docker cp $(FLAVOUR)-android-x86_64:/opt/android/prefix/lib/. x86_64
|
|
|
|
docker cp $(FLAVOUR)-android-x86_64:/src/build/release/lib/. x86_64/$(FLAVOUR)
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 12:17:02 -06:00
|
|
|
include/wallet2_api.h: $(FLAVOUR) include $(FLAVOUR)/src/wallet/api/wallet2_api.h
|
|
|
|
cp $(FLAVOUR)/src/wallet/api/wallet2_api.h include/wallet2_api.h
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 12:17:02 -06:00
|
|
|
include:
|
|
|
|
mkdir include
|
2021-04-19 02:49:22 -06:00
|
|
|
|
|
|
|
VERSION:
|
2021-04-22 12:17:02 -06:00
|
|
|
echo MONERUJO_$(FLAVOUR) `git -C . branch | grep "^\*" | sed 's/^..//'` with $(FLAVOUR) `git -C $(FLAVOUR) branch | grep "^\*" | sed 's/^..//'` > VERSION
|
2021-04-19 02:49:22 -06:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -rf arm64-v8a
|
|
|
|
-rm -rf x86_64
|
|
|
|
-rm -rf include
|
|
|
|
-rm -f VERSION
|
|
|
|
|
|
|
|
distclean: clean
|
2021-04-22 10:45:21 -06:00
|
|
|
-docker container rm $(FLAVOUR)-android-arm64 -f
|
|
|
|
-docker container rm $(FLAVOUR)-android-x86_64 -f
|
|
|
|
-docker image rm $(FLAVOUR)-android-arm64 -f
|
|
|
|
-docker image rm $(FLAVOUR)-android-x86_64 -f
|
|
|
|
-rm $(FLAVOUR)
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 10:45:21 -06:00
|
|
|
$(FLAVOUR):
|
|
|
|
$(error Please ln -s $(FLAVOUR))
|
2021-04-19 02:49:22 -06:00
|
|
|
|
2021-04-22 10:45:21 -06:00
|
|
|
.PHONY: all clean distclean
|