forked from stockrt/sqlite3-android
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 605 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 605 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
31
# http://www.sqlite.org/download.html
SQLITE_VERSION ?= 3420000
SQLITE_YEAR ?= 2023
SQLITE_BASENAME := sqlite-amalgamation-$(SQLITE_VERSION)
SQLITE_URL := https://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
clean:
rm -f "$(SQLITE_BASENAME).zip"
rm -rf "$(SQLITE_BASENAME)"
rm -rf build
rm -rf obj
rm -rf libs