xref: /freebsd/lib/libsqlite3/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1a70cba95SGlen BarberPACKAGE=lib${LIB}
2362492e5SBaptiste DaroussinPRIVATELIB=	yes
3362492e5SBaptiste DaroussinLIB=	sqlite3
4362492e5SBaptiste DaroussinSHLIB_MAJOR?=	0
52c3e9170SBaptiste DaroussinLIBADD+=	pthread
6362492e5SBaptiste Daroussin
7362492e5SBaptiste DaroussinSRCS=	sqlite3.c
8f906f202SAdrian ChaddINCS=	sqlite3.h sqlite3ext.h
9362492e5SBaptiste Daroussin
1094989169SEnji CooperSQLITE=	${SRCTOP}/contrib/sqlite3
11362492e5SBaptiste Daroussin.PATH:	${SQLITE}
12362492e5SBaptiste Daroussin
13ecebb3ccSKyle EvansWARNS?=	3
14362492e5SBaptiste DaroussinCFLAGS+=	-I${SQLITE} \
153438e7b6SPeter Wemm		-DUSE_PREAD=1 \
16362492e5SBaptiste Daroussin		-DSTDC_HEADERS=1 \
17362492e5SBaptiste Daroussin		-DHAVE_SYS_TYPES_H=1 \
18362492e5SBaptiste Daroussin		-DHAVE_SYS_STAT_H=1 \
19362492e5SBaptiste Daroussin		-DHAVE_STDLIB_H=1 \
20362492e5SBaptiste Daroussin		-DHAVE_STRING_H=1 \
21362492e5SBaptiste Daroussin		-DHAVE_MEMORY_H=1 \
22362492e5SBaptiste Daroussin		-DHAVE_STRINGS_H=1 \
23362492e5SBaptiste Daroussin		-DHAVE_INTTYPES_H=1 \
24362492e5SBaptiste Daroussin		-DHAVE_STDINT_H=1 \
25362492e5SBaptiste Daroussin		-DHAVE_UNISTD_H=1 \
26362492e5SBaptiste Daroussin		-DHAVE_DLFCN_H=1 \
27362492e5SBaptiste Daroussin		-DHAVE_USLEEP=1 \
28362492e5SBaptiste Daroussin		-DHAVE_LOCALTIME_R=1 \
29362492e5SBaptiste Daroussin		-DHAVE_GMTIME_R=1 \
30362492e5SBaptiste Daroussin		-DHAVE_DECL_STRERROR_R=1 \
31362492e5SBaptiste Daroussin		-DHAVE_STRERROR_R=1 \
32362492e5SBaptiste Daroussin		-DHAVE_POSIX_FALLOCATE=1 \
33362492e5SBaptiste Daroussin		-D_REENTRANT=1 \
34f2aac055SCy Schubert		-DSQLITE_THREADSAFE=1
35362492e5SBaptiste Daroussin
36*bceb5a2cSBrandon Bergren.if ${MACHINE_ARCH} == "powerpc64le"
37*bceb5a2cSBrandon BergrenCFLAGS+=	-DSQLITE_BYTEORDER=1234
38*bceb5a2cSBrandon Bergren.endif
39*bceb5a2cSBrandon Bergren
40362492e5SBaptiste Daroussin.include <bsd.lib.mk>
41