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# 247c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 257c478bd9Sstevel@tonic-gate# 2661961e0fSrobinson# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 277c478bd9Sstevel@tonic-gate# Use is subject to license terms. 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# uts/common/rpc/Makefile 307c478bd9Sstevel@tonic-gate# 317c478bd9Sstevel@tonic-gate# include global definitions 327c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gatei386_HDRS= 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gatesparc_HDRS= ib.h 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateCOMMHDRS= \ 397c478bd9Sstevel@tonic-gateauth.h auth_des.h auth_sys.h auth_unix.h \ 407c478bd9Sstevel@tonic-gatebootparam.h clnt.h clnt_soc.h clnt_stat.h des_crypt.h \ 417c478bd9Sstevel@tonic-gatenettype.h pmap_clnt.h pmap_rmt.h \ 42*ac9418faSrobinsonraw.h rpc.h rpc_com.h rpc_msg.h \ 437c478bd9Sstevel@tonic-gaterpcb_clnt.h rpcent.h svc.h svc_auth.h svc_soc.h \ 4461961e0fSrobinsontypes.h xdr.h rpcsec_gss.h svc_mt.h \ 457c478bd9Sstevel@tonic-gaterpcsys.h rpc_rdma.h 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateHDRS= \ 487c478bd9Sstevel@tonic-gate $(COMMHDRS) \ 497c478bd9Sstevel@tonic-gate $($(MACH)_HDRS) 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateRPC_SRC= pmap_prot.x rpcb_prot.x 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateRPCSVC_SRC= key_prot.x rpc_sztypes.x 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateDERIVED_FILES= key_prot.h pmap_prot.h rpcb_prot.h rpc_sztypes.h 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateRPCHDRS= $(HDRS) $(RPC_SRC) $(DERIVED_FILES) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateRPCSVCHDRS= $(RPCSVC_SRC) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateRPCDIRS= $(ROOT)/usr/include/rpc 627c478bd9Sstevel@tonic-gateRPCSVCDIRS= $(ROOT)/usr/include/rpcsvc 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gateROOTHDRS= $(RPCHDRS:%=$(RPCDIRS)/%) $(RPCSVCHDRS:%=$(RPCSVCDIRS)/%) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate$(RPCDIRS)/%: % 677c478bd9Sstevel@tonic-gate $(INS.file) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate$(RPCSVCDIRS)/%: % 707c478bd9Sstevel@tonic-gate $(INS.file) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate# XXX: should really check the style of the derived files as well... 737c478bd9Sstevel@tonic-gate# $(RPC_SRC:%.x=%.check) \ 747c478bd9Sstevel@tonic-gate# $(RPCSVC_SRC:%.x=%.check) 757c478bd9Sstevel@tonic-gate# 767c478bd9Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate.KEEP_STATE: 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateall: all_h 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gateinstall_h: all_h $(RPCDIRS) $(RPCSVCDIRS) $(ROOTHDRS) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate# all_h permits derived headers to be built here in the uts source area 877c478bd9Sstevel@tonic-gate# for the kernel to reference, without going so far as to install them. 887c478bd9Sstevel@tonic-gate# 897c478bd9Sstevel@tonic-gateall_h: $(DERIVED_FILES) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gateclean: 927c478bd9Sstevel@tonic-gate $(RM) $(DERIVED_FILES) 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate$(RPCDIRS): 957c478bd9Sstevel@tonic-gate $(INS.dir) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate$(RPCSVCDIRS): 987c478bd9Sstevel@tonic-gate $(INS.dir) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gatekey_prot.h: key_prot.x 1017c478bd9Sstevel@tonic-gate $(RPCGEN) -C -h key_prot.x > $@ 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gatepmap_prot.h: pmap_prot.x 1047c478bd9Sstevel@tonic-gate $(RPCGEN) -h pmap_prot.x > $@ 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate# EXPORT DELETE START 1077c478bd9Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 1087c478bd9Sstevel@tonic-gate# Warning: This target changes the source tree 1097c478bd9Sstevel@tonic-gateEXPORT_SRC: 1107c478bd9Sstevel@tonic-gate $(RM) Makefile+ sec_gss/rpcsec_gss_misc.c+ 1117c478bd9Sstevel@tonic-gate $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 1127c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 1137c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 1147c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 1157c478bd9Sstevel@tonic-gate < sec_gss/rpcsec_gss_misc.c > sec_gss/rpcsec_gss_misc.c+ 1167c478bd9Sstevel@tonic-gate $(MV) sec_gss/rpcsec_gss_misc.c+ sec_gss/rpcsec_gss_misc.c 1177c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile sec_gss/rpcsec_gss_misc.c 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate# EXPORT DELETE END 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gaterpc_sztypes.h: rpc_sztypes.x 12261961e0fSrobinson $(RPCGEN) -C -h rpc_sztypes.x > $@ 1237c478bd9Sstevel@tonic-gate 1247c478bd9Sstevel@tonic-gaterpcb_prot.h: rpcb_prot.x 1257c478bd9Sstevel@tonic-gate $(RPCGEN) -h rpcb_prot.x > $@ 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 128