head	1.14;
access;
symbols
	netbsd-11-0-RC4:1.14
	netbsd-11-0-RC3:1.14
	netbsd-11-0-RC2:1.14
	netbsd-11-0-RC1:1.14
	perseant-exfatfs-base-20250801:1.14
	netbsd-11:1.14.0.4
	netbsd-11-base:1.14
	netbsd-10-1-RELEASE:1.13
	perseant-exfatfs-base-20240630:1.14
	perseant-exfatfs:1.14.0.2
	perseant-exfatfs-base:1.14
	netbsd-8-3-RELEASE:1.12
	netbsd-9-4-RELEASE:1.12
	netbsd-10-0-RELEASE:1.13
	netbsd-10-0-RC6:1.13
	netbsd-10-0-RC5:1.13
	netbsd-10-0-RC4:1.13
	netbsd-10-0-RC3:1.13
	netbsd-10-0-RC2:1.13
	netbsd-10-0-RC1:1.13
	netbsd-10:1.13.0.8
	netbsd-10-base:1.13
	netbsd-9-3-RELEASE:1.12
	cjep_sun2x-base1:1.13
	cjep_sun2x:1.13.0.6
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	netbsd-9-2-RELEASE:1.12
	cjep_staticlib_x:1.13.0.4
	cjep_staticlib_x-base:1.13
	netbsd-9-1-RELEASE:1.12
	phil-wifi-20200421:1.13
	phil-wifi-20200411:1.13
	is-mlppp:1.13.0.2
	is-mlppp-base:1.13
	phil-wifi-20200406:1.13
	netbsd-8-2-RELEASE:1.12
	netbsd-9-0-RELEASE:1.12
	netbsd-9-0-RC2:1.12
	netbsd-9-0-RC1:1.12
	phil-wifi-20191119:1.13
	netbsd-9:1.12.0.44
	netbsd-9-base:1.12
	phil-wifi-20190609:1.12
	netbsd-8-1-RELEASE:1.12
	netbsd-8-1-RC1:1.12
	pgoyette-compat-merge-20190127:1.12
	pgoyette-compat-20190127:1.12
	pgoyette-compat-20190118:1.12
	pgoyette-compat-1226:1.12
	pgoyette-compat-1126:1.12
	pgoyette-compat-1020:1.12
	pgoyette-compat-0930:1.12
	pgoyette-compat-0906:1.12
	netbsd-7-2-RELEASE:1.12
	pgoyette-compat-0728:1.12
	netbsd-8-0-RELEASE:1.12
	phil-wifi:1.12.0.42
	phil-wifi-base:1.12
	pgoyette-compat-0625:1.12
	netbsd-8-0-RC2:1.12
	pgoyette-compat-0521:1.12
	pgoyette-compat-0502:1.12
	pgoyette-compat-0422:1.12
	netbsd-8-0-RC1:1.12
	pgoyette-compat-0415:1.12
	pgoyette-compat-0407:1.12
	pgoyette-compat-0330:1.12
	pgoyette-compat-0322:1.12
	pgoyette-compat-0315:1.12
	netbsd-7-1-2-RELEASE:1.12
	pgoyette-compat:1.12.0.40
	pgoyette-compat-base:1.12
	netbsd-7-1-1-RELEASE:1.12
	matt-nb8-mediatek:1.12.0.38
	matt-nb8-mediatek-base:1.12
	perseant-stdc-iso10646:1.12.0.36
	perseant-stdc-iso10646-base:1.12
	netbsd-8:1.12.0.34
	netbsd-8-base:1.12
	prg-localcount2-base3:1.12
	prg-localcount2-base2:1.12
	prg-localcount2-base1:1.12
	prg-localcount2:1.12.0.32
	prg-localcount2-base:1.12
	pgoyette-localcount-20170426:1.12
	bouyer-socketcan-base1:1.12
	pgoyette-localcount-20170320:1.12
	netbsd-7-1:1.12.0.30
	netbsd-7-1-RELEASE:1.12
	netbsd-7-1-RC2:1.12
	netbsd-7-nhusb-base-20170116:1.12
	bouyer-socketcan:1.12.0.28
	bouyer-socketcan-base:1.12
	pgoyette-localcount-20170107:1.12
	netbsd-7-1-RC1:1.12
	pgoyette-localcount-20161104:1.12
	netbsd-7-0-2-RELEASE:1.12
	localcount-20160914:1.12
	netbsd-7-nhusb:1.12.0.26
	netbsd-7-nhusb-base:1.12
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.24
	pgoyette-localcount-base:1.12
	netbsd-7-0-1-RELEASE:1.12
	netbsd-7-0:1.12.0.22
	netbsd-7-0-RELEASE:1.12
	netbsd-7-0-RC3:1.12
	netbsd-7-0-RC2:1.12
	netbsd-7-0-RC1:1.12
	netbsd-5-2-3-RELEASE:1.9
	netbsd-5-1-5-RELEASE:1.9
	netbsd-6-0-6-RELEASE:1.12
	netbsd-6-1-5-RELEASE:1.12
	netbsd-7:1.12.0.20
	netbsd-7-base:1.12
	yamt-pagecache-base9:1.12
	yamt-pagecache-tag8:1.12
	netbsd-6-1-4-RELEASE:1.12
	netbsd-6-0-5-RELEASE:1.12
	tls-earlyentropy:1.12.0.18
	tls-earlyentropy-base:1.12
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.12
	riastradh-drm2-base3:1.12
	netbsd-6-1-3-RELEASE:1.12
	netbsd-6-0-4-RELEASE:1.12
	netbsd-5-2-2-RELEASE:1.9
	netbsd-5-1-4-RELEASE:1.9
	netbsd-6-1-2-RELEASE:1.12
	netbsd-6-0-3-RELEASE:1.12
	netbsd-5-2-1-RELEASE:1.9
	netbsd-5-1-3-RELEASE:1.9
	netbsd-6-1-1-RELEASE:1.12
	riastradh-drm2-base2:1.12
	riastradh-drm2-base1:1.12
	riastradh-drm2:1.12.0.12
	riastradh-drm2-base:1.12
	netbsd-6-1:1.12.0.16
	netbsd-6-0-2-RELEASE:1.12
	netbsd-6-1-RELEASE:1.12
	netbsd-6-1-RC4:1.12
	netbsd-6-1-RC3:1.12
	agc-symver:1.12.0.14
	agc-symver-base:1.12
	netbsd-6-1-RC2:1.12
	netbsd-6-1-RC1:1.12
	yamt-pagecache-base8:1.12
	netbsd-5-2:1.9.0.4
	netbsd-6-0-1-RELEASE:1.12
	yamt-pagecache-base7:1.12
	netbsd-5-2-RELEASE:1.9
	netbsd-5-2-RC1:1.9
	matt-nb6-plus-nbase:1.12
	yamt-pagecache-base6:1.12
	netbsd-6-0:1.12.0.10
	netbsd-6-0-RELEASE:1.12
	netbsd-6-0-RC2:1.12
	tls-maxphys:1.12.0.8
	tls-maxphys-base:1.12
	matt-nb6-plus:1.12.0.6
	matt-nb6-plus-base:1.12
	netbsd-6-0-RC1:1.12
	yamt-pagecache-base5:1.12
	yamt-pagecache-base4:1.12
	netbsd-6:1.12.0.4
	netbsd-6-base:1.12
	netbsd-5-1-2-RELEASE:1.9
	netbsd-5-1-1-RELEASE:1.9
	yamt-pagecache-base3:1.12
	yamt-pagecache-base2:1.12
	yamt-pagecache:1.12.0.2
	yamt-pagecache-base:1.12
	cherry-xenmp:1.10.0.4
	cherry-xenmp-base:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.2
	bouyer-quota2-base:1.10
	matt-mips64-premerge-20101231:1.10
	matt-nb5-mips64-premerge-20101231:1.9
	matt-nb5-pq3:1.9.0.16
	matt-nb5-pq3-base:1.9
	netbsd-5-1:1.9.0.14
	netbsd-5-1-RELEASE:1.9
	netbsd-5-1-RC4:1.9
	matt-nb5-mips64-k15:1.9
	netbsd-5-1-RC3:1.9
	netbsd-5-1-RC2:1.9
	netbsd-5-1-RC1:1.9
	netbsd-5-0-2-RELEASE:1.9
	matt-nb5-mips64-premerge-20091211:1.9
	matt-premerge-20091211:1.10
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.9
	matt-nb4-mips64-k7-u2a-k9b:1.9
	matt-nb5-mips64-u1-k1-k5:1.9
	matt-nb5-mips64:1.9.0.12
	netbsd-5-0-1-RELEASE:1.9
	jym-xensuspend-nbase:1.10
	netbsd-5-0:1.9.0.10
	netbsd-5-0-RELEASE:1.9
	netbsd-5-0-RC4:1.9
	netbsd-5-0-RC3:1.9
	netbsd-5-0-RC2:1.9
	jym-xensuspend:1.9.0.8
	jym-xensuspend-base:1.10
	netbsd-5-0-RC1:1.9
	netbsd-5:1.9.0.6
	netbsd-5-base:1.9
	matt-mips64-base2:1.9
	matt-mips64:1.8.0.18
	netbsd-4-0-1-RELEASE:1.8
	wrstuden-revivesa-base-3:1.9
	wrstuden-revivesa-base-2:1.9
	wrstuden-fixsa-newbase:1.8
	wrstuden-revivesa-base-1:1.9
	yamt-pf42-base4:1.9
	yamt-pf42-base3:1.9
	hpcarm-cleanup-nbase:1.9
	yamt-pf42-baseX:1.8
	yamt-pf42-base2:1.9
	wrstuden-revivesa:1.9.0.2
	wrstuden-revivesa-base:1.9
	yamt-pf42:1.8.0.16
	yamt-pf42-base:1.8
	keiichi-mipv6-nbase:1.8
	keiichi-mipv6:1.8.0.14
	keiichi-mipv6-base:1.8
	matt-armv6-nbase:1.8
	matt-armv6-prevmlocking:1.8
	wrstuden-fixsa-base-1:1.8
	netbsd-4-0:1.8.0.12
	netbsd-4-0-RELEASE:1.8
	cube-autoconf:1.8.0.10
	cube-autoconf-base:1.8
	netbsd-4-0-RC5:1.8
	netbsd-4-0-RC4:1.8
	netbsd-4-0-RC3:1.8
	netbsd-4-0-RC2:1.8
	netbsd-4-0-RC1:1.8
	matt-armv6:1.8.0.8
	matt-armv6-base:1.8
	matt-mips64-base:1.8
	hpcarm-cleanup:1.8.0.6
	hpcarm-cleanup-base:1.8
	netbsd-3-1-1-RELEASE:1.7
	netbsd-3-0-3-RELEASE:1.7
	wrstuden-fixsa:1.8.0.4
	wrstuden-fixsa-base:1.8
	abandoned-netbsd-4-base:1.7
	abandoned-netbsd-4:1.7.0.8
	netbsd-3-1:1.7.0.10
	netbsd-3-1-RELEASE:1.7
	netbsd-3-0-2-RELEASE:1.7
	netbsd-3-1-RC4:1.7
	netbsd-3-1-RC3:1.7
	netbsd-3-1-RC2:1.7
	netbsd-3-1-RC1:1.7
	netbsd-4:1.8.0.2
	netbsd-4-base:1.8
	netbsd-3-0-1-RELEASE:1.7
	peter-altq-base:1.7
	peter-altq:1.7.0.6
	netbsd-3-0:1.7.0.4
	netbsd-3-0-RELEASE:1.7
	netbsd-3-0-RC6:1.7
	netbsd-3-0-RC5:1.7
	netbsd-3-0-RC4:1.7
	netbsd-3-0-RC3:1.7
	netbsd-3-0-RC2:1.7
	netbsd-3-0-RC1:1.7
	netbsd-2-0-3-RELEASE:1.5
	netbsd-2-1:1.5.0.6
	netbsd-2-1-RELEASE:1.5
	netbsd-2-1-RC6:1.5
	netbsd-2-1-RC5:1.5
	netbsd-2-1-RC4:1.5
	netbsd-2-1-RC3:1.5
	netbsd-2-1-RC2:1.5
	netbsd-2-1-RC1:1.5
	netbsd-2-0-2-RELEASE:1.5
	netbsd-3:1.7.0.2
	netbsd-3-base:1.7
	netbsd-2-0-1-RELEASE:1.5
	netbsd-2:1.5.0.4
	netbsd-2-base:1.5
	netbsd-2-0-RELEASE:1.5
	netbsd-2-0-RC5:1.5
	netbsd-2-0-RC4:1.5
	netbsd-2-0-RC3:1.5
	netbsd-2-0-RC2:1.5
	netbsd-2-0-RC1:1.5
	netbsd-2-0:1.5.0.2
	netbsd-2-0-base:1.5
	netbsd-1-6-PATCH002-RELEASE:1.4
	netbsd-1-6-PATCH002:1.4
	netbsd-1-6-PATCH002-RC4:1.4
	netbsd-1-6-PATCH002-RC3:1.4
	netbsd-1-6-PATCH002-RC2:1.4
	netbsd-1-6-PATCH002-RC1:1.4
	netbsd-1-6-PATCH001:1.4
	netbsd-1-6-PATCH001-RELEASE:1.4
	netbsd-1-6-PATCH001-RC3:1.4
	netbsd-1-6-PATCH001-RC2:1.4
	netbsd-1-6-PATCH001-RC1:1.4
	fvdl_fs64_base:1.5
	netbsd-1-6-RELEASE:1.4
	netbsd-1-6-RC3:1.4
	netbsd-1-6-RC2:1.4
	netbsd-1-6-RC1:1.4
	netbsd-1-6:1.4.0.2
	netbsd-1-6-base:1.4
	kame_15_20001214:1.1.1.1
	kame:1.1.1;
locks; strict;
comment	@# @;


1.14
date	2023.06.03.09.09.20;	author lukem;	state Exp;
branches;
next	1.13;
commitid	aBaIRnuykonRStrE;

1.13
date	2019.10.13.07.28.17;	author mrg;	state Exp;
branches;
next	1.12;
commitid	vRNwN94v7NgB2GGB;

1.12
date	2011.08.16.12.49.13;	author christos;	state Exp;
branches
	1.12.42.1;
next	1.11;

1.11
date	2011.06.22.02.49.45;	author mrg;	state Exp;
branches;
next	1.10;

1.10
date	2009.04.15.00.13.50;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2008.05.03.14.48.31;	author lukem;	state Exp;
branches
	1.9.8.1;
next	1.8;

1.8
date	2006.10.12.19.59.13;	author peter;	state Exp;
branches
	1.8.16.1;
next	1.7;

1.7
date	2005.01.10.02.58.59;	author lukem;	state Exp;
branches
	1.7.6.1;
next	1.6;

1.6
date	2004.05.23.02.24.51;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2002.09.18.13.31.52;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.05.04.11.53;	author itojun;	state Exp;
branches;
next	1.3;

1.3
date	2001.12.12.01.48.48;	author tv;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.16.18.57.35;	author thorpej;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.16.17.38.07;	author thorpej;	state Exp;
branches
	1.1.1.1;
next	;

1.12.42.1
date	2020.04.13.08.05.50;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.9.8.1
date	2009.05.13.19.20.15;	author jym;	state Exp;
branches;
next	;

1.8.16.1
date	2008.05.18.12.36.13;	author yamt;	state Exp;
branches;
next	;

1.7.6.1
date	2006.03.18.12.13.55;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	2000.12.16.17.38.07;	author thorpej;	state Exp;
branches;
next	;


desc
@@


1.14
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.13 2019/10/13 07:28:17 mrg Exp $

LIBISPRIVATE=	yes

.include <bsd.own.mk>

LIB=	altq
SRCS=	parser.c qop.c qop_blue.c qop_cbq.c qop_cdnr.c qop_conf.c \
	qop_dummy.c qop_errlist.c qop_fifoq.c qop_hfsc.c qop_jobs.c \
	qop_priq.c qop_red.c qop_rio.c qop_wfq.c quip_server.c

CPPFLAGS+= -DALTQ

.if (${USE_INET6} != "no")
CPPFLAGS+= -DINET6
.endif

COPTS+=	${CC_WNO_STRINGOP_TRUNCATION}

.include <bsd.lib.mk>
@


1.13
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.12 2011/08/16 12:49:13 christos Exp $
d18 1
a18 1
COPTS+=	${GCC_NO_STRINGOP_TRUNCATION}
@


1.12
log
@use memcpy to avoid type punning.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2011/06/22 02:49:45 mrg Exp $
d18 2
@


1.12.42.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
a17 2
COPTS+=	${GCC_NO_STRINGOP_TRUNCATION}

@


1.11
log
@apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2009/04/15 00:13:50 lukem Exp $
a18 5

# XXX
.if ${HAVE_GCC} == 45
COPTS.parser.c+=	-fno-strict-aliasing
.endif
@


1.10
log
@Fix -Wsign-compare issues
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/05/03 14:48:31 lukem Exp $
d19 5
@


1.9
log
@Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/10/12 19:59:13 peter Exp $
a6 2
#WARNS=	2

@


1.9.8.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2009/04/15 00:13:50 lukem Exp $
d7 2
@


1.8
log
@Merge the peter-altq branch.

(sync with KAME & add support for using ALTQ with pf(4)).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7.6.1 2006/03/18 12:13:55 peter Exp $
d3 1
a3 1
MKPRIVATELIB=	yes
@


1.8.16.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/10/12 19:59:13 peter Exp $
d3 1
a3 1
LIBISPRIVATE=	yes
@


1.7
log
@Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2004/05/23 02:24:51 lukem Exp $
d11 2
a12 2
	qop_dummy.c qop_errlist.c qop_fifoq.c qop_hfsc.c qop_priq.c \
	qop_red.c qop_rio.c qop_wfq.c quip_server.c
@


1.7.6.1
log
@Add qop_jobs.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2005/01/10 02:58:59 lukem Exp $
d11 2
a12 2
	qop_dummy.c qop_errlist.c qop_fifoq.c qop_hfsc.c qop_jobs.c \
	qop_priq.c qop_red.c qop_rio.c qop_wfq.c quip_server.c
@


1.6
log
@Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/09/18 13:31:52 lukem Exp $
d5 2
d14 5
a18 1
CPPFLAGS+= -DALTQ -DINET6
@


1.5
log
@minor makefile delint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2002/03/05 04:11:53 itojun Exp $
d3 1
a3 3
NOLINT=		# defined
NOPIC=		# defined
NOPROFILE=	# defined
a13 3
# only needed during build
libinstall::

@


1.4
log
@bring in latest ALTQ from kjc.
@
text
@d1 5
a5 1
#	$NetBSD: Makefile,v 1.3 2001/12/12 01:48:48 tv Exp $
a14 4

NOLINT=		# defined
NOPIC=		# defined
NOPROFILE=	# defined
@


1.3
log
@MKfoo=no -> NOfoo
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/12/16 18:57:35 thorpej Exp $
d10 1
a10 1
CPPFLAGS+= -DALTQ
@


1.2
log
@Build glue for ALTQ programs.
@
text
@d1 1
a1 1
#	$NetBSD$
d12 3
a14 3
MKLINT=		no
MKPIC=		no
MKPROFILE=	no
@


1.1
log
@Initial revision
@
text
@d1 1
a1 32
PREFIX?=	/usr/local
SYS_INCLUDES?=	-I/usr/src/sys-altq

LIB=	libaltq.a

OBJS= 	qop.o parser.o quip_server.o qop_cdnr.o qop_errlist.o \
	qop_conf.o qop_dummy.o qop_cbq.o qop_hfsc.o qop_priq.o \
	qop_red.o qop_rio.o qop_blue.o qop_wfq.o qop_fifoq.o \
	qop_priq.o

CFLAGS=		-g -Wall
CFLAGS+=	-Wpointer-arith -Wcast-qual -Wmissing-prototypes -ansi
DEFINES=	-DALTQ $(SYS_DEFINES)
INCLUDES=	-I. $(SYS_INCLUDES)

all: $(LIB)

install: $(LIB)
	$(INSTALL) $(COPY) -m 0444 $(LIB) $(PREFIX)/lib

libaltq.a: libaltq.a($(OBJS))
	rm -f $@@
	ar cq $@@ `lorder $(OBJS) | tsort -q`
	ranlib $@@

.c.o: 
	$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -c $*.c

clean:;		-rm -f $(LIB) *.a *.o core *.core *.bak ,* *~ "#"*



d3 1
d5 4
d10 1
d12 3
d16 2
d19 1
@


1.1.1.1
log
@Import the altq library.
@
text
@@
