head	1.42;
access;
symbols
	netbsd-11-0-RC4:1.42
	netbsd-11-0-RC3:1.42
	netbsd-11-0-RC2:1.42
	netbsd-11-0-RC1:1.42
	perseant-exfatfs-base-20250801:1.42
	netbsd-11:1.42.0.2
	netbsd-11-base:1.42
	netbsd-10-1-RELEASE:1.41
	perseant-exfatfs-base-20240630:1.41
	perseant-exfatfs:1.41.0.12
	perseant-exfatfs-base:1.41
	netbsd-8-3-RELEASE:1.40
	netbsd-9-4-RELEASE:1.41
	netbsd-10-0-RELEASE:1.41
	netbsd-10-0-RC6:1.41
	netbsd-10-0-RC5:1.41
	netbsd-10-0-RC4:1.41
	netbsd-10-0-RC3:1.41
	netbsd-10-0-RC2:1.41
	netbsd-10-0-RC1:1.41
	netbsd-10:1.41.0.10
	netbsd-10-base:1.41
	netbsd-9-3-RELEASE:1.41
	cjep_sun2x-base1:1.41
	cjep_sun2x:1.41.0.8
	cjep_sun2x-base:1.41
	cjep_staticlib_x-base1:1.41
	netbsd-9-2-RELEASE:1.41
	cjep_staticlib_x:1.41.0.6
	cjep_staticlib_x-base:1.41
	netbsd-9-1-RELEASE:1.41
	phil-wifi-20200421:1.41
	phil-wifi-20200411:1.41
	is-mlppp:1.41.0.4
	is-mlppp-base:1.41
	phil-wifi-20200406:1.41
	netbsd-8-2-RELEASE:1.40
	netbsd-9-0-RELEASE:1.41
	netbsd-9-0-RC2:1.41
	netbsd-9-0-RC1:1.41
	phil-wifi-20191119:1.41
	netbsd-9:1.41.0.2
	netbsd-9-base:1.41
	phil-wifi-20190609:1.41
	netbsd-8-1-RELEASE:1.40
	netbsd-8-1-RC1:1.40
	pgoyette-compat-merge-20190127:1.40
	pgoyette-compat-20190127:1.40
	pgoyette-compat-20190118:1.40
	pgoyette-compat-1226:1.40
	pgoyette-compat-1126:1.40
	pgoyette-compat-1020:1.40
	pgoyette-compat-0930:1.40
	pgoyette-compat-0906:1.40
	netbsd-7-2-RELEASE:1.40
	pgoyette-compat-0728:1.40
	netbsd-8-0-RELEASE:1.40
	phil-wifi:1.40.0.32
	phil-wifi-base:1.40
	pgoyette-compat-0625:1.40
	netbsd-8-0-RC2:1.40
	pgoyette-compat-0521:1.40
	pgoyette-compat-0502:1.40
	pgoyette-compat-0422:1.40
	netbsd-8-0-RC1:1.40
	pgoyette-compat-0415:1.40
	pgoyette-compat-0407:1.40
	pgoyette-compat-0330:1.40
	pgoyette-compat-0322:1.40
	pgoyette-compat-0315:1.40
	netbsd-7-1-2-RELEASE:1.40
	pgoyette-compat:1.40.0.30
	pgoyette-compat-base:1.40
	netbsd-7-1-1-RELEASE:1.40
	matt-nb8-mediatek:1.40.0.28
	matt-nb8-mediatek-base:1.40
	perseant-stdc-iso10646:1.40.0.26
	perseant-stdc-iso10646-base:1.40
	netbsd-8:1.40.0.24
	netbsd-8-base:1.40
	prg-localcount2-base3:1.40
	prg-localcount2-base2:1.40
	prg-localcount2-base1:1.40
	prg-localcount2:1.40.0.22
	prg-localcount2-base:1.40
	pgoyette-localcount-20170426:1.40
	bouyer-socketcan-base1:1.40
	pgoyette-localcount-20170320:1.40
	netbsd-7-1:1.40.0.20
	netbsd-7-1-RELEASE:1.40
	netbsd-7-1-RC2:1.40
	netbsd-7-nhusb-base-20170116:1.40
	bouyer-socketcan:1.40.0.18
	bouyer-socketcan-base:1.40
	pgoyette-localcount-20170107:1.40
	netbsd-7-1-RC1:1.40
	pgoyette-localcount-20161104:1.40
	netbsd-7-0-2-RELEASE:1.40
	localcount-20160914:1.40
	netbsd-7-nhusb:1.40.0.16
	netbsd-7-nhusb-base:1.40
	pgoyette-localcount-20160806:1.40
	pgoyette-localcount-20160726:1.40
	pgoyette-localcount:1.40.0.14
	pgoyette-localcount-base:1.40
	netbsd-7-0-1-RELEASE:1.40
	netbsd-7-0:1.40.0.12
	netbsd-7-0-RELEASE:1.40
	netbsd-7-0-RC3:1.40
	netbsd-7-0-RC2:1.40
	netbsd-7-0-RC1:1.40
	netbsd-5-2-3-RELEASE:1.39
	netbsd-5-1-5-RELEASE:1.39
	netbsd-6-0-6-RELEASE:1.39
	netbsd-6-1-5-RELEASE:1.39
	netbsd-7:1.40.0.10
	netbsd-7-base:1.40
	yamt-pagecache-base9:1.40
	yamt-pagecache-tag8:1.39.34.1
	netbsd-6-1-4-RELEASE:1.39
	netbsd-6-0-5-RELEASE:1.39
	tls-earlyentropy:1.40.0.8
	tls-earlyentropy-base:1.40
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.40
	riastradh-drm2-base3:1.40
	netbsd-6-1-3-RELEASE:1.39
	netbsd-6-0-4-RELEASE:1.39
	netbsd-5-2-2-RELEASE:1.39
	netbsd-5-1-4-RELEASE:1.39
	netbsd-6-1-2-RELEASE:1.39
	netbsd-6-0-3-RELEASE:1.39
	netbsd-5-2-1-RELEASE:1.39
	netbsd-5-1-3-RELEASE:1.39
	netbsd-6-1-1-RELEASE:1.39
	riastradh-drm2-base2:1.40
	riastradh-drm2-base1:1.40
	riastradh-drm2:1.40.0.4
	riastradh-drm2-base:1.40
	netbsd-6-1:1.39.0.44
	netbsd-6-0-2-RELEASE:1.39
	netbsd-6-1-RELEASE:1.39
	netbsd-6-1-RC4:1.39
	netbsd-6-1-RC3:1.39
	agc-symver:1.40.0.6
	agc-symver-base:1.40
	netbsd-6-1-RC2:1.39
	netbsd-6-1-RC1:1.39
	yamt-pagecache-base8:1.40
	netbsd-5-2:1.39.0.42
	netbsd-6-0-1-RELEASE:1.39
	yamt-pagecache-base7:1.40
	netbsd-5-2-RELEASE:1.39
	netbsd-5-2-RC1:1.39
	matt-nb6-plus-nbase:1.39
	yamt-pagecache-base6:1.40
	netbsd-6-0:1.39.0.40
	netbsd-6-0-RELEASE:1.39
	netbsd-6-0-RC2:1.39
	tls-maxphys:1.40.0.2
	tls-maxphys-base:1.40
	matt-nb6-plus:1.39.0.38
	matt-nb6-plus-base:1.39
	netbsd-6-0-RC1:1.39
	yamt-pagecache-base5:1.40
	yamt-pagecache-base4:1.40
	netbsd-6:1.39.0.36
	netbsd-6-base:1.39
	netbsd-5-1-2-RELEASE:1.39
	netbsd-5-1-1-RELEASE:1.39
	yamt-pagecache-base3:1.39
	yamt-pagecache-base2:1.39
	yamt-pagecache:1.39.0.34
	yamt-pagecache-base:1.39
	cherry-xenmp:1.39.0.32
	cherry-xenmp-base:1.39
	bouyer-quota2-nbase:1.39
	bouyer-quota2:1.39.0.30
	bouyer-quota2-base:1.39
	matt-mips64-premerge-20101231:1.39
	matt-nb5-mips64-premerge-20101231:1.39
	matt-nb5-pq3:1.39.0.28
	matt-nb5-pq3-base:1.39
	netbsd-5-1:1.39.0.26
	netbsd-5-1-RELEASE:1.39
	netbsd-5-1-RC4:1.39
	matt-nb5-mips64-k15:1.39
	netbsd-5-1-RC3:1.39
	netbsd-5-1-RC2:1.39
	netbsd-5-1-RC1:1.39
	netbsd-5-0-2-RELEASE:1.39
	matt-nb5-mips64-premerge-20091211:1.39
	matt-premerge-20091211:1.39
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.39
	matt-nb4-mips64-k7-u2a-k9b:1.39
	matt-nb5-mips64-u1-k1-k5:1.39
	matt-nb5-mips64:1.39.0.24
	netbsd-5-0-1-RELEASE:1.39
	jym-xensuspend-nbase:1.39
	netbsd-5-0:1.39.0.22
	netbsd-5-0-RELEASE:1.39
	netbsd-5-0-RC4:1.39
	netbsd-5-0-RC3:1.39
	netbsd-5-0-RC2:1.39
	jym-xensuspend:1.39.0.20
	jym-xensuspend-base:1.39
	netbsd-5-0-RC1:1.39
	netbsd-5:1.39.0.18
	netbsd-5-base:1.39
	matt-mips64-base2:1.39
	matt-mips64:1.39.0.16
	mjf-devfs2:1.39.0.14
	mjf-devfs2-base:1.39
	netbsd-4-0-1-RELEASE:1.38
	wrstuden-revivesa-base-3:1.39
	wrstuden-revivesa-base-2:1.39
	wrstuden-fixsa-newbase:1.38
	wrstuden-revivesa-base-1:1.39
	yamt-pf42-base4:1.39
	yamt-pf42-base3:1.39
	hpcarm-cleanup-nbase:1.39
	yamt-pf42-baseX:1.39
	yamt-pf42-base2:1.39
	wrstuden-revivesa:1.39.0.12
	wrstuden-revivesa-base:1.39
	yamt-pf42:1.39.0.10
	yamt-pf42-base:1.39
	keiichi-mipv6:1.39.0.8
	keiichi-mipv6-base:1.39
	matt-armv6-nbase:1.39
	matt-armv6-prevmlocking:1.39
	wrstuden-fixsa-base-1:1.38
	netbsd-4-0:1.38.0.14
	netbsd-4-0-RELEASE:1.38
	cube-autoconf:1.39.0.6
	cube-autoconf-base:1.39
	netbsd-4-0-RC5:1.38
	netbsd-4-0-RC4:1.38
	netbsd-4-0-RC3:1.38
	netbsd-4-0-RC2:1.38
	netbsd-4-0-RC1:1.38
	matt-armv6:1.39.0.4
	matt-armv6-base:1.39
	matt-mips64-base:1.39
	hpcarm-cleanup:1.39.0.2
	hpcarm-cleanup-base:1.39
	netbsd-3-1-1-RELEASE:1.38
	netbsd-3-0-3-RELEASE:1.38
	wrstuden-fixsa:1.38.0.12
	wrstuden-fixsa-base:1.38
	abandoned-netbsd-4-base:1.38
	abandoned-netbsd-4:1.38.0.6
	netbsd-3-1:1.38.0.8
	netbsd-3-1-RELEASE:1.38
	netbsd-3-0-2-RELEASE:1.38
	netbsd-3-1-RC4:1.38
	netbsd-3-1-RC3:1.38
	netbsd-3-1-RC2:1.38
	netbsd-3-1-RC1:1.38
	netbsd-4:1.38.0.10
	netbsd-4-base:1.38
	netbsd-3-0-1-RELEASE:1.38
	netbsd-3-0:1.38.0.4
	netbsd-3-0-RELEASE:1.38
	netbsd-3-0-RC6:1.38
	netbsd-3-0-RC5:1.38
	netbsd-3-0-RC4:1.38
	netbsd-3-0-RC3:1.38
	netbsd-3-0-RC2:1.38
	netbsd-3-0-RC1:1.38
	netbsd-2-0-3-RELEASE:1.37
	netbsd-2-1:1.37.0.6
	netbsd-2-1-RELEASE:1.37
	netbsd-2-1-RC6:1.37
	netbsd-2-1-RC5:1.37
	netbsd-2-1-RC4:1.37
	netbsd-2-1-RC3:1.37
	netbsd-2-1-RC2:1.37
	netbsd-2-1-RC1:1.37
	netbsd-2-0-2-RELEASE:1.37
	netbsd-3:1.38.0.2
	netbsd-3-base:1.38
	netbsd-2-0-1-RELEASE:1.37
	netbsd-2:1.37.0.4
	netbsd-2-base:1.37
	netbsd-2-0-RELEASE:1.37
	netbsd-2-0-RC5:1.37
	netbsd-2-0-RC4:1.37
	netbsd-2-0-RC3:1.37
	netbsd-2-0-RC2:1.37
	netbsd-2-0-RC1:1.37
	netbsd-2-0:1.37.0.2
	netbsd-2-0-base:1.37
	netbsd-1-6-PATCH002-RELEASE:1.35
	netbsd-1-6-PATCH002:1.35
	netbsd-1-6-PATCH002-RC4:1.35
	netbsd-1-6-PATCH002-RC3:1.35
	netbsd-1-6-PATCH002-RC2:1.35
	netbsd-1-6-PATCH002-RC1:1.35
	netbsd-1-6-PATCH001:1.35
	netbsd-1-6-PATCH001-RELEASE:1.35
	netbsd-1-6-PATCH001-RC3:1.35
	netbsd-1-6-PATCH001-RC2:1.35
	netbsd-1-6-PATCH001-RC1:1.35
	fvdl_fs64_base:1.36
	netbsd-1-6-RELEASE:1.35
	netbsd-1-6-RC3:1.35
	netbsd-1-6-RC2:1.35
	netbsd-1-6-RC1:1.35
	netbsd-1-6:1.35.0.2
	netbsd-1-6-base:1.35
	netbsd-1-5-PATCH003:1.24
	netbsd-1-5-PATCH002:1.24
	netbsd-1-5-PATCH001:1.24
	netbsd-1-5-RELEASE:1.24
	netbsd-1-5-BETA2:1.24
	netbsd-1-5-BETA:1.24
	netbsd-1-4-PATCH003:1.24
	netbsd-1-5-ALPHA2:1.24
	netbsd-1-5:1.24.0.10
	netbsd-1-5-base:1.24
	minoura-xpg4dl:1.24.0.8
	minoura-xpg4dl-base:1.24
	netbsd-1-4-PATCH002:1.24
	wrstuden-devbsize-19991221:1.24
	wrstuden-devbsize:1.24.0.6
	wrstuden-devbsize-base:1.24
	comdex-fall-1999:1.24.0.4
	comdex-fall-1999-base:1.24
	netbsd-1-4-PATCH001:1.24
	netbsd-1-4-RELEASE:1.24
	netbsd-1-4:1.24.0.2
	netbsd-1-4-base:1.24
	netbsd-1-3-PATCH003:1.23
	netbsd-1-3-PATCH003-CANDIDATE2:1.23
	netbsd-1-3-PATCH003-CANDIDATE1:1.23
	netbsd-1-3-PATCH003-CANDIDATE0:1.23
	netbsd-1-3-PATCH002:1.23
	netbsd-1-3-PATCH001:1.23
	netbsd-1-3-RELEASE:1.23
	netbsd-1-3-BETA:1.23
	netbsd-1-3:1.23.0.2
	netbsd-1-3-base:1.23
	netbsd-1-2-PATCH001:1.17
	netbsd-1-2-RELEASE:1.17
	netbsd-1-2-BETA:1.17
	netbsd-1-2:1.17.0.4
	netbsd-1-2-base:1.17
	netbsd-1-1-PATCH001:1.12
	netbsd-1-1-RELEASE:1.12
	netbsd-1-1:1.12.0.2
	netbsd-1-1-base:1.12
	netbsd-1-0-PATCH06:1.10
	netbsd-1-0-PATCH05:1.10
	netbsd-1-0-PATCH04:1.10
	netbsd-1-0-PATCH03:1.10
	netbsd-1-0-PATCH02:1.10
	netbsd-1-0-PATCH1:1.10
	netbsd-1-0-PATCH0:1.10
	netbsd-1-0-RELEASE:1.10
	netbsd-1-0:1.10.0.2
	netbsd-1-0-base:1.10
	netbsd-0-9-RELEASE:1.5
	netbsd-0-9-BETA:1.5
	netbsd-0-9-ALPHA2:1.5
	netbsd-0-9-ALPHA:1.5
	netbsd-0-9:1.5.0.2
	netbsd-0-9-base:1.5;
locks; strict;
comment	@# @;


1.42
date	2024.11.25.14.44.34;	author riastradh;	state Exp;
branches;
next	1.41;
commitid	NWEx5f7eCw5Pl2zF;

1.41
date	2019.04.24.10.26.43;	author roy;	state Exp;
branches
	1.41.12.1;
next	1.40;
commitid	0HKq4pvknhBMyAkB;

1.40
date	2012.03.21.10.08.30;	author matt;	state Exp;
branches
	1.40.32.1;
next	1.39;

1.39
date	2007.05.28.12.06.21;	author tls;	state Exp;
branches
	1.39.34.1;
next	1.38;

1.38
date	2005.01.08.10.02.36;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	2003.01.05.19.24.06;	author sommerfeld;	state Exp;
branches;
next	1.36;

1.36
date	2002.08.19.14.55.16;	author lukem;	state Exp;
branches;
next	1.35;

1.35
date	2002.01.29.11.22.25;	author tv;	state Exp;
branches;
next	1.34;

1.34
date	2001.12.12.00.51.05;	author tv;	state Exp;
branches;
next	1.33;

1.33
date	2001.11.01.15.03.07;	author tv;	state Exp;
branches;
next	1.32;

1.32
date	2001.10.31.20.56.09;	author tv;	state Exp;
branches;
next	1.31;

1.31
date	2001.03.21.20.14.10;	author mycroft;	state Exp;
branches;
next	1.30;

1.30
date	2001.02.16.01.05.32;	author enami;	state Exp;
branches;
next	1.29;

1.29
date	2001.01.16.02.42.40;	author cgd;	state Exp;
branches;
next	1.28;

1.28
date	2000.12.30.17.21.45;	author sommerfeld;	state Exp;
branches;
next	1.27;

1.27
date	2000.11.29.09.25.22;	author matt;	state Exp;
branches;
next	1.26;

1.26
date	2000.09.10.23.21.49;	author erh;	state Exp;
branches;
next	1.25;

1.25
date	2000.07.25.06.29.46;	author cgd;	state Exp;
branches;
next	1.24;

1.24
date	99.02.13.02.54.30;	author lukem;	state Exp;
branches;
next	1.23;

1.23
date	97.10.09.22.26.17;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	97.10.09.14.36.24;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	97.05.09.14.22.41;	author mycroft;	state Exp;
branches;
next	1.20;

1.20
date	97.05.09.07.50.15;	author mycroft;	state Exp;
branches;
next	1.19;

1.19
date	97.03.24.22.11.57;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	96.10.18.05.45.05;	author thorpej;	state Exp;
branches;
next	1.17;

1.17
date	96.05.10.05.03.06;	author cgd;	state Exp;
branches;
next	1.16;

1.16
date	96.05.08.19.24.04;	author pk;	state Exp;
branches;
next	1.15;

1.15
date	96.04.29.21.11.24;	author jtc;	state Exp;
branches;
next	1.14;

1.14
date	96.04.29.20.52.52;	author jtc;	state Exp;
branches;
next	1.13;

1.13
date	96.04.25.01.22.08;	author jtc;	state Exp;
branches;
next	1.12;

1.12
date	95.01.12.19.39.43;	author jtc;	state Exp;
branches;
next	1.11;

1.11
date	95.01.12.19.27.15;	author jtc;	state Exp;
branches;
next	1.10;

1.10
date	94.06.14.02.45.56;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	94.05.22.04.20.02;	author jtc;	state Exp;
branches;
next	1.8;

1.8
date	94.01.20.23.04.13;	author jtc;	state Exp;
branches;
next	1.7;

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

1.6
date	93.08.01.05.40.01;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	93.06.03.19.21.08;	author brezak;	state Exp;
branches;
next	1.4;

1.4
date	93.06.03.17.07.56;	author brezak;	state Exp;
branches;
next	1.3;

1.3
date	93.06.03.16.49.21;	author brezak;	state Exp;
branches;
next	1.2;

1.2
date	93.06.03.14.45.37;	author brezak;	state Exp;
branches;
next	1.1;

1.1
date	93.06.02.19.51.29;	author brezak;	state Exp;
branches;
next	;

1.41.12.1
date	2025.08.02.05.54.57;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.40.32.1
date	2019.06.10.22.05.27;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.39.34.1
date	2012.04.17.00.05.32;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.42
log
@librpcsvc: Split yp symbols into a separate expected symbols list.

Should fix MKYP=no builds.
@
text
@#	$NetBSD: Makefile,v 1.41 2019/04/24 10:26:43 roy Exp $

WARNS=	4

USE_FORT?= yes	# network protocol library

NOMAN=		# defined

RPCSRCS=	bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
		sm_inter.x spray.x

.include <bsd.own.mk>

EXPSYM_SRCS=	rpcsvc.common.expsym

.if (${MKYP} != "no")
RPCSRCS+=	yp.x yppasswd.x
EXPSYM_SRCS+=	rpcsvc.yp.expsym
.endif

LIB_EXPSYM=	rpcsvc.expsym
rpcsvc.expsym: ${EXPSYM_SRCS}
	${_MKTARGET_CREATE}
	LC_ALL=C sort -m ${.ALLSRC} >${.TARGET}.tmp && \
	${MV} ${.TARGET}.tmp ${.TARGET}
CLEANFILES+=	rpcsvc.expsym rpcsvc.expsym.tmp

RPC_INCS=	${RPCSRCS:.x=.h}
RPC_XDRFILES=	${RPCSRCS:.x=_xdr.c}	

HDRS=           ${RPC_INCS}
SRCS=		${RPC_XDRFILES} ${HDRS}

INCS=		${HDRS} ${RPCSRCS}
INCSDIR=	/usr/include/rpcsvc

LIB=		rpcsvc

.include <bsd.rpc.mk>
.include <bsd.lib.mk>
@


1.41
log
@Fix building librpcsvc for MKYP=no
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2012/03/21 10:08:30 matt Exp $
d15 2
d19 1
d22 7
@


1.41.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2024/11/25 14:44:34 riastradh Exp $
a14 2
EXPSYM_SRCS=	rpcsvc.common.expsym

a16 1
EXPSYM_SRCS+=	rpcsvc.yp.expsym
a18 7
LIB_EXPSYM=	rpcsvc.expsym
rpcsvc.expsym: ${EXPSYM_SRCS}
	${_MKTARGET_CREATE}
	LC_ALL=C sort -m ${.ALLSRC} >${.TARGET}.tmp && \
	${MV} ${.TARGET}.tmp ${.TARGET}
CLEANFILES+=	rpcsvc.expsym rpcsvc.expsym.tmp

@


1.40
log
@These directories don't handle WARNS=5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2007/05/28 12:06:21 tls Exp $
d11 8
a18 1
		sm_inter.x spray.x yp.x yppasswd.x
@


1.40.32.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2019/04/24 10:26:43 roy Exp $
d11 1
a11 8
		sm_inter.x spray.x

.include <bsd.own.mk>

.if (${MKYP} != "no")
RPCSRCS+=	yp.x yppasswd.x
.endif

@


1.39
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.38 2005/01/08 10:02:36 lukem Exp $
@


1.39.34.1
log
@sync with head
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.39 2007/05/28 12:06:21 tls Exp $

WARNS=	4
@


1.38
log
@Build librpcsvc as a shared library, since pam_unix.so needs it.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.37 2003/01/05 19:24:06 sommerfeld Exp $
@


1.37
log
@Use <bsd.rpc.mk>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2002/08/19 14:55:16 lukem Exp $
a3 1
NOPIC=		# defined
@


1.36
log
@Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2002/01/29 11:22:25 tv Exp $
d9 5
a13 3
SRCS=		${RPCSRCS:.x=.c} ${HDRS}
HDRS=           ${RPCSRCS:.x=.h}
CLEANFILES+=	${SRCS} ${HDRS}
d20 1
a21 17

# 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

# We don't use explicit suffix rules here to avoid dependencies in the
# Installed files.

.for I in ${RPCSRCS}
${I:.x=.c}: $I ${_RPCGEN}
	${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET}

${I:.x=.h}: $I ${_RPCGEN}
	${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET}
.endfor
@


1.35
log
@Cope with RPCGEN now conta8ining multiple words.
@
text
@d1 4
a4 1
#	$NetBSD: Makefile,v 1.34 2001/12/12 00:51:05 tv Exp $
a16 2
NOMAN=		# defined
NOPIC=		# defined
@


1.34
log
@Readability cleanups; MKfoo=no -> NOfoo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2001/11/01 15:03:07 tv Exp $
d20 1
a20 1
_RPCGEN:=	${RPCGEN}
@


1.33
log
@Be smarter about finding rpcgen's absolute path; only do it if ${RPCGEN}
(when evaluated) does not start with a /.  Also don't go through a make(1)
recursion step; just use !=.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2001/10/31 20:56:09 tv Exp $
d14 2
a15 2
MKMAN=		no
MKPIC=		no
@


1.32
log
@No need to do the tricky XRPCGEN dance; simply add the rules after
.include <bsd.lib.mk>.  Defining the explicit compile rules later is fine.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2001/03/21 20:14:10 mycroft Exp $
d19 6
d29 1
a29 1
${I:.x=.c}: $I ${RPCGEN}
d32 1
a32 1
${I:.x=.h}: $I ${RPCGEN}
@


1.31
log
@Use `rpcgen -C'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2001/02/16 01:05:32 enami Exp $
d17 1
a17 10
# This little dance is necessary because RPCGEN doesn't get set until
# bsd.lib.mk is included at the end of the makefile.  Unfortunately
# that's after make has figured out dependencies using the (lack of) values
# of variables at the time it parses the dependency line.
.ifnmake getrpcgen
XRPCGEN != cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen
.endif

getrpcgen:
	@@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
d23 1
a23 2

${I:.x=.c}: $I ${XRPCGEN}
d26 1
a26 1
${I:.x=.h}: $I ${XRPCGEN}
a28 2

.include <bsd.lib.mk>
@


1.30
log
@No need to invoke extra shell.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2001/01/16 02:42:40 cgd Exp $
d34 1
a34 1
	${RPCGEN} -c ${.CURDIR}/$I -o ${.TARGET}
d37 1
a37 1
	${RPCGEN} -h ${.CURDIR}/$I -o ${.TARGET}
@


1.29
log
@use expr to do subtraction.  shell math isn't as portable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2000/12/30 17:21:45 sommerfeld Exp $
d22 1
a22 1
XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen)
@


1.28
log
@parallelize (mostly ${MAKE} print-objdir -> ${PRINTOBJDIR})
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2000/11/29 09:25:22 matt Exp $
d26 1
a26 1
	@@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
@


1.27
log
@Add -${MAKEFLAGS} so that make options (like -m) get used for the submake
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2000/09/10 23:21:49 erh Exp $
d22 1
a22 1
XRPCGEN != (cd ${.CURDIR} && ${MAKE} -${MAKEFLAS} getrpcgen)
@


1.26
log
@Make targets which are generated with rpcgen depend on the rpcgen binary.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2000/07/25 06:29:46 cgd Exp $
d22 1
a22 1
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
@


1.25
log
@${RPCGEN}, not hard-coded rpcgen
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1999/02/13 02:54:30 lukem Exp $
d17 11
a31 2
${I:.x=.c}: $I
	${RPCGEN} -c ${.ALLSRC} -o ${.TARGET}
d33 5
a37 2
${I:.x=.h}: $I
	${RPCGEN} -h ${.ALLSRC} -o ${.TARGET}
@


1.24
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1997/10/09 22:26:17 lukem Exp $
d22 1
a22 1
	rpcgen -c ${.ALLSRC} -o ${.TARGET}
d25 1
a25 1
	rpcgen -h ${.ALLSRC} -o ${.TARGET}
@


1.23
log
@remove WARNS=0, because mycroft fixed rpcgen(1) to DTRT WRT outputting KNF.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1997/10/09 14:36:24 lukem Exp $
d14 2
a15 2
NOMAN=
NOPIC=
@


1.22
log
@- define WARNS?=1 in the top-level Makefile.inc, and don't define
  anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1997/05/09 14:22:41 mycroft Exp $
a2 2
# XXX WARNS=0 is temporary until rpcgen(1) is fixed
WARNS=0
@


1.21
log
@Minor cleanup.
@
text
@d1 1
a1 2
#	$NetBSD: Makefile,v 1.20 1997/05/09 07:50:15 mycroft Exp $

d3 2
@


1.20
log
@Eliminate bogus redefinitions of standard targets.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1997/03/24 22:11:57 christos Exp $
d7 2
a8 2
SRCS=		${RPCSRCS:R:S/$/.c/g} ${HDRS}
HDRS=           ${RPCSRCS:R:S/$/.h/g}
d11 2
a12 2
INCS=${HDRS} ${RPCSRCS}
INCSDIR=/usr/include/rpcsvc
d22 1
a22 1
${I:S/.x/.c/}: $I
d25 1
a25 1
${I:S/.x/.h/}: $I
@


1.19
log
@Makefile cleanups:
use INCS variable to install includes and FILES to install objects.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1996/10/18 05:45:05 thorpej Exp $
d7 1
a7 1
SRCS=		${RPCSRCS:R:S/$/.c/g}
a16 3

all:		${HDRS}
beforedepend:	${HDRS}
@


1.18
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1996/05/10 05:03:06 cgd Exp $
d11 3
d21 10
a30 17
includes:	${HDRS}
	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
	    ${DESTDIR}/usr/include/rpcsvc
	@@for i in $(HDRS); do \
	    j="cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
		${DESTDIR}/usr/include/rpcsvc"; \
	    echo $$j; \
	    eval "$$j"; \
	done
	@@cd ${.CURDIR}; for i in $(RPCSRCS); do \
	    j="cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
		${DESTDIR}/usr/include/rpcsvc"; \
	    echo $$j; \
	    eval "$$j"; \
	done
a31 1
# new suffixes have to go afterwards, because bsd.lib.mk clears them
a32 7
.SUFFIXES: .x .c .h

.x.c:
	rpcgen -c ${.IMPSRC} -o ${.TARGET}

.x.h:
	rpcgen -h ${.IMPSRC} -o ${.TARGET}
@


1.17
log
@Be more verbose during 'includes' installation.  Instead of showing
'install' commands only if the 'cmp' sees differences, show the
'cmp ... || install ...' commands like other Makefiles do when
installing includes.  It's comforting to see the extra output (to see
that updated files would actually be installed), and is consistent
with other makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1996/05/08 19:24:04 pk Exp $
d19 1
a19 1
	install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
d23 1
a23 1
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
d30 1
a30 1
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
@


1.16
log
@$Id -> $NetBSD (PR#682).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1996/04/29 21:11:24 jtc Exp $
d20 1
a20 1
		${DESTDIR}/usr/include/rpcsvc
d22 2
a23 2
	    cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
		{ j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
d25 2
a26 1
		echo $$j; $$j; } \
d29 2
a30 2
	    cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
		{ j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
d32 2
a33 1
		echo $$j; $$j; } \
@


1.15
log
@Changed rules used for converting rpc source (*.x) to *.c and *.h so
that rpcgen invocation is not hidden.  There is no reason to hide it,
and it might be useful.  For example, this makes the make -n output
much more useful.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.14 1996/04/29 20:52:52 jtc Exp $
@


1.14
log
@Echo install commands, so user knows what is being installed.
Suggested by cgd.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13 1996/04/25 01:22:08 jtc Exp $
d39 1
a39 2
	@@echo generating $@@...
	@@rpcgen -c ${.IMPSRC} -o ${.TARGET}
d42 1
a42 2
	@@echo generating $@@...
	@@rpcgen -h ${.IMPSRC} -o ${.TARGET}
@


1.13
log
@Use 'includes' instead of 'beforeinstall' target to install headers
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.12 1995/01/12 19:39:43 jtc Exp $
d23 3
a25 2
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
		${DESTDIR}/usr/include/rpcsvc; \
d27 1
a27 1
	@@for i in $(RPCSRCS); do \
d29 3
a31 2
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $(.CURDIR)/$$i \
		${DESTDIR}/usr/include/rpcsvc; \
@


1.12
log
@Rpcgen bugs that required us to have separate src, include, and object
directories have long been fixed.  This allows us to bring the *.x
files up into the main librpcsvc directory where they belong.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11 1995/01/12 19:27:15 jtc Exp $
d18 1
a18 1
beforeinstall:
@


1.11
log
@Use  and .
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.10 1994/06/14 02:45:56 cgd Exp $
a2 2
RPCDIR=		${.CURDIR}/src
.PATH:		${RPCDIR}
d22 1
a22 1
	    cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
d27 2
a28 2
	    cmp -s ${RPCDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCDIR}/$$i \
@


1.10
log
@amq.x is gone now
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1994/05/22 04:20:02 jtc Exp $
d21 2
a22 1
	install -d -o bin -g bin -m 755 ${DESTDIR}/usr/include/rpcsvc
@


1.9
log
@Only install header files if they are different from the ones that are
allready installed.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1994/01/20 23:04:13 jtc Exp $
d6 1
a6 1
RPCSRCS=	amq.x bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
@


1.8
log
@Rpcgen fix allows us to simplify building of rpcsvc library.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1993/10/13 05:28:03 cgd Exp $
d23 3
a25 4
		echo install ${COPY} -o bin -g bin -m 444 $$i \
			${DESTDIR}/usr/include/rpcsvc ; \
		install ${COPY} -o bin -g bin -m 444 $$i \
			${DESTDIR}/usr/include/rpcsvc ; \
d28 3
a30 4
		echo install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
			${DESTDIR}/usr/include/rpcsvc ; \
		install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
			${DESTDIR}/usr/include/rpcsvc ; \
@


1.7
log
@move include generation and rpc source files intp lib/librpcsvc
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1993/08/01 05:40:01 mycroft Exp $
d3 2
a4 1
SUBDIR=		include lib
d6 40
a45 1
.include <bsd.subdir.mk>
@


1.6
log
@Add RCS identifiers.
@
text
@d1 1
a1 2
#	from: @@(#)Makefile    5.10 (Berkeley) 6/24/90
#	$Id: $
d3 1
a3 1
.PATH: ${.CURDIR}/../../include/rpcsvc /usr/src/include/rpcsvc
d5 1
a5 26
LIB=    rpcsvc

RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
	rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x

RPCCOM = rpcgen

INCDIRS= -I/usr/include/rpcsvc
CFLAGS+= ${INCDIRS}

SRCS= ${RPCSRCS:R:S/$/_xdr.c/g}

CLEANFILES+= ${SRCS} ${RPCSRCS}

NOMAN= noman

.include <bsd.lib.mk>

.SUFFIXES: .x _xdr.c

.x_xdr.c:
	@@echo generating $@@...
	@@PWD=`pwd` ; cd ${.CURDIR} ; if cmp -s ${.IMPSRC} ${*F}.x > /dev/null; then :; else cp -f ${.IMPSRC} $$PWD/${*F}.x ; fi
	@@${RPCCOM} -c ${*F}.x -o ${.TARGET}

OBJS+= ${RPCSRCS:R:S/$/_xdr.o/g}
@


1.5
log
@Add more RPC definitions.
@
text
@d1 2
a2 1
#       @@(#)Makefile    5.10 (Berkeley) 6/24/90
@


1.4
log
@Keep the cp'ed .x in the objdir. Be sure to clean it too.
@
text
@d7 2
a8 1
RPCSRCS= rstat.x rnusers.x rwall.x
d12 2
a13 1
CFLAGS+= -I/usr/include/rpcsvc
@


1.3
log
@Copy the .x file to the obj directory before running rpcgen. You have
to do this because rpcgen will generate an include line with the full
path of the .x file.
@
text
@d4 1
d6 1
a7 1
CFLAGS+= -I/usr/include/rpcsvc
d11 2
d15 2
a18 2
CLEANFILES+= ${RPCSRCS:R:S/$/_xdr.c/g}

d25 2
a26 2
	@@PWD=`pwd` ; cd ${.CURDIR} ; if cmp -s ${.IMPSRC} ${*F}.x > /dev/null; then :; else cp -f ${.IMPSRC} .; fi
	@@PWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -c ${*F}.x -o $$PWD/${.TARGET}
@


1.2
log
@Fix for building in obj tree.
@
text
@d6 1
d14 1
a14 1
CLEANFILES+= ${RPCSRCS:R:S/$/_xdr.c/g} ${RPCSRCS:R:S/$/.h/g}
d18 1
a18 1
.SUFFIXES: .x _xdr.c .h
d22 2
a23 5
	@@PWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -c ${.IMPSRC} -o $$PWD/${.TARGET}

.x.h:
	@@echo generating $@@...
	@@PWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h ${.IMPSRC} -o $$PWD/${.TARGET}
@


1.1
log
@Build librpcsvc.a
@
text
@d20 2
a21 1
	${RPCCOM} -c -o ${.TARGET} ${.IMPSRC}
d24 2
a25 1
	${RPCCOM} -h -o ${.TARGET} ${.IMPSRC}
@
