blob: a7b9955d3ca32f62e0c05028dfe8bf0044dde04f (
plain) (
blame)
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
32
33
34
35
36
|
TCL_VER ?= 8.3
TCL_DVER = ${TCL_VER:S/.//}
PREFIX ?= /usr/local
CFLAGS += -DHAVE_READLINE=1 -DOS_UNIX=1 -DOS_WIN=0
CFLAGS += -I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include
CFLAGS += -I${.CURDIR}/src -I${.CURDIR}
LDADD += -lreadline -L${PREFIX}/lib -ltcl${TCL_DVER} -lm -lgdbm
.PATH: ${.CURDIR}/src
SRCS = build.c dbbe.c dbbegdbm.c dbbemem.c delete.c expr.c insert.c \
main.c parse.y printf.c random.c select.c table.c tokenize.c \
update.c util.c vdbe.c where.c tclsqlite.c
INCS = sqlite.h
LIB = sqlite
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
sqlite.h: sqlite.h.in VERSION
sed -e s/--VERS--/`cat ${.CURDIR}/VERSION`/ \
-e s/--ENCODING--/ISO8859/ \
${.CURDIR}/src/sqlite.h.in > sqlite.h
parse.h parse.c: parse.y
lemon o=parse ${.ALLSRC}
INCDIR = ${PREFIX}/include
LIBDIR = ${PREFIX}/lib
.include <bsd.lib.mk>
${OBJS} ${SOBJS}: parse.h sqlite.h
|