head	1.25;
access;
symbols
	netbsd-11-0-RC3:1.25
	netbsd-11-0-RC2:1.25
	netbsd-11-0-RC1:1.25
	perseant-exfatfs-base-20250801:1.25
	netbsd-11:1.25.0.4
	netbsd-11-base:1.25
	netbsd-10-1-RELEASE:1.24
	perseant-exfatfs-base-20240630:1.25
	perseant-exfatfs:1.25.0.2
	perseant-exfatfs-base:1.25
	netbsd-8-3-RELEASE:1.23
	netbsd-9-4-RELEASE:1.23
	netbsd-10-0-RELEASE:1.24
	netbsd-10-0-RC6:1.24
	netbsd-10-0-RC5:1.24
	netbsd-10-0-RC4:1.24
	netbsd-10-0-RC3:1.24
	netbsd-10-0-RC2:1.24
	netbsd-10-0-RC1:1.24
	netbsd-10:1.24.0.8
	netbsd-10-base:1.24
	netbsd-9-3-RELEASE:1.23
	cjep_sun2x-base1:1.24
	cjep_sun2x:1.24.0.6
	cjep_sun2x-base:1.24
	cjep_staticlib_x-base1:1.24
	netbsd-9-2-RELEASE:1.23
	cjep_staticlib_x:1.24.0.4
	cjep_staticlib_x-base:1.24
	netbsd-9-1-RELEASE:1.23
	phil-wifi-20200421:1.24
	phil-wifi-20200411:1.24
	is-mlppp:1.24.0.2
	is-mlppp-base:1.24
	phil-wifi-20200406:1.24
	netbsd-8-2-RELEASE:1.23
	netbsd-9-0-RELEASE:1.23
	netbsd-9-0-RC2:1.23
	netbsd-9-0-RC1:1.23
	phil-wifi-20191119:1.24
	netbsd-9:1.23.0.34
	netbsd-9-base:1.23
	phil-wifi-20190609:1.23
	netbsd-8-1-RELEASE:1.23
	netbsd-8-1-RC1:1.23
	pgoyette-compat-merge-20190127:1.23
	pgoyette-compat-20190127:1.23
	pgoyette-compat-20190118:1.23
	pgoyette-compat-1226:1.23
	pgoyette-compat-1126:1.23
	pgoyette-compat-1020:1.23
	pgoyette-compat-0930:1.23
	pgoyette-compat-0906:1.23
	netbsd-7-2-RELEASE:1.23
	pgoyette-compat-0728:1.23
	netbsd-8-0-RELEASE:1.23
	phil-wifi:1.23.0.32
	phil-wifi-base:1.23
	pgoyette-compat-0625:1.23
	netbsd-8-0-RC2:1.23
	pgoyette-compat-0521:1.23
	pgoyette-compat-0502:1.23
	pgoyette-compat-0422:1.23
	netbsd-8-0-RC1:1.23
	pgoyette-compat-0415:1.23
	pgoyette-compat-0407:1.23
	pgoyette-compat-0330:1.23
	pgoyette-compat-0322:1.23
	pgoyette-compat-0315:1.23
	netbsd-7-1-2-RELEASE:1.23
	pgoyette-compat:1.23.0.30
	pgoyette-compat-base:1.23
	netbsd-7-1-1-RELEASE:1.23
	matt-nb8-mediatek:1.23.0.28
	matt-nb8-mediatek-base:1.23
	perseant-stdc-iso10646:1.23.0.26
	perseant-stdc-iso10646-base:1.23
	netbsd-8:1.23.0.24
	netbsd-8-base:1.23
	prg-localcount2-base3:1.23
	prg-localcount2-base2:1.23
	prg-localcount2-base1:1.23
	prg-localcount2:1.23.0.22
	prg-localcount2-base:1.23
	pgoyette-localcount-20170426:1.23
	bouyer-socketcan-base1:1.23
	pgoyette-localcount-20170320:1.23
	netbsd-7-1:1.23.0.20
	netbsd-7-1-RELEASE:1.23
	netbsd-7-1-RC2:1.23
	netbsd-7-nhusb-base-20170116:1.23
	bouyer-socketcan:1.23.0.18
	bouyer-socketcan-base:1.23
	pgoyette-localcount-20170107:1.23
	netbsd-7-1-RC1:1.23
	pgoyette-localcount-20161104:1.23
	netbsd-7-0-2-RELEASE:1.23
	localcount-20160914:1.23
	netbsd-7-nhusb:1.23.0.16
	netbsd-7-nhusb-base:1.23
	pgoyette-localcount-20160806:1.23
	pgoyette-localcount-20160726:1.23
	pgoyette-localcount:1.23.0.14
	pgoyette-localcount-base:1.23
	netbsd-7-0-1-RELEASE:1.23
	netbsd-7-0:1.23.0.12
	netbsd-7-0-RELEASE:1.23
	netbsd-7-0-RC3:1.23
	netbsd-7-0-RC2:1.23
	netbsd-7-0-RC1:1.23
	netbsd-5-2-3-RELEASE:1.21
	netbsd-5-1-5-RELEASE:1.21
	netbsd-6-0-6-RELEASE:1.22
	netbsd-6-1-5-RELEASE:1.22
	netbsd-7:1.23.0.10
	netbsd-7-base:1.23
	yamt-pagecache-base9:1.23
	yamt-pagecache-tag8:1.22.2.1
	netbsd-6-1-4-RELEASE:1.22
	netbsd-6-0-5-RELEASE:1.22
	tls-earlyentropy:1.23.0.8
	tls-earlyentropy-base:1.23
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23
	riastradh-drm2-base3:1.23
	netbsd-6-1-3-RELEASE:1.22
	netbsd-6-0-4-RELEASE:1.22
	netbsd-5-2-2-RELEASE:1.21
	netbsd-5-1-4-RELEASE:1.21
	netbsd-6-1-2-RELEASE:1.22
	netbsd-6-0-3-RELEASE:1.22
	netbsd-5-2-1-RELEASE:1.21
	netbsd-5-1-3-RELEASE:1.21
	netbsd-6-1-1-RELEASE:1.22
	riastradh-drm2-base2:1.23
	riastradh-drm2-base1:1.23
	riastradh-drm2:1.23.0.4
	riastradh-drm2-base:1.23
	netbsd-6-1:1.22.0.10
	netbsd-6-0-2-RELEASE:1.22
	netbsd-6-1-RELEASE:1.22
	netbsd-6-1-RC4:1.22
	netbsd-6-1-RC3:1.22
	agc-symver:1.23.0.6
	agc-symver-base:1.23
	netbsd-6-1-RC2:1.22
	netbsd-6-1-RC1:1.22
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.21.0.2
	netbsd-6-0-1-RELEASE:1.22
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.21
	netbsd-5-2-RC1:1.21
	matt-nb6-plus-nbase:1.22
	yamt-pagecache-base6:1.23
	netbsd-6-0:1.22.0.8
	netbsd-6-0-RELEASE:1.22
	netbsd-6-0-RC2:1.22
	tls-maxphys:1.23.0.2
	tls-maxphys-base:1.23
	matt-nb6-plus:1.22.0.6
	matt-nb6-plus-base:1.22
	netbsd-6-0-RC1:1.22
	yamt-pagecache-base5:1.22
	yamt-pagecache-base4:1.22
	netbsd-6:1.22.0.4
	netbsd-6-base:1.22
	netbsd-5-1-2-RELEASE:1.21
	netbsd-5-1-1-RELEASE:1.21
	yamt-pagecache-base3:1.22
	yamt-pagecache-base2:1.22
	yamt-pagecache:1.22.0.2
	yamt-pagecache-base:1.22
	cherry-xenmp:1.21.0.18
	cherry-xenmp-base:1.21
	bouyer-quota2-nbase:1.21
	bouyer-quota2:1.21.0.16
	bouyer-quota2-base:1.21
	matt-mips64-premerge-20101231:1.21
	matt-nb5-mips64-premerge-20101231:1.21
	matt-nb5-pq3:1.21.0.14
	matt-nb5-pq3-base:1.21
	netbsd-5-1:1.21.0.12
	netbsd-5-1-RELEASE:1.21
	netbsd-5-1-RC4:1.21
	matt-nb5-mips64-k15:1.21
	netbsd-5-1-RC3:1.21
	netbsd-5-1-RC2:1.21
	netbsd-5-1-RC1:1.21
	netbsd-5-0-2-RELEASE:1.21
	matt-nb5-mips64-premerge-20091211:1.21
	matt-premerge-20091211:1.21
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.21
	matt-nb4-mips64-k7-u2a-k9b:1.21
	matt-nb5-mips64-u1-k1-k5:1.21
	matt-nb5-mips64:1.21.0.10
	netbsd-5-0-1-RELEASE:1.21
	jym-xensuspend-nbase:1.21
	netbsd-5-0:1.21.0.8
	netbsd-5-0-RELEASE:1.21
	netbsd-5-0-RC4:1.21
	netbsd-5-0-RC3:1.21
	netbsd-5-0-RC2:1.21
	jym-xensuspend:1.21.0.6
	jym-xensuspend-base:1.21
	netbsd-5-0-RC1:1.21
	netbsd-5:1.21.0.4
	netbsd-5-base:1.21
	matt-mips64-base2:1.21
	matt-mips64:1.17.0.22
	netbsd-4-0-1-RELEASE:1.17
	wrstuden-revivesa-base-3:1.18
	wrstuden-revivesa-base-2:1.18
	wrstuden-fixsa-newbase:1.17
	wrstuden-revivesa-base-1:1.17
	yamt-pf42-base4:1.17
	yamt-pf42-base3:1.17
	hpcarm-cleanup-nbase:1.17
	yamt-pf42-baseX:1.17
	yamt-pf42-base2:1.17
	wrstuden-revivesa:1.17.0.20
	wrstuden-revivesa-base:1.17
	yamt-pf42:1.17.0.18
	yamt-pf42-base:1.17
	keiichi-mipv6-nbase:1.17
	keiichi-mipv6:1.17.0.16
	keiichi-mipv6-base:1.17
	matt-armv6-nbase:1.17
	matt-armv6-prevmlocking:1.17
	wrstuden-fixsa-base-1:1.17
	netbsd-4-0:1.17.0.14
	netbsd-4-0-RELEASE:1.17
	cube-autoconf:1.17.0.12
	cube-autoconf-base:1.17
	netbsd-4-0-RC5:1.17
	netbsd-4-0-RC4:1.17
	netbsd-4-0-RC3:1.17
	netbsd-4-0-RC2:1.17
	netbsd-4-0-RC1:1.17
	matt-armv6:1.17.0.10
	matt-armv6-base:1.17
	matt-mips64-base:1.17
	hpcarm-cleanup:1.17.0.8
	hpcarm-cleanup-base:1.17
	netbsd-3-1-1-RELEASE:1.16
	netbsd-3-0-3-RELEASE:1.16
	wrstuden-fixsa:1.17.0.6
	wrstuden-fixsa-base:1.17
	abandoned-netbsd-4-base:1.17
	abandoned-netbsd-4:1.17.0.2
	netbsd-3-1:1.16.0.12
	netbsd-3-1-RELEASE:1.16
	netbsd-3-0-2-RELEASE:1.16
	netbsd-3-1-RC4:1.16
	netbsd-3-1-RC3:1.16
	netbsd-3-1-RC2:1.16
	netbsd-3-1-RC1:1.16
	netbsd-4:1.17.0.4
	netbsd-4-base:1.17
	netbsd-3-0-1-RELEASE:1.16
	netbsd-3-0:1.16.0.10
	netbsd-3-0-RELEASE:1.16
	netbsd-3-0-RC6:1.16
	netbsd-3-0-RC5:1.16
	netbsd-3-0-RC4:1.16
	netbsd-3-0-RC3:1.16
	netbsd-3-0-RC2:1.16
	netbsd-3-0-RC1:1.16
	netbsd-2-0-3-RELEASE:1.16
	netbsd-2-1:1.16.0.8
	netbsd-2-1-RELEASE:1.16
	netbsd-2-1-RC6:1.16
	netbsd-2-1-RC5:1.16
	netbsd-2-1-RC4:1.16
	netbsd-2-1-RC3:1.16
	netbsd-2-1-RC2:1.16
	netbsd-2-1-RC1:1.16
	netbsd-2-0-2-RELEASE:1.16
	netbsd-3:1.16.0.6
	netbsd-3-base:1.16
	netbsd-2-0-1-RELEASE:1.16
	netbsd-2:1.16.0.4
	netbsd-2-base:1.16
	netbsd-2-0-RELEASE:1.16
	netbsd-2-0-RC5:1.16
	netbsd-2-0-RC4:1.16
	netbsd-2-0-RC3:1.16
	netbsd-2-0-RC2:1.16
	netbsd-2-0-RC1:1.16
	netbsd-2-0:1.16.0.2
	netbsd-2-0-base:1.16
	netbsd-1-6-PATCH002-RELEASE:1.12.2.1
	netbsd-1-6-PATCH002:1.12.2.1
	netbsd-1-6-PATCH002-RC4:1.12.2.1
	netbsd-1-6-PATCH002-RC3:1.12.2.1
	netbsd-1-6-PATCH002-RC2:1.12.2.1
	netbsd-1-6-PATCH002-RC1:1.12.2.1
	netbsd-1-6-PATCH001:1.12.2.1
	netbsd-1-6-PATCH001-RELEASE:1.12.2.1
	netbsd-1-6-PATCH001-RC3:1.12.2.1
	netbsd-1-6-PATCH001-RC2:1.12.2.1
	netbsd-1-6-PATCH001-RC1:1.12.2.1
	fvdl_fs64_base:1.14
	netbsd-1-6-RELEASE:1.12
	netbsd-1-6-RC3:1.12
	netbsd-1-6-RC2:1.12
	netbsd-1-6-RC1:1.12
	netbsd-1-6:1.12.0.2
	netbsd-1-6-base:1.12
	netbsd-1-5-PATCH003:1.6
	netbsd-1-5-PATCH002:1.6
	netbsd-1-5-PATCH001:1.6
	netbsd-1-5-RELEASE:1.6
	netbsd-1-5-BETA2:1.6
	netbsd-1-5-BETA:1.6
	netbsd-1-4-PATCH003:1.6
	netbsd-1-5-ALPHA2:1.6
	netbsd-1-5:1.6.0.10
	netbsd-1-5-base:1.6
	minoura-xpg4dl-base:1.6
	minoura-xpg4dl:1.6.0.8
	netbsd-1-4-PATCH002:1.6
	wrstuden-devbsize-19991221:1.6
	wrstuden-devbsize:1.6.0.6
	wrstuden-devbsize-base:1.6
	comdex-fall-1999:1.6.0.4
	comdex-fall-1999-base:1.6
	netbsd-1-4-PATCH001:1.6
	netbsd-1-4-RELEASE:1.6
	netbsd-1-4:1.6.0.2
	netbsd-1-4-base:1.6
	netbsd-1-3-PATCH003:1.5.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.5.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.5.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.5.2.1
	netbsd-1-3-PATCH002:1.5.2.1
	netbsd-1-3-PATCH001:1.5.2.1
	netbsd-1-3-RELEASE:1.5.2.1
	netbsd-1-3-BETA:1.5.2.1
	netbsd-1-3:1.5.0.2
	netbsd-1-3-base:1.5
	netbsd-1-2-PATCH001:1.3
	netbsd-1-2-RELEASE:1.3
	netbsd-1-2-BETA:1.3
	netbsd-1-2:1.3.0.6
	netbsd-1-2-base:1.3
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3;
locks; strict;
comment	@# @;


1.25
date	2023.06.03.09.09.23;	author lukem;	state Exp;
branches;
next	1.24;
commitid	aBaIRnuykonRStrE;

1.24
date	2019.10.13.07.28.20;	author mrg;	state Exp;
branches;
next	1.23;
commitid	vRNwN94v7NgB2GGB;

1.23
date	2012.08.10.12.10.30;	author joerg;	state Exp;
branches
	1.23.32.1;
next	1.22;

1.22
date	2011.06.20.07.44.04;	author mrg;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2008.09.30.06.25.22;	author dholland;	state Exp;
branches
	1.21.18.1;
next	1.20;

1.20
date	2008.09.30.05.20.42;	author dholland;	state Exp;
branches;
next	1.19;

1.19
date	2008.09.27.04.47.01;	author reed;	state Exp;
branches;
next	1.18;

1.18
date	2008.08.29.00.02.25;	author gmcgarry;	state Exp;
branches;
next	1.17;

1.17
date	2006.05.11.23.16.31;	author mrg;	state Exp;
branches
	1.17.20.1;
next	1.16;

1.16
date	2003.07.29.02.48.47;	author lukem;	state Exp;
branches;
next	1.15;

1.15
date	2003.01.05.19.24.08;	author sommerfeld;	state Exp;
branches;
next	1.14;

1.14
date	2002.09.14.05.35.13;	author thorpej;	state Exp;
branches;
next	1.13;

1.13
date	2002.08.02.02.47.58;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	2002.03.22.18.10.26;	author thorpej;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2001.02.16.01.05.34;	author enami;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.16.01.01.39;	author enami;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.16.02.42.40;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.10.23.21.50;	author erh;	state Exp;
branches;
next	1.7;

1.7
date	2000.07.25.06.29.46;	author cgd;	state Exp;
branches;
next	1.6;

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

1.5
date	97.10.18.06.42.55;	author lukem;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.03.24.22.02.57;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	95.07.25.22.20.13;	author gwr;	state Exp;
branches;
next	1.2;

1.2
date	95.07.24.19.12.18;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	95.07.24.04.02.55;	author jtc;	state Exp;
branches;
next	;

1.23.32.1
date	2020.04.13.08.05.57;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.22.2.1
date	2012.10.30.19.00.52;	author yamt;	state Exp;
branches;
next	;

1.21.18.1
date	2011.06.23.14.20.49;	author cherry;	state Exp;
branches;
next	;

1.17.20.1
date	2008.09.18.04.30.14;	author wrstuden;	state Exp;
branches;
next	;

1.12.2.1
date	2002.11.30.15.20.30;	author he;	state Exp;
branches;
next	;

1.5.2.1
date	97.11.08.15.12.32;	author lukem;	state Exp;
branches;
next	;


desc
@@


1.25
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.24 2019/10/13 07:28:20 mrg Exp $

.include <bsd.own.mk>

PROG=	rpc.pcnfsd
MAN=	rpc.pcnfsd.8
BUILDSYMLINKS+=	pcnfsd.8 rpc.pcnfsd.8
MLINKS= rpc.pcnfsd.8 pcnfsd.8
CPPFLAGS += -DUSER_CACHE -DWTMP -I. -DSUPPORT_UTMP -DSUPPORT_UTMPX

.if (${USE_YP} != "no")
CPPFLAGS+=-DUSE_YP
.endif

SRCS=	pcnfsd_v1.c pcnfsd_v2.c pcnfsd_misc.c \
	pcnfsd_cache.c pcnfsd_print.c pcnfsd_svc.c pcnfsd_xdr.c

DPADD=	${LIBRPCSVC} ${LIBCRYPT} ${LIBUTIL}
LDADD=	-lrpcsvc -lcrypt -lutil

RPC_INCS=	pcnfsd.h
RPC_XDRFILES=	pcnfsd_xdr.c
RPC_SVCFILES=	pcnfsd_svc.c
RPC_SVCCLASS=	udp tcp
RPC_SVCFLAGS=	-I

COPTS.pcnfsd_v1.c+=	-Wno-pointer-sign
COPTS.pcnfsd_v2.c+=	-Wno-pointer-sign

.include <bsd.rpc.mk>

CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.*

COPTS.pcnfsd_misc.c+=	${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_print.c+=	${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_svc.c+=	${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_CAST_FUNCTION_TYPE}

.include <bsd.prog.mk>
@


1.24
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.23 2012/08/10 12:10:30 joerg Exp $
d34 3
a36 3
COPTS.pcnfsd_misc.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_print.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_svc.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
@


1.23
log
@Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2011/06/20 07:44:04 mrg Exp $
d34 4
@


1.23.32.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
a33 4
COPTS.pcnfsd_misc.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_print.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pcnfsd_svc.c+=	${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}

@


1.22
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2008/09/30 06:25:22 dholland Exp $
a26 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
a28 1
.endif
@


1.22.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2011/06/20 07:44:04 mrg Exp $
d27 1
d30 1
@


1.21
log
@Refine previous: can put the main -> mymain thing in the .x file, which is
both tidier and also doesn't break update builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2008/09/30 05:20:42 dholland Exp $
d27 1
a27 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.21.18.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2011/06/20 07:44:04 mrg Exp $
d27 1
a27 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.20
log
@Enable the code that reads /etc/pcnfsd.conf. It was disabled because
rpcgen offers no mechanism to call it from the rpcgen-created main().
So, use the preprocessor to rename that mymain() and provide another
main() that loads the config file first.

PR bin/12758.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2008/09/27 04:47:01 reed Exp $
a10 3
# hack to allow config file to be read (see PR 12758)
CPPFLAGS+=-Dmain=mymain

@


1.19
log
@Fix the Title of manual page so it our official name (rpc.pcnfsd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only rpc.pcnfsd binary is
installed. So no change.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2008/08/29 00:02:25 gmcgarry Exp $
d11 3
@


1.18
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2006/05/11 23:16:31 mrg Exp $
d6 3
a8 2
MAN=	pcnfsd.8
MLINKS= pcnfsd.8 rpc.pcnfsd.8
@


1.17
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2003/07/29 02:48:47 lukem Exp $
d26 1
a26 1
.if ${HAVE_GCC} == 4
@


1.17.20.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2006/05/11 23:16:31 mrg Exp $
d26 1
a26 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.16
log
@remove unnecessary dependency now that bsd.rpc.mk adds to DPSRCS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2003/01/05 19:24:08 sommerfeld Exp $
d26 5
@


1.15
log
@Use <bsd.rpc.mk>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2002/09/14 05:35:13 thorpej Exp $
a30 2

${OBJS}: pcnfsd.h
@


1.14
log
@Resolve rpcgen's path in a way that works with other shells.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2002/08/02 02:47:58 christos Exp $
d20 5
a24 11
# Resolve rpcgen's path, to allow it to be a dependency.
_RPCGEN:=	${RPCGEN:M*rpcgen}
.if ${_RPCGEN:M/*} == ""
_RPCGEN!=	type ${RPCGEN} | awk '{print $$NF}'
.endif

pcnfsd_svc.c: pcnfsd.x ${_RPCGEN}
	${RPCGEN} -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@@

pcnfsd_xdr.c: pcnfsd.x ${_RPCGEN}
	${RPCGEN} -C -c ${.CURDIR}/pcnfsd.x -o $@@
d26 1
a26 2
pcnfsd.h: pcnfsd.x ${_RPCGEN}
	${RPCGEN} -C -h ${.CURDIR}/pcnfsd.x -o $@@
a27 1
CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h
d32 1
a32 1
.depend ${OBJS}: pcnfsd.h
@


1.13
log
@welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/03/22 18:10:26 thorpej Exp $
d20 4
a23 2
.ifnmake getrpcgen
XRPCGEN != cd ${.CURDIR} && ${MAKE} -B getrpcgen
d26 1
a26 4
getrpcgen:
	@@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"

pcnfsd_svc.c: pcnfsd.x ${XRPCGEN}
d29 1
a29 1
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
d32 1
a32 1
pcnfsd.h: pcnfsd.x ${XRPCGEN}
@


1.12
log
@Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2001/02/16 01:05:34 enami Exp $
d8 1
a8 1
CPPFLAGS += -DUSER_CACHE -DWTMP -I.
d17 2
a18 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT}
LDADD=	-lrpcsvc -lcrypt
@


1.12.2.1
log
@Pull up revision 1.14 (requested by thorpej in ticket #810):
  Resolve rpcgen's path in a way that works with other shells.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/03/22 18:10:26 thorpej Exp $
d20 2
a21 4
# Resolve rpcgen's path, to allow it to be a dependency.
_RPCGEN:=	${RPCGEN:M*rpcgen}
.if ${_RPCGEN:M/*} == ""
_RPCGEN!=	type ${RPCGEN} | awk '{print $$NF}'
d24 4
a27 1
pcnfsd_svc.c: pcnfsd.x ${_RPCGEN}
d30 1
a30 1
pcnfsd_xdr.c: pcnfsd.x ${_RPCGEN}
d33 1
a33 1
pcnfsd.h: pcnfsd.x ${_RPCGEN}
@


1.11
log
@No need to invoke extra shell.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.10 2001/02/16 01:01:39 enami Exp $
d8 5
a12 1
CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
@


1.10
log
@Run make in compat mode while evaluating rhs of != op.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/01/16 02:42:40 cgd Exp $
d15 1
a15 1
XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B getrpcgen)
@


1.9
log
@use expr to do subtraction.  shell math isn't as portable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2000/09/10 23:21:50 erh Exp $
d15 1
a15 1
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
@


1.8
log
@Make targets which are generated with rpcgen depend on the rpcgen binary.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2000/07/25 06:29:46 cgd Exp $
d19 1
a19 1
	@@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
@


1.7
log
@${RPCGEN}, not hard-coded rpcgen
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1997/10/25 06:58:38 lukem Exp $
d14 8
a21 1
pcnfsd_svc.c: pcnfsd.x
d24 1
a24 1
pcnfsd_xdr.c: pcnfsd.x
d27 1
a27 1
pcnfsd.h: pcnfsd.x
@


1.6
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1997/10/18 06:42:55 lukem Exp $
d15 1
a15 1
	rpcgen -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@@
d18 1
a18 1
	rpcgen -C -c ${.CURDIR}/pcnfsd.x -o $@@
d21 1
a21 1
	rpcgen -C -h ${.CURDIR}/pcnfsd.x -o $@@
@


1.5
log
@enable WARNS=1 by default, but disable in unclean 3rd party code
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1997/03/24 22:02:57 christos Exp $
a2 1
WARNS?=	0
d6 1
a6 1
CFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
@


1.5.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1997/10/25 06:58:38 lukem Exp $
d3 1
d7 1
a7 1
CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
@


1.4
log
@Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1995/07/25 22:20:13 gwr Exp $
d3 1
d16 1
a16 1
	rpcgen -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@@
d19 1
a19 1
	rpcgen -c ${.CURDIR}/pcnfsd.x -o $@@
d22 1
a22 1
	rpcgen -h ${.CURDIR}/pcnfsd.x -o $@@
@


1.3
log
@Add the NetBSD ID strings.
@
text
@d1 1
a1 1
#	$NetBSD$
d11 1
a11 1
DPADD=	${LIBRPCSVC}
@


1.2
log
@make work regardless of 'obj', do dependencies a bit better
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1995/07/24 04:02:55 jtc Exp $
@


1.1
log
@gwr's port of pcnfsd
@
text
@d1 1
a1 3
#	$Id: Makefile,v 1.10 1995/06/24 15:03:49 pk Exp $

CFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP
d4 3
d9 1
a9 4
	pcnfsd_cache.c pcnfsd_print.c

MAN=	pcnfsd.8
MLINKS= pcnfsd.8 rpc.pcnfsd.8
a13 10
OBJS= pcnfsd_svc.o pcnfsd_xdr.o

# Special rules for the generated C code...

pcnfsd_svc.o : pcnfsd_svc.c pcnfsd.h
	$(CC) $(CFLAGS) -c $*.c

pcnfsd_xdr.o : pcnfsd_xdr.c pcnfsd.h
	$(CC) $(CFLAGS) -c $*.c

d15 1
a15 1
	rpcgen -s udp -s tcp -I pcnfsd.x -o $@@
d18 1
a18 1
	rpcgen -c pcnfsd.x -o $@@
d21 1
a21 1
	rpcgen -h pcnfsd.x -o $@@
d23 2
a24 2
CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h *.o
# CLEANFILES +=	 clnt.pcnfsd pcnfsd_clnt.c
d27 2
@
