Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / common / rpc / Makefile
blobf06933d3b09be7f53601d7e72e0ba9ea430bd3e9
2 # CDDL HEADER START
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
7 # with the License.
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]
20 # CDDL HEADER END
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
36 i386_HDRS=
38 sparc_HDRS= ib.h
40 COMMHDRS= \
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 \
47 rpcsys.h rpc_rdma.h
49 HDRS= \
50 $(COMMHDRS) \
51 $($(MACH)_HDRS)
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
66 ROOTHDRS= \
67 $(RPCHDRS:%=$(RPCDIRS)/%) \
68 $(RPCSVCHDRS:%=$(RPCSVCDIRS)/%)
70 $(ROOTHDRS) := FILEMODE = 444
72 $(RPCDIRS)/%: %
73 $(INS.file)
75 $(RPCSVCDIRS)/%: %
76 $(INS.file)
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)
84 .KEEP_STATE:
86 .PARALLEL: $(CHECKHDRS)
88 all: all_h
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)
97 clean:
98 $(RM) $(DERIVED_FILES)
100 clobber: clean
102 $(RPCDIRS):
103 $(INS.dir)
105 $(RPCSVCDIRS):
106 $(INS.dir)
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 > $@
117 check: $(CHECKHDRS)