summary refs log tree commit diff
path: root/sunrpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/Makefile')
-rw-r--r--sunrpc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 241eca5a25..16a503875e 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -46,13 +46,16 @@ subdir	:= sunrpc
 #	xdr_reference.c -> xdr_ref.c
 #	rpcsvc/bootparam_prot.x -> rpcsvc/bootparam.x
 
-headers = $(addprefix rpc/,auth.h auth_unix.h clnt.h netdb.h pmap_clnt.h \
-			   pmap_prot.h pmap_rmt.h rpc.h rpc_msg.h svc.h \
-			   svc_auth.h types.h xdr.h auth_des.h) \
-	  $(rpcsvc:%=rpcsvc/%) $(rpcsvc:%.x=rpcsvc/%.h)
 rpcsvc = bootparam.x nlm_prot.x rstat.x \
 	 yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
 	 rusers.x spray.x nfs_prot.x rquota.x
+headers = $(addprefix rpc/,auth.h auth_unix.h clnt.h netdb.h pmap_clnt.h \
+			   pmap_prot.h pmap_rmt.h rpc.h rpc_msg.h svc.h \
+			   svc_auth.h types.h xdr.h auth_des.h) \
+	  $(rpcsvc:%=rpcsvc/%)
+ifeq (no,$(cross-compiling))
+headers += $(rpcsvc:%.x=rpcsvc/%.h)
+endif
 install-others = $(inst_includedir)/rpcsvc/bootparam_prot.h \
 		 $(inst_sysconfdir)/rpc
 generated = $(rpcsvc:%.x=rpcsvc/%.h) $(rpcsvc:%.x=x%.c)