2014-11-22 19:44:49 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-04 21:16:35 +00:00
|
|
|
PACKAGE=lib${LIB}
|
2014-11-22 19:44:49 +00:00
|
|
|
PRIVATELIB= yes
|
|
|
|
LIB= sqlite3
|
|
|
|
SHLIB_MAJOR?= 0
|
2014-11-25 11:08:58 +00:00
|
|
|
LIBADD+= pthread
|
2014-11-22 19:44:49 +00:00
|
|
|
|
|
|
|
SRCS= sqlite3.c
|
2017-03-27 22:34:43 +00:00
|
|
|
INCS= sqlite3.h sqlite3ext.h
|
2014-11-22 19:44:49 +00:00
|
|
|
|
2017-01-20 04:34:01 +00:00
|
|
|
SQLITE= ${SRCTOP}/contrib/sqlite3
|
2014-11-22 19:44:49 +00:00
|
|
|
.PATH: ${SQLITE}
|
|
|
|
|
|
|
|
WARNS= 3
|
|
|
|
CFLAGS+= -I${SQLITE} \
|
2015-08-09 05:54:53 +00:00
|
|
|
-DUSE_PREAD=1 \
|
2014-11-22 19:44:49 +00:00
|
|
|
-DSTDC_HEADERS=1 \
|
|
|
|
-DHAVE_SYS_TYPES_H=1 \
|
|
|
|
-DHAVE_SYS_STAT_H=1 \
|
|
|
|
-DHAVE_STDLIB_H=1 \
|
|
|
|
-DHAVE_STRING_H=1 \
|
|
|
|
-DHAVE_MEMORY_H=1 \
|
|
|
|
-DHAVE_STRINGS_H=1 \
|
|
|
|
-DHAVE_INTTYPES_H=1 \
|
|
|
|
-DHAVE_STDINT_H=1 \
|
|
|
|
-DHAVE_UNISTD_H=1 \
|
|
|
|
-DHAVE_DLFCN_H=1 \
|
|
|
|
-DHAVE_USLEEP=1 \
|
|
|
|
-DHAVE_LOCALTIME_R=1 \
|
|
|
|
-DHAVE_GMTIME_R=1 \
|
|
|
|
-DHAVE_DECL_STRERROR_R=1 \
|
|
|
|
-DHAVE_STRERROR_R=1 \
|
|
|
|
-DHAVE_POSIX_FALLOCATE=1 \
|
|
|
|
-D_REENTRANT=1 \
|
2019-01-12 17:56:23 +00:00
|
|
|
-DSQLITE_THREADSAFE=1
|
2014-11-22 19:44:49 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|