4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
24 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
31 # uts/common/rpc/Makefile
33 # include global definitions
34 include ..
/..
/..
/Makefile.master
41 auth.h auth_des.h auth_sys.h auth_unix.h \
42 bootparam.h clnt.h clnt_soc.h clnt_stat.h des_crypt.h \
43 nettype.h pmap_clnt.h pmap_rmt.h \
44 rpc.h rpc_com.h rpc_msg.h \
45 rpcb_clnt.h rpcent.h svc.h svc_auth.h svc_soc.h \
46 types.h xdr.h rpcsec_gss.h svc_mt.h \
53 RPC_SRC
= pmap_prot.x rpcb_prot.x
55 RPCSVC_SRC
= key_prot.x
57 DERIVED_FILES
= key_prot.h pmap_prot.h rpcb_prot.h
59 RPCHDRS
= $(HDRS
) $(RPC_SRC
) $(DERIVED_FILES
)
61 RPCSVCHDRS
= $(RPCSVC_SRC
)
63 RPCDIRS
= $(ROOT
)/usr
/include/rpc
64 RPCSVCDIRS
= $(ROOT
)/usr
/include/rpcsvc
67 $(RPCHDRS
:%=$(RPCDIRS
)/%) \
68 $(RPCSVCHDRS
:%=$(RPCSVCDIRS
)/%)
70 $(ROOTHDRS
) := FILEMODE
= 444
78 # XXX: should really check the style of the derived files as well...
79 # $(RPC_SRC:%.x=%.check) \
80 # $(RPCSVC_SRC:%.x=%.check)
82 CHECKHDRS
= $(HDRS
:%.h
=%.
check)
86 .PARALLEL
: $(CHECKHDRS
)
90 install_h
: all_h
$(RPCDIRS
) $(RPCSVCDIRS
) $(ROOTHDRS
)
92 # all_h permits derived headers to be built here in the uts source area
93 # for the kernel to reference, without going so far as to install them.
95 all_h
: $(DERIVED_FILES
)
98 $(RM
) $(DERIVED_FILES
)
108 key_prot.h
: key_prot.x
109 $(RPCGEN
) -C
-h key_prot.x
> $@
111 pmap_prot.h
: pmap_prot.x
112 $(RPCGEN
) -M
-h pmap_prot.x
> $@
114 rpcb_prot.h
: rpcb_prot.x
115 $(RPCGEN
) -M
-h rpcb_prot.x
> $@