etc/services - sync with NetBSD-8
[minix.git] / external / public-domain / sqlite / lib / Makefile
blob6e56bc2eb77fa37fa0c7b2f69a6c16c766937fa8
1 # $NetBSD: Makefile,v 1.6 2014/03/07 18:37:48 christos Exp $
3 LIB= sqlite3
4 INCS= sqlite3.h sqlite3ext.h
5 INCSDIR= /usr/include
7 SRCS= sqlite3.c
9 CFLAGS+= -DNDEBUG
11 FILES+= sqlite3.pc
12 FILESOWN_sqlite3.pc= ${BINOWN}
13 FILESGRP_sqlite3.pc= ${BINGRP}
14 FILESMODE_sqlite3.pc= ${NONBINMODE}
15 FILESDIR_sqlite3.pc= /usr/lib/pkgconfig
17 CLEANFILES+=sqlite3.pc
19 .include <bsd.lib.mk>
21 .if defined(__MINIX)
22 .if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
23 !empty(DBG:M-g) || !empty(CFLAGS:M-g)
24 #LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
25 CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
26 .endif
27 .endif # defined(__MINIX)
29 all: sqlite3.pc
30 dependall: all
32 sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in
33 @(V=$$( (echo '#include <sqlite3.h>'; echo SQLITE_VERSION) | \
34 ${HOST_CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
35 ${TOOL_SED} -e s/@VERSION@/$$V/ < ${.CURDIR}/sqlite3.pc.in \
36 > ${.TARGET})