1*0Sstevel@tonic-gate# 2*0Sstevel@tonic-gate# CDDL HEADER START 3*0Sstevel@tonic-gate# 4*0Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate# with the License. 8*0Sstevel@tonic-gate# 9*0Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate# See the License for the specific language governing permissions 12*0Sstevel@tonic-gate# and limitations under the License. 13*0Sstevel@tonic-gate# 14*0Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate# 20*0Sstevel@tonic-gate# CDDL HEADER END 21*0Sstevel@tonic-gate# 22*0Sstevel@tonic-gate# 23*0Sstevel@tonic-gate# Copyright (c) 1989,1997,1999 by Sun Microsystems, Inc. 24*0Sstevel@tonic-gate# All rights reserved. 25*0Sstevel@tonic-gate# 26*0Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 27*0Sstevel@tonic-gate# 28*0Sstevel@tonic-gate# uts/common/gssd/Makefile 29*0Sstevel@tonic-gate# 30*0Sstevel@tonic-gate# include global definitions 31*0Sstevel@tonic-gateinclude ../../../Makefile.master 32*0Sstevel@tonic-gate 33*0Sstevel@tonic-gate 34*0Sstevel@tonic-gateINSTALLED_HDRS= gssapi.h gssapi_ext.h 35*0Sstevel@tonic-gatePRIVATE_HDRS= gssd.x gssd_prot.h 36*0Sstevel@tonic-gateHDRS= $(INSTALLED_HDRS) $(PRIVATE_HDRS) 37*0Sstevel@tonic-gate 38*0Sstevel@tonic-gateDERIVED_FILES= gssd_prot.h gssd_prot.c gssd_xdr.c 39*0Sstevel@tonic-gate 40*0Sstevel@tonic-gateGSSDDIRS= $(ROOT)/usr/include/gssapi 41*0Sstevel@tonic-gate 42*0Sstevel@tonic-gateGSSDHDRS= $(INSTALLED_HDRS:%=$(GSSDDIRS)/%) 43*0Sstevel@tonic-gate 44*0Sstevel@tonic-gateCHECKHDRS= $(INSTALLED_HDRS:%.h=%.check) 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate# gssd_prot.h is rpcgen'ed and can never be made to pass 47*0Sstevel@tonic-gate# cstyle so it is unchecked 48*0Sstevel@tonic-gateUNCHECKED_HDRS= gss_prot.h 49*0Sstevel@tonic-gate 50*0Sstevel@tonic-gate# install rule 51*0Sstevel@tonic-gate$(GSSDDIRS)/%: % 52*0Sstevel@tonic-gate $(INS.file) 53*0Sstevel@tonic-gate 54*0Sstevel@tonic-gate.KEEP_STATE: 55*0Sstevel@tonic-gate 56*0Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) 57*0Sstevel@tonic-gate 58*0Sstevel@tonic-gateinstall_h: all_h $(GSSDDIRS) $(GSSDHDRS) 59*0Sstevel@tonic-gate 60*0Sstevel@tonic-gateall_h: $(DERIVED_FILES) 61*0Sstevel@tonic-gate 62*0Sstevel@tonic-gate$(GSSDDIRS): 63*0Sstevel@tonic-gate $(INS.dir) 64*0Sstevel@tonic-gate 65*0Sstevel@tonic-gategssd_prot.h: gssd.x 66*0Sstevel@tonic-gate $(RM) $@ 67*0Sstevel@tonic-gate $(RPCGEN) -M -h gssd.x > $@ 68*0Sstevel@tonic-gate 69*0Sstevel@tonic-gategssd_prot.c: gssd.x 70*0Sstevel@tonic-gate $(RM) $@ 71*0Sstevel@tonic-gate 72*0Sstevel@tonic-gate# Over ticotsord we do zero retries. Over ticlts we do 5 73*0Sstevel@tonic-gate# retries. Hence, a default of 25 seconds for ticotsord is 74*0Sstevel@tonic-gate# too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c). 75*0Sstevel@tonic-gate# 76*0Sstevel@tonic-gate $(RPCGEN) -M -l gssd.x | sed -e \ 77*0Sstevel@tonic-gate 's;#include..gssd.h.;#include "gssd_prot.h";' \ 78*0Sstevel@tonic-gate | sed 's/TIMEOUT/gssd_timeout/' \ 79*0Sstevel@tonic-gate | sed 's/{ 25, 0 }/{ 125, 0 }/' \ 80*0Sstevel@tonic-gate | grep -v stdlib.h | grep -v stdio.h > $@ 81*0Sstevel@tonic-gate 82*0Sstevel@tonic-gategssd_xdr.c: gssd.x 83*0Sstevel@tonic-gate $(RM) $@ 84*0Sstevel@tonic-gate $(RPCGEN) -M -c gssd.x | sed -e \ 85*0Sstevel@tonic-gate 's;#include..gssd.h.;#include "gssd_prot.h";' > $@ 86*0Sstevel@tonic-gate 87*0Sstevel@tonic-gatecheck: $(CHECKHDRS) 88*0Sstevel@tonic-gate 89*0Sstevel@tonic-gateclean: 90*0Sstevel@tonic-gate $(RM) $(DERIVED_FILES) 91*0Sstevel@tonic-gate 92*0Sstevel@tonic-gate# EXPORT DELETE START 93*0Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 94*0Sstevel@tonic-gate# Warning: This target changes the source tree 95*0Sstevel@tonic-gateEXPORT_SRC: 96*0Sstevel@tonic-gate $(RM) Makefile+ gssd.x+ gssd_clnt_stubs.c+ 97*0Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 98*0Sstevel@tonic-gate < gssd.x > gssd.x+ 99*0Sstevel@tonic-gate $(MV) gssd.x+ gssd.x 100*0Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 101*0Sstevel@tonic-gate < gssd_clnt_stubs.c > gssd_clnt_stubs.c+ 102*0Sstevel@tonic-gate $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c 103*0Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 104*0Sstevel@tonic-gate < Makefile > Makefile+ 105*0Sstevel@tonic-gate $(MV) Makefile+ Makefile 106*0Sstevel@tonic-gate $(CHMOD) 444 Makefile gssd.x gssd_clnt_stubs.c 107*0Sstevel@tonic-gate 108*0Sstevel@tonic-gate# CRYPT DELETE START 109*0Sstevel@tonic-gate# Special target to clean up the source tree for domestic distribution 110*0Sstevel@tonic-gate# Warning: This target changes the source tree 111*0Sstevel@tonic-gate 112*0Sstevel@tonic-gateCRYPT_SRC: 113*0Sstevel@tonic-gate $(RM) Makefile+ gssd_clnt_stubs.c+ 114*0Sstevel@tonic-gate sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 115*0Sstevel@tonic-gate < Makefile > Makefile+ 116*0Sstevel@tonic-gate $(MV) Makefile+ Makefile 117*0Sstevel@tonic-gate sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 118*0Sstevel@tonic-gate < gssd_clnt_stubs.c > gssd_clnt_stubs.c+ 119*0Sstevel@tonic-gate $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c 120*0Sstevel@tonic-gate $(CHMOD) 444 Makefile gssd_clnt_stubs.c 121*0Sstevel@tonic-gate 122*0Sstevel@tonic-gate# CRYPT DELETE END 123*0Sstevel@tonic-gate# EXPORT DELETE END 124