bldenv/nightly: remove unused RELEASE_MICRO/DEV_CM
[unleashed.git] / include / rpcsvc / Makefile
blobbe358c42be0259ff213b3d8b4227b9f299261430
1 INCDIR= /usr/include/rpcsvc
2 INCS= bootparam.h \
3 daemon_utils.h \
4 dbm.h \
5 nis_db.h \
6 nislib.h \
7 svc_dg_priv.h \
8 yp_prot.h \
9 ypclnt.h \
10 yppasswd.h \
11 ypupd.h \
12 rpc_sztypes.h \
13 ../rpc/rpc_sztypes.x
15 # CAUTION: The rpc_sztypes.h above is *NOT* generated from the rpc_sztypes.x
16 # above. It's terrible really, there are three files that should get
17 # installed:
19 # /usr/include/rpc/rpc_sztypes.h - rpcgen'd from include/rpc/rpc_sztypes.x
20 # /usr/include/rpcsvc/rpc_sztypes.h - copy of include/rpcsvc/rpc_sztypes.h
21 # /usr/include/rpcsvc/rpc_sztypes.x - copy of include/rpc/rpc_sztypes.x
23 # Sadly, this is so convoluted that we also end up with:
25 # /usr/include/rpc/rpc_sztypes.x - copy of include/rpc/rpc_sztypes.x
27 # And we have to ignore it in packaging.
29 # the .x files
30 INCS+= bootparam_prot.x \
31 mount.x \
32 nfs4_prot.x \
33 nfs_acl.x \
34 nfs_prot.x \
35 nis.x \
36 nis_object.x \
37 rquota.x \
38 rstat.x \
39 rusers.x \
40 rwall.x \
41 spray.x \
42 ufs_prot.x \
43 yp.x \
44 autofs_prot.x
46 # headers generated from .x files
47 GENERATED_INCS= \
48 bootparam_prot.h \
49 mount.h \
50 nfs_prot.h \
51 nfs4_prot.h \
52 nis.h \
53 rquota.h \
54 rstat.h \
55 rusers.h \
56 rwall.h \
57 spray.h \
58 ufs_prot.h \
59 nfs_acl.h \
60 autofs_prot.h
62 INCS+= ${GENERATED_INCS}
63 CLEANFILES+= ${GENERATED_INCS}
65 RPCGEN?= /usr/bin/rpcgen
66 SED?= /usr/bin/sed
68 RPCGENFLAGS = -C -h
70 # rpcsvc rpcgen source (.x files)
72 # yp.x is an attempt at codifying what was hand coded in RPCL.
73 # Unfortunately it doesn't quite work. (The handcoded stuff isn't
74 # expressable in RPCL) this is due to the fact that YP was written
75 # before rpcgen existed. Hence, yp_prot.h cannot be derived from yp.x
77 # There is no `.h' for nis_object.x because it is included by nis.x and
78 # the resulting .h is nis.h.
80 .PHONY: all
82 all: ${GENERATED_INCS}
84 .SUFFIXES: .x
86 .x.h:
87 ${RPCGEN} $(RPCGENFLAGS) $< -o $@
89 nis.h: nis.x
90 $(RPCGEN) $(RPCGENFLAGS) nis.x |\
91 $(SED) -e '/EDIT_START/,$$ d' > $@
93 rwall.h: rwall.x
94 $(RPCGEN) $(RPCGENFLAGS) -M rwall.x -o $@
96 .include <prog.mk>
97 .include <inc.mk>