mysu_anon/external-libs/Makefile

66 lines
2.5 KiB
Makefile
Raw Permalink Normal View History

NPROC=16
2022-09-07 19:31:20 +00:00
all: arm64-v8a armeabi-v7a x86_64 include/wallet2_api.h
debug: arm64-v8a armeabi-v7a include/wallet2_api.h
2022-09-07 19:31:20 +00:00
arm64-v8a: monero android64.Containerfile
2022-09-07 19:31:20 +00:00
-rm -rf arm64-v8a
-podman container rm monero-android-arm64 -f
podman build -f android64.Containerfile -t monero-android-arm64 monero --build-arg NPROC=$(NPROC)
podman create -it --name monero-android-arm64 monero-android-arm64 bash
mkdir arm64-v8a
podman cp monero-android-arm64:/opt/android/prefix/lib/. arm64-v8a/
podman cp monero-android-arm64:/src/build/release/lib/. arm64-v8a/monero
2022-09-07 19:31:20 +00:00
armeabi-v7a: monero android32.Containerfile
2022-09-07 19:31:20 +00:00
-rm -rf armeabi-v7a
-podman container rm monero-android-arm32 -f
podman build -f android32.Containerfile -t monero-android-arm32 monero --build-arg NPROC=$(NPROC)
podman create -it --name monero-android-arm32 monero-android-arm32 bash
mkdir armeabi-v7a
podman cp monero-android-arm32:/opt/android/prefix/lib/. armeabi-v7a
podman cp monero-android-arm32:/src/build/release/lib/. armeabi-v7a/monero
2022-09-07 19:31:20 +00:00
x86_64: monero android64_x86.Containerfile
2022-09-07 19:31:20 +00:00
-rm -rf x86_64
-podman container rm monero-android-x86_64 -f
podman build -f android64_x86.Containerfile -t monero-android-x86_64 monero --build-arg NPROC=$(NPROC)
podman create -it --name monero-android-x86_64 monero-android-x86_64 bash
mkdir x86_64
podman cp monero-android-x86_64:/opt/android/prefix/lib/. x86_64
podman cp monero-android-x86_64:/src/build/release/lib/. x86_64/monero
2022-09-07 19:31:20 +00:00
x86: monero android32_x86.Containerfile
2022-09-07 19:31:20 +00:00
-rm -rf x86
-podman container rm monero-android-x86 -f
podman build -f android32_x86.Containerfile -t monero-android-x86 monero --build-arg NPROC=$(NPROC)
podman create -it --name monero-android-x86 monero-android-x86 bash
mkdir x86
podman cp monero-android-x86:/opt/android/prefix/lib/. x86
podman cp monero-android-x86:/src/build/release/lib/. x86/monero
2022-09-07 19:31:20 +00:00
include/wallet2_api.h: monero include monero/src/wallet/api/wallet2_api.h
cp monero/src/wallet/api/wallet2_api.h include/wallet2_api.h
2022-09-07 19:31:20 +00:00
include:
mkdir include
clean:
-rm -rf arm64-v8a
-rm -rf armeabi-v7a
-rm -rf x86_64
-rm -rf x86
-rm -rf include
-rm -f VERSION
distclean: clean
-podman container rm monero-android-arm64 -f
-podman container rm monero-android-arm32 -f
-podman container rm monero-android-x86_64 -f
-podman container rm monero-android-x86 -f
-podman image rm monero-android-arm64 -f
-podman image rm monero-android-arm32 -f
-podman image rm monero-android-x86_64 -f
-podman image rm monero-android-x86 -f
2022-09-07 19:31:20 +00:00
.PHONY: all clean distclean