summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@mastensg.net>2025-07-03 22:14:35 +0200
committerMartin Stensgård <mastensg@mastensg.net>2025-07-03 22:46:02 +0200
commit8cecef8c855f74f2b1f1b0290c4c015d5ff34fdb (patch)
treeecc161111d43651fdd06b8eeeeb81f878df4bf17 /Makefile
parent6849796ffd03a4924cd775e6fc3eec62d03dbc18 (diff)
sqlite: import sqlite-amalgamation-3500200.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d172224..95ca7e1 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ check: all
clean:
rm -f check_ical check_ical_out.txt
rm -f opplysning
+ rm -f sqlite.o
+ rm -f sqlite3
.PHONY: all check clean
@@ -22,3 +24,9 @@ check_ical: check_ical.c
opplysning: opplysning.c
$(CC) $(CFLAGS) -o $@ opplysning.c $(LIBS)
+
+sqlite.o: sqlite/sqlite3.c
+ $(CC) $(CFLAGS) -c -o $@ sqlite/sqlite3.c
+
+sqlite3: sqlite/shell.c sqlite/sqlite3.c
+ $(CC) $(CFLAGS) -o sqlite3 sqlite/shell.c sqlite/sqlite3.c -lm