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 \
46 # headers generated from .x files
62 INCS
+= ${GENERATED_INCS}
63 CLEANFILES
+= ${GENERATED_INCS}
65 RPCGEN?
= /usr
/bin
/rpcgen
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.
82 all: ${GENERATED_INCS}
87 ${RPCGEN} $(RPCGENFLAGS
) $< -o
$@
90 $(RPCGEN
) $(RPCGENFLAGS
) nis.x |\
91 $(SED
) -e
'/EDIT_START/,$$ d' > $@
94 $(RPCGEN
) $(RPCGENFLAGS
) -M rwall.x
-o
$@