-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 677 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 677 Bytes
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
# http://www.sqlite.org/download.html
SQLITE_VERSION ?= 3280000
SQLITE_YEAR ?= 2019
SQLITE_BASENAME := sqlite-amalgamation-$(SQLITE_VERSION)
# Complete URL sample: http://www.sqlite.org/2017/sqlite-amalgamation-3160100.zip
SQLITE_URL := http://www.sqlite.org/$(SQLITE_YEAR)/$(SQLITE_BASENAME).zip
# Build/Compile
libs/armeabi/sqlite3-static: build/sqlite3.c
ndk-build
# Unpack
build/sqlite3.c: $(SQLITE_BASENAME).zip
unzip -oq "$<"
rm -rf build
mv "$(SQLITE_BASENAME)" build
touch "$@"
# Download
$(SQLITE_BASENAME).zip:
wget -N -c "$(SQLITE_URL)"
clean:
rm -f "$(SQLITE_BASENAME).zip"
rm -rf "$(SQLITE_BASENAME)"
rm -rf build
rm -rf obj
rm -rf libs