-
Notifications
You must be signed in to change notification settings - Fork 236
/
Makefile
41 lines (34 loc) · 1023 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: default clean prebuilt
NDKBUILT := \
libs/arm64-v8a/minitouch \
libs/arm64-v8a/minitouch-nopie \
libs/armeabi-v7a/minitouch \
libs/armeabi-v7a/minitouch-nopie \
libs/x86/minitouch \
libs/x86/minitouch-nopie \
libs/x86_64/minitouch \
libs/x86_64/minitouch-nopie \
default: prebuilt
clean:
ndk-build clean
rm -rf prebuilt
$(NDKBUILT):
ndk-build
# It may feel a bit redundant to list everything here. However it also
# acts as a safeguard to make sure that we really are including everything
# that is supposed to be there.
prebuilt: \
prebuilt/arm64-v8a/bin/minitouch \
prebuilt/arm64-v8a/bin/minitouch-nopie \
prebuilt/armeabi-v7a/bin/minitouch \
prebuilt/armeabi-v7a/bin/minitouch-nopie \
prebuilt/x86/bin/minitouch \
prebuilt/x86/bin/minitouch-nopie \
prebuilt/x86_64/bin/minitouch \
prebuilt/x86_64/bin/minitouch-nopie \
prebuilt/%/bin/minitouch: libs/%/minitouch
mkdir -p $(@D)
cp $^ $@
prebuilt/%/bin/minitouch-nopie: libs/%/minitouch-nopie
mkdir -p $(@D)
cp $^ $@