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