]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/librpcsvc/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / librpcsvc / Makefile
1 #       from: @(#)Makefile    5.10 (Berkeley) 6/24/90
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 .PATH: ${.CURDIR}/../../include/rpcsvc
7
8 LIB=    rpcsvc
9
10 RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
11         rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
12         ypupdate_prot.x
13
14 OTHERSRCS=  rnusers.c rstat.c rwall.c
15 SECRPCSRCS= secretkey.c xcrypt.c
16
17 .if ${MK_NIS} != "no"
18 OTHERSRCS+= yp_passwd.c yp_update.c
19 .endif
20
21 RPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C
22
23 INCDIRS= -I${DESTDIR}/usr/include/rpcsvc
24
25 CFLAGS+= -DYP ${INCDIRS}
26
27 GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
28 SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
29
30 CLEANFILES+= ${GENSRCS}
31
32 WARNS?= 1
33
34 .include <bsd.lib.mk>
35
36 .SUFFIXES: .x _xdr.c
37
38 .x_xdr.c:
39         ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
40
41 OBJS=   ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
42         ${OTHERSRCS:R:S/$/.o/g}