Fix test target for out-of-tree builds
[jimtcl.git] / sqlite3 / Makefile
blob2b69ae451cc8410a2b6c2567972df3a0633cc8ee
1 # Builds the full sqlite3 extension for Jim Tcl with the sqlite3 amalgamation
3 all: sqlite3.so
5 SQLITE3_OPTS := -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 \
6 -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_OMIT_INCRBLOB
8 sqlite3.so: jim-sqlite3.c sqlite3.c
9 ./build-ext -Wall -o $@ -I.. -L.. $(SQLITE3_OPTS) $(BUILDOPTS) $^
11 clean:
12 rm -f *.o *.so
14 # Note that this will only work when not cross compiling
15 test: sqlite3.so
16 ../jimsh test-sqlite3.tcl