Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/sqlite3/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


APE=/sys/src/ape
<$APE/config

BIN=/$objtype/bin
LIB=/$objtype/lib/ape/libsqlite3.a
TARG=sqlite3

OFILES=\
	alter.$O\
	analyze.$O\
	attach.$O\
	auth.$O\
	btmutex.$O\
	btree.$O\
	build.$O\
	callback.$O\
	complete.$O\
	date.$O\
	delete.$O\
	expr.$O\
	func.$O\
	hash.$O\
	insert.$O\
	journal.$O\
	legacy.$O\
	loadext.$O\
	main.$O\
	malloc.$O\
	mem1.$O\
	mem2.$O\
	mem3.$O\
	mem4.$O\
	mutex.$O\
	mutex_os2.$O\
	mutex_plan9.$O\
	mutex_unix.$O\
	mutex_w32.$O\
	os.$O\
	os_os2.$O\
	os_plan9.$O\
	os_unix.$O\
	os_win.$O\
	pager.$O\
	pragma.$O\
	prepare.$O\
	printf.$O\
	random.$O\
	select.$O\
	table.$O\
#	tclsqlite.$O\
	tokenize.$O\
	trigger.$O\
	update.$O\
	utf.$O\
	util.$O\
	vacuum.$O\
	vdbe.$O\
	vdbeapi.$O\
	vdbeaux.$O\
	vdbeblob.$O\
	vdbefifo.$O\
	vdbemem.$O\
	vtab.$O\
	where.$O\
	opcodes.$O\
	parse.$O\
# ext \
	fts1.$O\
	fts1_hash.$O\
	fts1_porter.$O\
	fts1_tokenizer1.$O\
	fts2.$O\
	fts2_hash.$O\
	fts2_icu.$O\
	fts2_porter.$O\
	fts2_tokenizer.$O\
	fts2_tokenizer1.$O\
	fts3.$O\
	fts3_hash.$O\
	fts3_icu.$O\
	fts3_porter.$O\
	fts3_tokenizer.$O\
	fts3_tokenizer1.$O\

HFILES=/sys/include/ape/sqlite3.h\

UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\
	${LIB:/$objtype/%=/386/%}\

</sys/src/cmd/mksyslib

CFLAGS=-c -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -D'SQLITE_THREADSAFE=1' -D'SQLITE_OMIT_LOAD_EXTENSION=1' -DNDEBUG 

%.$O: src/%.c
	$CC $CFLAGS src/$stem.c

%.$O: ext/fts1/%.c
	$CC $CFLAGS -DSQLITE_CORE ext/fts1/$stem.c

%.$O: ext/fts2/%.c
	$CC $CFLAGS -DSQLITE_CORE  ext/fts2/$stem.c

%.$O: ext/fts3/%.c
	$CC $CFLAGS -DSQLITE_CORE  ext/fts3/$stem.c

$O.out: shell.$O $LIB
	$LD -o $target $prereq

$BIN/$TARG:	$O.out
	cp $prereq $BIN/$TARG

install:V:	$BIN/$TARG

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.