1 INCDIR
= /usr
/include/rpcsvc
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
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.
30 INCS
+= bootparam_prot.x \
47 # headers generated from .x files
64 INCS
+= ${GENERATED_INCS}
65 CLEANFILES
+= ${GENERATED_INCS}
67 RPCGEN?
= /usr
/bin
/rpcgen
72 # rpcsvc rpcgen source (.x files)
74 # yp.x is an attempt at codifying what was hand coded in RPCL.
75 # Unfortunately it doesn't quite work. (The handcoded stuff isn't
76 # expressable in RPCL) this is due to the fact that YP was written
77 # before rpcgen existed. Hence, yp_prot.h cannot be derived from yp.x
79 # There is no `.h' for nis_object.x because it is included by nis.x and
80 # the resulting .h is nis.h.
84 all: ${GENERATED_INCS}
89 ${RPCGEN} $(RPCGENFLAGS
) $< -o
$@
92 $(RPCGEN
) $(RPCGENFLAGS
) nis.x |\
93 $(SED
) -e
'/EDIT_START/,$$ d' > $@
96 $(RPCGEN
) $(RPCGENFLAGS
) -M rwall.x
-o
$@