head	1.7;
access;
symbols
	netbsd-11-0-RC4:1.7
	netbsd-11-0-RC3:1.7
	netbsd-11-0-RC2:1.7
	netbsd-11-0-RC1:1.7
	perseant-exfatfs-base-20250801:1.7
	netbsd-11:1.7.0.4
	netbsd-11-base:1.7
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.2
	perseant-exfatfs-base:1.7
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.6
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.4
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.6.0.2
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.4
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	is-mlppp:1.5.0.2
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.4
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.5
	netbsd-9:1.4.0.12
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.4
	netbsd-8-1-RC1:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.4.0.10
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	netbsd-8-0-RC2:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.4.0.8
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.4.0.6
	matt-nb8-mediatek-base:1.4
	perseant-stdc-iso10646:1.4.0.4
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.2
	netbsd-8-base:1.4
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.2
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.2.0.16
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.14
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.12
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.10
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.8
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.2.0.6
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.2.0.4
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	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.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.2
	riastradh-drm2-base:1.2
	netbsd-6-1:1.1.0.20
	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.1.0.18
	agc-symver-base:1.1
	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.14
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.12
	tls-maxphys-base:1.2
	matt-nb6-plus:1.1.0.10
	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.8
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.6
	yamt-pagecache-base:1.1
	cherry-xenmp:1.1.0.4
	cherry-xenmp-base:1.1
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1
	matt-mips64-premerge-20101231:1.1
	matt-premerge-20091211:1.1;
locks; strict;
comment	@# @;


1.7
date	2023.06.03.09.09.15;	author lukem;	state Exp;
branches;
next	1.6;
commitid	aBaIRnuykonRStrE;

1.6
date	2021.04.12.06.08.31;	author mrg;	state Exp;
branches;
next	1.5;
commitid	T0Nhd3kddHji0YOC;

1.5
date	2019.10.13.07.28.14;	author mrg;	state Exp;
branches;
next	1.4;
commitid	vRNwN94v7NgB2GGB;

1.4
date	2017.05.21.15.28.42;	author riastradh;	state Exp;
branches
	1.4.10.1;
next	1.3;
commitid	qFvwLLy2KgFGNgSz;

1.3
date	2017.02.01.00.47.56;	author christos;	state Exp;
branches;
next	1.2;
commitid	LSeQ4Z4NKRL0sbEz;

1.2
date	2013.04.11.17.00.12;	author christos;	state Exp;
branches
	1.2.10.1
	1.2.14.1;
next	1.1;

1.1
date	2009.11.02.10.15.45;	author plunky;	state Exp;
branches
	1.1.6.1
	1.1.12.1;
next	;

1.4.10.1
date	2020.04.13.08.05.28;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.2.10.1
date	2017.03.20.06.57.59;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.2.14.1
date	2017.04.21.16.54.11;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.6.1
date	2014.05.22.11.42.21;	author yamt;	state Exp;
branches;
next	;
commitid	30ZGlhv2KNB1MwBx;

1.1.12.1
date	2013.06.23.06.28.56;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;


desc
@@


1.7
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
@# $NetBSD: Makefile,v 1.6 2021/04/12 06:08:31 mrg Exp $

TESTSDIR=	${TESTSBASE}/lib/libevent

TESTS_SH=	t_event

.include <bsd.own.mk>
.include <../../../external/bsd/libevent/Makefile.inc>

.PATH:		${LIBEVENT_DIST}/test

BINDIR=		${TESTSDIR}

PROG=		h_event
MAN=		# defined
SRCS=		regress.c regress.gen.c regress_dns.c regress_http.c \
		regress_rpc.c regress_main.c tinytest.c regress_testutils.c \
		regress_minheap.c regress_util.c regress_thread.c \
		regress_buffer.c regress_bufferevent.c regress_listener.c \
		regress_zlib.c regress_et.c regress_finalize.c

SRCS+=		regress_ssl.c
DPADD+=		${LIBEVENT_OPENSSL} ${LIBSSL} ${LIBCRYPTO}
LDADD+=		-levent_openssl -lssl -lcrypto
CPPFLAGS+=	-DLIBEVENT_CRYPTO
DPADD+=		${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD}
LDADD+=		-levent_pthreads -levent -lz -lpthread

COPTS.regress_rpc.c+=	${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.regress_dns.c+=	${CC_WNO_MAYBE_UNINITIALIZED}

.include <bsd.test.mk>
@


1.6
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.5 2019/10/13 07:28:14 mrg Exp $
d29 2
a30 2
COPTS.regress_rpc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.regress_dns.c+=	${GCC_NO_MAYBE_UNINITIALIZED}
@


1.5
log
@introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2017/05/21 15:28:42 riastradh Exp $
d30 1
@


1.4
log
@Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2017/02/01 00:47:56 christos Exp $
d29 2
@


1.4.10.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $NetBSD$
a28 2
COPTS.regress_rpc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}

@


1.3
log
@add extra file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2013/04/11 17:00:12 christos Exp $
a21 1
.if ${MKCRYPTO} == "yes"
a25 1
.endif
@


1.2
log
@Add new tests sources for event2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2009/11/02 10:15:45 plunky Exp $
d20 1
a20 1
		regress_zlib.c regress_et.c
@


1.2.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2017/02/01 00:47:56 christos Exp $
d20 1
a20 1
		regress_zlib.c regress_et.c regress_finalize.c
@


1.2.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2017/02/01 00:47:56 christos Exp $
d20 1
a20 1
		regress_zlib.c regress_et.c regress_finalize.c
@


1.1
log
@add ATF tests for libevent
@
text
@d1 1
a1 1
# $NetBSD: Makefile$
d10 1
a10 1
.PATH:		${LIBEVENT_DIR}/dist/test
d17 13
a29 8
		regress_rpc.c

DPADD+=		${LIBEVENT}
LDADD+=		-levent

CPPFLAGS.regress.c+=		-Wno-cast-qual -Wno-sign-compare -Wno-shadow
CPPFLAGS.regress_http.c+=	-Wno-cast-qual -Wno-sign-compare -Wno-shadow
CPPFLAGS.regress_rpc.c+=	-Wno-cast-qual -Wno-shadow
@


1.1.6.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 2009/11/02 10:15:45 plunky Exp $
d10 1
a10 1
.PATH:		${LIBEVENT_DIST}/test
d17 8
a24 13
		regress_rpc.c regress_main.c tinytest.c regress_testutils.c \
		regress_minheap.c regress_util.c regress_thread.c \
		regress_buffer.c regress_bufferevent.c regress_listener.c \
		regress_zlib.c regress_et.c

.if ${MKCRYPTO} == "yes"
SRCS+=		regress_ssl.c
DPADD+=		${LIBEVENT_OPENSSL} ${LIBSSL} ${LIBCRYPTO}
LDADD+=		-levent_openssl -lssl -lcrypto
CPPFLAGS+=	-DLIBEVENT_CRYPTO
.endif
DPADD+=		${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD}
LDADD+=		-levent_pthreads -levent -lz -lpthread
@


1.1.12.1
log
@resync from head
@
text
@d1 1
a1 1
# $NetBSD$
d10 1
a10 1
.PATH:		${LIBEVENT_DIST}/test
d17 8
a24 13
		regress_rpc.c regress_main.c tinytest.c regress_testutils.c \
		regress_minheap.c regress_util.c regress_thread.c \
		regress_buffer.c regress_bufferevent.c regress_listener.c \
		regress_zlib.c regress_et.c

.if ${MKCRYPTO} == "yes"
SRCS+=		regress_ssl.c
DPADD+=		${LIBEVENT_OPENSSL} ${LIBSSL} ${LIBCRYPTO}
LDADD+=		-levent_openssl -lssl -lcrypto
CPPFLAGS+=	-DLIBEVENT_CRYPTO
.endif
DPADD+=		${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD}
LDADD+=		-levent_pthreads -levent -lz -lpthread
@


