File: Makefile

package info (click to toggle)
openocd 0.9.0-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 25,632 kB
  • sloc: ansic: 275,066; sh: 15,664; tcl: 7,088; asm: 1,913; cpp: 1,671; makefile: 1,200; perl: 717; python: 708; haskell: 35
file content (16 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Builds the full sqlite3 extension for Jim Tcl with the sqlite3 amalgamation

all: sqlite3.so

SQLITE3_OPTS := -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 \
	-DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_OMIT_INCRBLOB

sqlite3.so: jim-sqlite3.c sqlite3.c
	./build-ext -Wall -o $@ -I.. -L.. $(SQLITE3_OPTS) $(BUILDOPTS) $^

clean:
	rm -f *.o *.so

# Note that this will only work when not cross compiling
test: sqlite3.so
	../jimsh test-sqlite3.tcl