mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 14:21:18 +01:00
e9ac41698b
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
41 lines
771 B
Makefile
41 lines
771 B
Makefile
PACKAGE=lib${LIB}
|
|
PRIVATELIB= yes
|
|
LIB= sqlite3
|
|
SHLIB_MAJOR?= 0
|
|
LIBADD+= pthread
|
|
|
|
SRCS= sqlite3.c
|
|
INCS= sqlite3.h sqlite3ext.h
|
|
|
|
SQLITE= ${SRCTOP}/contrib/sqlite3
|
|
.PATH: ${SQLITE}
|
|
|
|
WARNS?= 3
|
|
CFLAGS+= -I${SQLITE} \
|
|
-DUSE_PREAD=1 \
|
|
-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 \
|
|
-DSQLITE_THREADSAFE=1
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc64le"
|
|
CFLAGS+= -DSQLITE_BYTEORDER=1234
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|