summaryrefslogtreecommitdiffstats
path: root/lib/librpcsvc/Makefile
blob: a2a4cd441fc50e131c90cc2df4f0dc20ce37016e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#	from: @(#)Makefile    5.10 (Berkeley) 6/24/90
#	$Id: Makefile,v 1.2 1994/08/10 04:25:19 wollman Exp $

.PATH: ${DESTDIR}/usr/include/rpcsvc

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 ${.TARGET}...
	@PWD=`pwd` ; cd ${.CURDIR} ; \
		if cmp -s ${.IMPSRC} ${*F}.x > /dev/null 2>/dev/null; then \
			true; \
		else \
			cp -f ${.IMPSRC} $$PWD/${*F}.x ; \
		fi
	@${RPCCOM} -c ${*F}.x -o ${.TARGET}

OBJS+= ${RPCSRCS:R:S/$/_xdr.o/g}
OpenPOWER on IntegriCloud