]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/lib/librpcsvc/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / 6 / lib / librpcsvc / Makefile
1 #       from: @(#)Makefile    5.10 (Berkeley) 6/24/90
2 # $FreeBSD$
3
4 .PATH: ${.CURDIR}/../../include/rpcsvc
5
6 LIB=    rpcsvc
7
8 RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
9         rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
10         ypupdate_prot.x
11
12 OTHERSRCS=  rnusers.c rstat.c rwall.c
13 SECRPCSRCS= secretkey.c xcrypt.c
14
15 .if !defined(NO_NIS)
16 OTHERSRCS+= yp_passwd.c yp_update.c
17 .endif
18
19 RPCCOM = rpcgen -C
20
21 INCDIRS= -I${DESTDIR}/usr/include/rpcsvc
22
23 CFLAGS+= -DYP ${INCDIRS}
24
25 GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
26 SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
27
28 CLEANFILES+= ${GENSRCS}
29
30 NO_MAN=
31
32 .include <bsd.lib.mk>
33
34 .SUFFIXES: .x _xdr.c
35
36 .x_xdr.c:
37         ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
38
39 OBJS=   ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
40         ${OTHERSRCS:R:S/$/.o/g}