1PACKAGE=lib${LIB} 2PRIVATELIB= yes 3LIB= sqlite3 4SHLIB_MAJOR?= 0 5LIBADD+= pthread 6 7SRCS= sqlite3.c 8INCS= sqlite3.h sqlite3ext.h 9 10SQLITE= ${SRCTOP}/contrib/sqlite3 11.PATH: ${SQLITE} 12 13WARNS?= 3 14CFLAGS+= -I${SQLITE} \ 15 -DUSE_PREAD=1 \ 16 -DSTDC_HEADERS=1 \ 17 -DHAVE_SYS_TYPES_H=1 \ 18 -DHAVE_SYS_STAT_H=1 \ 19 -DHAVE_STDLIB_H=1 \ 20 -DHAVE_STRING_H=1 \ 21 -DHAVE_MEMORY_H=1 \ 22 -DHAVE_STRINGS_H=1 \ 23 -DHAVE_INTTYPES_H=1 \ 24 -DHAVE_STDINT_H=1 \ 25 -DHAVE_UNISTD_H=1 \ 26 -DHAVE_DLFCN_H=1 \ 27 -DHAVE_USLEEP=1 \ 28 -DHAVE_LOCALTIME_R=1 \ 29 -DHAVE_GMTIME_R=1 \ 30 -DHAVE_DECL_STRERROR_R=1 \ 31 -DHAVE_STRERROR_R=1 \ 32 -DHAVE_POSIX_FALLOCATE=1 \ 33 -D_REENTRANT=1 \ 34 -DSQLITE_THREADSAFE=1 35 36.if ${MACHINE_ARCH} == "powerpc64le" 37CFLAGS+= -DSQLITE_BYTEORDER=1234 38.endif 39 40.include <bsd.lib.mk> 41