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. 257c478bd9Sstevel@tonic-gate# Use is subject to license terms. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# uts/common/rpc/Makefile 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# include global definitions 307c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gatei386_HDRS= 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gatesparc_HDRS= ib.h 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateCOMMHDRS= \ 377c478bd9Sstevel@tonic-gateauth.h auth_des.h auth_sys.h auth_unix.h \ 387c478bd9Sstevel@tonic-gatebootparam.h clnt.h clnt_soc.h clnt_stat.h des_crypt.h \ 397c478bd9Sstevel@tonic-gatenettype.h pmap_clnt.h pmap_rmt.h \ 40ac9418faSrobinsonraw.h rpc.h rpc_com.h rpc_msg.h \ 417c478bd9Sstevel@tonic-gaterpcb_clnt.h rpcent.h svc.h svc_auth.h svc_soc.h \ 4261961e0fSrobinsontypes.h xdr.h rpcsec_gss.h svc_mt.h \ 437c478bd9Sstevel@tonic-gaterpcsys.h rpc_rdma.h 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateHDRS= \ 467c478bd9Sstevel@tonic-gate $(COMMHDRS) \ 477c478bd9Sstevel@tonic-gate $($(MACH)_HDRS) 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateRPC_SRC= pmap_prot.x rpcb_prot.x 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateRPCSVC_SRC= key_prot.x rpc_sztypes.x 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateDERIVED_FILES= key_prot.h pmap_prot.h rpcb_prot.h rpc_sztypes.h 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateRPCHDRS= $(HDRS) $(RPC_SRC) $(DERIVED_FILES) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateRPCSVCHDRS= $(RPCSVC_SRC) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateRPCDIRS= $(ROOT)/usr/include/rpc 607c478bd9Sstevel@tonic-gateRPCSVCDIRS= $(ROOT)/usr/include/rpcsvc 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateROOTHDRS= $(RPCHDRS:%=$(RPCDIRS)/%) $(RPCSVCHDRS:%=$(RPCSVCDIRS)/%) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate$(RPCDIRS)/%: % 657c478bd9Sstevel@tonic-gate $(INS.file) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate$(RPCSVCDIRS)/%: % 687c478bd9Sstevel@tonic-gate $(INS.file) 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate# XXX: should really check the style of the derived files as well... 717c478bd9Sstevel@tonic-gate# $(RPC_SRC:%.x=%.check) \ 727c478bd9Sstevel@tonic-gate# $(RPCSVC_SRC:%.x=%.check) 737c478bd9Sstevel@tonic-gate# 747c478bd9Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate.KEEP_STATE: 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gateall: all_h 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateinstall_h: all_h $(RPCDIRS) $(RPCSVCDIRS) $(ROOTHDRS) 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate# all_h permits derived headers to be built here in the uts source area 857c478bd9Sstevel@tonic-gate# for the kernel to reference, without going so far as to install them. 867c478bd9Sstevel@tonic-gate# 877c478bd9Sstevel@tonic-gateall_h: $(DERIVED_FILES) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateclean: 907c478bd9Sstevel@tonic-gate $(RM) $(DERIVED_FILES) 917c478bd9Sstevel@tonic-gate 92*b6805bf7SGordon Rossclobber: clean 93*b6805bf7SGordon Ross 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-gaterpc_sztypes.h: rpc_sztypes.x 10761961e0fSrobinson $(RPCGEN) -C -h rpc_sztypes.x > $@ 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gaterpcb_prot.h: rpcb_prot.x 1107c478bd9Sstevel@tonic-gate $(RPCGEN) -h rpcb_prot.x > $@ 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 113