head	1.20;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.4
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.14
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.19.0.2
	perseant-exfatfs-base:1.19
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.9
	netbsd-10-0-RELEASE:1.14
	netbsd-10-0-RC6:1.14
	netbsd-10-0-RC5:1.14
	netbsd-10-0-RC4:1.14
	netbsd-10-0-RC3:1.14
	netbsd-10-0-RC2:1.14
	netbsd-10-0-RC1:1.14
	netbsd-10:1.14.0.6
	netbsd-10-base:1.14
	netbsd-9-3-RELEASE:1.9
	cjep_sun2x-base1:1.14
	cjep_sun2x:1.14.0.4
	cjep_sun2x-base:1.14
	cjep_staticlib_x-base1:1.14
	netbsd-9-2-RELEASE:1.9
	cjep_staticlib_x:1.14.0.2
	cjep_staticlib_x-base:1.14
	netbsd-9-1-RELEASE:1.9
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	is-mlppp:1.10.0.2
	is-mlppp-base:1.10
	phil-wifi-20200406:1.10
	netbsd-8-2-RELEASE:1.8
	netbsd-9-0-RELEASE:1.9
	netbsd-9-0-RC2:1.9
	netbsd-9-0-RC1:1.9
	phil-wifi-20191119:1.10
	netbsd-9:1.9.0.2
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.8.0.14
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.8.0.12
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.8.0.10
	matt-nb8-mediatek-base:1.8
	perseant-stdc-iso10646:1.8.0.8
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.6
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.4
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	netbsd-7-1:1.6.0.10
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.8.0.2
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.8
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.7
	netbsd-7-nhusb:1.6.0.8
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.6
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.6.0.4
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.6.0.2
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.3
	riastradh-drm2-base1:1.3
	riastradh-drm2:1.3.0.2
	riastradh-drm2-base:1.3
	netbsd-6-1:1.1.0.12
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.3.0.4
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.1
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.1
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.1
	netbsd-6-0:1.1.0.10
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.8
	tls-maxphys-base:1.6
	matt-nb6-plus:1.1.0.6
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.4
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base:1.1;
locks; strict;
comment	@# @;


1.20
date	2025.11.15.08.05.01;	author mrg;	state Exp;
branches;
next	1.19;
commitid	FNlOlEgfwhT5JCiG;

1.19
date	2023.09.12.22.11.08;	author rillig;	state Exp;
branches;
next	1.18;
commitid	ZieHdTLNSWDoVwEE;

1.18
date	2023.09.04.17.05.25;	author christos;	state Exp;
branches;
next	1.17;
commitid	NsMP1m6hL1OBwtDE;

1.17
date	2023.08.09.07.37.23;	author riastradh;	state Exp;
branches;
next	1.16;
commitid	AjIw7QnZABsId5AE;

1.16
date	2023.08.08.06.27.32;	author mrg;	state Exp;
branches;
next	1.15;
commitid	fXtLeeKhU4aARWzE;

1.15
date	2023.06.03.09.09.08;	author lukem;	state Exp;
branches;
next	1.14;
commitid	aBaIRnuykonRStrE;

1.14
date	2021.04.12.06.08.31;	author mrg;	state Exp;
branches;
next	1.13;
commitid	T0Nhd3kddHji0YOC;

1.13
date	2020.11.12.17.53.43;	author nia;	state Exp;
branches;
next	1.12;
commitid	fIMG3Xqyniv3MCvC;

1.12
date	2020.11.08.21.56.48;	author nia;	state Exp;
branches;
next	1.11;
commitid	FhvekElWj5sgf8vC;

1.11
date	2020.10.29.16.35.33;	author nia;	state Exp;
branches;
next	1.10;
commitid	2HzjkVmGD6zjNOtC;

1.10
date	2019.11.11.22.45.26;	author joerg;	state Exp;
branches;
next	1.9;
commitid	IMynySmLyNzibuKB;

1.9
date	2019.06.01.10.58.12;	author mrg;	state Exp;
branches;
next	1.8;
commitid	PxX2DNL7F5QUvtpB;

1.8
date	2016.10.04.14.25.02;	author christos;	state Exp;
branches
	1.8.14.1;
next	1.7;
commitid	PWfGU3XwPktZPPoz;

1.7
date	2016.07.06.08.01.30;	author mrg;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	EJBqysNUwjvyBedz;

1.6
date	2014.03.07.18.37.48;	author christos;	state Exp;
branches;
next	1.5;
commitid	Rgy1N5ipSNrTvNrx;

1.5
date	2014.02.19.19.29.33;	author dsl;	state Exp;
branches;
next	1.4;
commitid	TkehfkQ1Qf0sjKpx;

1.4
date	2014.02.17.20.08.53;	author christos;	state Exp;
branches;
next	1.3;
commitid	fjoTcbAAtgX5Bupx;

1.3
date	2013.02.15.07.59.36;	author martin;	state Exp;
branches;
next	1.2;

1.2
date	2013.02.14.19.18.38;	author matt;	state Exp;
branches;
next	1.1;

1.1
date	2011.10.13.21.40.28;	author joerg;	state Exp;
branches
	1.1.2.1
	1.1.8.1;
next	;

1.8.14.1
date	2019.06.10.22.05.04;	author christos;	state Exp;
branches;
next	1.8.14.2;
commitid	jtc8rnCzWiEEHGqB;

1.8.14.2
date	2020.04.13.08.03.06;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.7.2.1
date	2016.11.04.14.48.50;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.1.2.1
date	2014.05.22.14.10.12;	author yamt;	state Exp;
branches;
next	;
commitid	GBDo2V5t5vDFAxBx;

1.1.8.1
date	2014.08.20.00.00.20;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.20
log
@convert -Wa,--warn into -Os for m68k.

avoids assembler warnings that are now going to be an error by default.
@
text
@# $NetBSD: Makefile,v 1.19 2023/09/12 22:11:08 rillig Exp $

LIB=		sqlite3
INCS=		sqlite3.h sqlite3ext.h
INCSDIR=	/usr/include

SRCS=		sqlite3.c

LDADD+=		-lm
DPADD+=		${LIBM}

FILES+=			sqlite3.pc
FILESOWN_sqlite3.pc=	${BINOWN}
FILESGRP_sqlite3.pc=	${BINGRP}
FILESMODE_sqlite3.pc=	${NONBINMODE}
FILESDIR_sqlite3.pc=	/usr/lib/pkgconfig

CLEANFILES+=sqlite3.pc

CWARNFLAGS.clang+=	-Wno-error=implicit-int-float-conversion

COPTS.sqlite3.c+=	${CC_WNO_RETURN_LOCAL_ADDR} ${CC_WNO_STRINGOP_OVERFLOW}
COPTS.sqlite3.c+=	${CC_WNO_ARRAY_BOUNDS}
COPTS.sqlite3.c+=	-Wno-error=misleading-indentation
COPTS.sqlite3.c+=	${${ACTIVE_CC} == "gcc":? -Wno-error=restrict :}

.include <bsd.own.mk>

.if ${MACHINE_CPU} == "m68k"
DBG+=	-Os
.endif

.include <bsd.lib.mk>

all: sqlite3.pc
dependall: all

sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in
	@@(V=$$( (echo '#include <sqlite3.h>'; echo SQLITE_VERSION) | \
	    ${HOST_CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
	    ${TOOL_SED} -e s/@@VERSION@@/$$V/ < ${.CURDIR}/sqlite3.pc.in \
	    > ${.TARGET})
@


1.19
log
@sqlite: re-enable lint

Since <assert.h> 1.26, the 'assert' macro expands to the same text,
whether in lint mode or not.

Defining the NDEBUG macro was redundant, as it is conditionally defined
depending on SQLITE_DEBUG.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/09/04 17:05:25 christos Exp $
d30 1
a30 1
CWARNFLAGS+=	-Wa,--warn
@


1.18
log
@merge conflicts between 3.26.0 and 3.34.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/08/09 07:37:23 riastradh Exp $
a2 1
NOLINT=yes	# XXX: broken
a8 2
CFLAGS+=	-DNDEBUG

@


1.17
log
@sqlite3/lib/Makefile: -Wno-error=restrict is a gccism.

Let's try to get at least one working clang autobuild this summer,
shall we?
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2023/08/08 06:27:32 mrg Exp $
d3 1
@


1.16
log
@introduce new GCC 12 warning disables and use them in a few places

this introduces 4 new warning disable flags:

   CC_WNO_MISSING_TEMPLATE_KEYWORD
   CC_WNO_REGISTER
   CC_WNO_STRINGOP_OVERREAD
   CC_WNO_ARRAY_BOUNDS

and documents them in README.warnings.  of these, the string op
and array bounds are both problematic (real bugs) and also spurious
(not real bugs), and the other 2 are mostly temporary for older
3rd party code.

add some new uses of CC_WNO_STRINGOP_OVERFLOW.

fix m68k build for gallium and GCC 12.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2023/06/03 09:09:08 lukem Exp $
d27 1
a27 1
COPTS.sqlite3.c+=	-Wno-error=restrict
@


1.15
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2021/04/12 06:08:31 mrg Exp $
d23 5
a27 1
COPTS.sqlite3.c+=	${CC_WNO_RETURN_LOCAL_ADDR}
@


1.14
log
@new GCC_NO_* uses for warning issues.  most of the users of the new
GCC_NO_RETURN_LOCAL_ADDR are bugs in GCC itself, not the code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2020/11/12 17:53:43 nia Exp $
d23 1
a23 1
COPTS.sqlite3.c+=	${GCC_NO_RETURN_LOCAL_ADDR}
@


1.13
log
@Revert addition of pthread dependency on sqlite.

It is less trivial than expected and introduced some surprising breakage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2020/11/08 21:56:48 nia Exp $
d23 1
@


1.12
log
@sqlite: do not build without multithreading support

at least a few pkgsrc packages avoid base sqlite because it fails
this check, and it's probably a surprising performance penalty for
unsuspecting users
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2020/10/29 16:35:33 nia Exp $
d11 2
a12 2
LDADD+=		-lm -lpthread
DPADD+=		${LIBM} ${LIBPTHREAD}
@


1.11
log
@sqlite: fts5 extension requires we link with -lm
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2019/11/11 22:45:26 joerg Exp $
d11 2
a12 2
LDADD+=		-lm
DPADD+=		${LIBM}
@


1.10
log
@Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2019/06/01 10:58:12 mrg Exp $
d11 3
@


1.9
log
@remove no longer required ppc64 hack.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/10/04 14:25:02 christos Exp $
d19 2
@


1.8
log
@Hack around ppc64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2016/07/06 08:01:30 mrg Exp $
a24 5
.if ${MACHINE_ARCH} == "powerpc64"
# call to `' lacks nop, can't restore toc; recompile with -fPIC
COPTS.sqlite3.c += -O0
.endif

@


1.8.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2019/06/01 10:58:12 mrg Exp $
d25 5
@


1.8.14.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $NetBSD$
a18 2
CWARNFLAGS.clang+=	-Wno-error=implicit-int-float-conversion

@


1.7
log
@use -Wa,--warn on m68k.  new sqlite generates a large jump table
that generates warnings (but should work).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2014/03/07 18:37:48 christos Exp $
d25 5
@


1.7.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/10/04 14:25:02 christos Exp $
a24 5
.if ${MACHINE_ARCH} == "powerpc64"
# call to `' lacks nop, can't restore toc; recompile with -fPIC
COPTS.sqlite3.c += -O0
.endif

@


1.6
log
@change CC to HOST_CC to avoid trying to find <stdarg.h> in an unpopulated
DSTDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2014/02/19 19:29:33 dsl Exp $
d19 6
@


1.5
log
@Add all: and dependall: tatgets so that sqlite3.pc actually gets built.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2014/02/17 20:08:53 christos Exp $
d26 1
a26 1
	    ${CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
@


1.4
log
@auto-generate so that it does not get out of sync again.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2013/02/15 07:59:36 martin Exp $
d21 3
@


1.3
log
@Backout libm dependency here as well (assuming it was meant for the
backed-out use of floor() I added/removed yesterday)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2011/10/13 21:40:28 joerg Exp $
d17 2
d20 6
@


1.2
log
@Link against libm
@
text
@a10 2
LIBDPLIBS+=	m	${NETBSDSRCDIR}/lib/libm

@


1.1
log
@Add build glue for SQLite
@
text
@d1 1
a1 1
# $NetBSD$
d11 2
@


1.1.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@a16 2
CLEANFILES+=sqlite3.pc

a17 9

all: sqlite3.pc
dependall: all

sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in
	@@(V=$$( (echo '#include <sqlite3.h>'; echo SQLITE_VERSION) | \
	    ${HOST_CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
	    ${TOOL_SED} -e s/@@VERSION@@/$$V/ < ${.CURDIR}/sqlite3.pc.in \
	    > ${.TARGET})
@


1.1.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2011/10/13 21:40:28 joerg Exp $
a16 2
CLEANFILES+=sqlite3.pc

a17 9

all: sqlite3.pc
dependall: all

sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in
	@@(V=$$( (echo '#include <sqlite3.h>'; echo SQLITE_VERSION) | \
	    ${HOST_CC} -E -I${SRCDIR} - | tail -1 | tr -d '"') && \
	    ${TOOL_SED} -e s/@@VERSION@@/$$V/ < ${.CURDIR}/sqlite3.pc.in \
	    > ${.TARGET})
@


