xref: /illumos-gate/usr/src/uts/common/rpc/Makefile (revision 55fea89d)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate# with the License.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate# and limitations under the License.
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gate# CDDL HEADER END
217c478bd9Sstevel@tonic-gate#
2261961e0fSrobinson
237c478bd9Sstevel@tonic-gate#
2461961e0fSrobinson# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25*55fea89dSDan Cross# Use is subject to license terms.
268f6d9daeSMarcel Telka#
278f6d9daeSMarcel Telka# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
288f6d9daeSMarcel Telka#
298f6d9daeSMarcel Telka
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# uts/common/rpc/Makefile
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate# include global definitions
347c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gatei386_HDRS=
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gatesparc_HDRS= ib.h
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateCOMMHDRS= \
417c478bd9Sstevel@tonic-gateauth.h		auth_des.h	auth_sys.h	auth_unix.h \
427c478bd9Sstevel@tonic-gatebootparam.h	clnt.h		clnt_soc.h	clnt_stat.h	des_crypt.h \
437c478bd9Sstevel@tonic-gatenettype.h	pmap_clnt.h	pmap_rmt.h \
442a6fb28dSMarcel Telkarpc.h		rpc_com.h	rpc_msg.h \
457c478bd9Sstevel@tonic-gaterpcb_clnt.h	rpcent.h	svc.h		svc_auth.h	svc_soc.h \
4661961e0fSrobinsontypes.h		xdr.h		rpcsec_gss.h	svc_mt.h \
477c478bd9Sstevel@tonic-gaterpcsys.h	rpc_rdma.h
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateHDRS=			\
507c478bd9Sstevel@tonic-gate	$(COMMHDRS)	\
517c478bd9Sstevel@tonic-gate	$($(MACH)_HDRS)
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateRPC_SRC=	pmap_prot.x	rpcb_prot.x
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateRPCSVC_SRC=	key_prot.x	rpc_sztypes.x
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateDERIVED_FILES=	key_prot.h	pmap_prot.h	rpcb_prot.h	rpc_sztypes.h
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateRPCHDRS=	$(HDRS)	$(RPC_SRC) $(DERIVED_FILES)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateRPCSVCHDRS=	$(RPCSVC_SRC)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateRPCDIRS=	$(ROOT)/usr/include/rpc
647c478bd9Sstevel@tonic-gateRPCSVCDIRS=	$(ROOT)/usr/include/rpcsvc
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateROOTHDRS= $(RPCHDRS:%=$(RPCDIRS)/%) $(RPCSVCHDRS:%=$(RPCSVCDIRS)/%)
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate$(RPCDIRS)/%: %
697c478bd9Sstevel@tonic-gate	$(INS.file)
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate$(RPCSVCDIRS)/%: %
727c478bd9Sstevel@tonic-gate	$(INS.file)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate# XXX: should really check the style of the derived files as well...
757c478bd9Sstevel@tonic-gate#	$(RPC_SRC:%.x=%.check) \
767c478bd9Sstevel@tonic-gate#	$(RPCSVC_SRC:%.x=%.check)
777c478bd9Sstevel@tonic-gate#
787c478bd9Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate.KEEP_STATE:
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateall: all_h
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateinstall_h: all_h $(RPCDIRS) $(RPCSVCDIRS) $(ROOTHDRS)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate# all_h permits derived headers to be built here in the uts source area
897c478bd9Sstevel@tonic-gate# for the kernel to reference, without going so far as to install them.
907c478bd9Sstevel@tonic-gate#
917c478bd9Sstevel@tonic-gateall_h: $(DERIVED_FILES)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gateclean:
947c478bd9Sstevel@tonic-gate	$(RM) $(DERIVED_FILES)
957c478bd9Sstevel@tonic-gate
96b6805bf7SGordon Rossclobber: clean
97b6805bf7SGordon Ross
987c478bd9Sstevel@tonic-gate$(RPCDIRS):
997c478bd9Sstevel@tonic-gate	$(INS.dir)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate$(RPCSVCDIRS):
1027c478bd9Sstevel@tonic-gate	$(INS.dir)
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gatekey_prot.h: key_prot.x
1057c478bd9Sstevel@tonic-gate	$(RPCGEN) -C -h key_prot.x > $@
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gatepmap_prot.h: pmap_prot.x
1088f6d9daeSMarcel Telka	$(RPCGEN) -M -h pmap_prot.x > $@
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gaterpc_sztypes.h: rpc_sztypes.x
11161961e0fSrobinson	$(RPCGEN) -C -h rpc_sztypes.x > $@
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gaterpcb_prot.h: rpcb_prot.x
1148f6d9daeSMarcel Telka	$(RPCGEN) -M -h rpcb_prot.x > $@
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
117