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# 227c478bd9Sstevel@tonic-gate# 237c478bd9Sstevel@tonic-gate# Copyright (c) 1989,1997,1999 by Sun Microsystems, Inc. 247c478bd9Sstevel@tonic-gate# All rights reserved. 257c478bd9Sstevel@tonic-gate# 26*16b7b96cSMilan Jurik# Copyright 2012 Milan Jurik. All rights reserved. 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# uts/common/gssd/Makefile 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# include global definitions 317c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateINSTALLED_HDRS= gssapi.h gssapi_ext.h 357c478bd9Sstevel@tonic-gatePRIVATE_HDRS= gssd.x gssd_prot.h 367c478bd9Sstevel@tonic-gateHDRS= $(INSTALLED_HDRS) $(PRIVATE_HDRS) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateDERIVED_FILES= gssd_prot.h gssd_prot.c gssd_xdr.c 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateGSSDDIRS= $(ROOT)/usr/include/gssapi 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateGSSDHDRS= $(INSTALLED_HDRS:%=$(GSSDDIRS)/%) 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateCHECKHDRS= $(INSTALLED_HDRS:%.h=%.check) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate# gssd_prot.h is rpcgen'ed and can never be made to pass 477c478bd9Sstevel@tonic-gate# cstyle so it is unchecked 487c478bd9Sstevel@tonic-gateUNCHECKED_HDRS= gss_prot.h 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate# install rule 517c478bd9Sstevel@tonic-gate$(GSSDDIRS)/%: % 527c478bd9Sstevel@tonic-gate $(INS.file) 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate.KEEP_STATE: 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateinstall_h: all_h $(GSSDDIRS) $(GSSDHDRS) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateall_h: $(DERIVED_FILES) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate$(GSSDDIRS): 637c478bd9Sstevel@tonic-gate $(INS.dir) 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gategssd_prot.h: gssd.x 667c478bd9Sstevel@tonic-gate $(RM) $@ 67*16b7b96cSMilan Jurik $(RPCGEN) -CM -h gssd.x > $@ 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gategssd_prot.c: gssd.x 707c478bd9Sstevel@tonic-gate $(RM) $@ 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate# Over ticotsord we do zero retries. Over ticlts we do 5 737c478bd9Sstevel@tonic-gate# retries. Hence, a default of 25 seconds for ticotsord is 747c478bd9Sstevel@tonic-gate# too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c). 757c478bd9Sstevel@tonic-gate# 767c478bd9Sstevel@tonic-gate $(RPCGEN) -M -l gssd.x | sed -e \ 777c478bd9Sstevel@tonic-gate 's;#include..gssd.h.;#include "gssd_prot.h";' \ 787c478bd9Sstevel@tonic-gate | sed 's/TIMEOUT/gssd_timeout/' \ 797c478bd9Sstevel@tonic-gate | sed 's/{ 25, 0 }/{ 125, 0 }/' \ 807c478bd9Sstevel@tonic-gate | grep -v stdlib.h | grep -v stdio.h > $@ 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gategssd_xdr.c: gssd.x 837c478bd9Sstevel@tonic-gate $(RM) $@ 847c478bd9Sstevel@tonic-gate $(RPCGEN) -M -c gssd.x | sed -e \ 857c478bd9Sstevel@tonic-gate 's;#include..gssd.h.;#include "gssd_prot.h";' > $@ 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateclean: 907c478bd9Sstevel@tonic-gate $(RM) $(DERIVED_FILES) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate# EXPORT DELETE START 937c478bd9Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 947c478bd9Sstevel@tonic-gate# Warning: This target changes the source tree 957c478bd9Sstevel@tonic-gateEXPORT_SRC: 967c478bd9Sstevel@tonic-gate $(RM) Makefile+ gssd.x+ gssd_clnt_stubs.c+ 977c478bd9Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 987c478bd9Sstevel@tonic-gate < gssd.x > gssd.x+ 997c478bd9Sstevel@tonic-gate $(MV) gssd.x+ gssd.x 1007c478bd9Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 1017c478bd9Sstevel@tonic-gate < gssd_clnt_stubs.c > gssd_clnt_stubs.c+ 1027c478bd9Sstevel@tonic-gate $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c 1037c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 1047c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 1057c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 1067c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile gssd.x gssd_clnt_stubs.c 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate# CRYPT DELETE START 1097c478bd9Sstevel@tonic-gate# Special target to clean up the source tree for domestic distribution 1107c478bd9Sstevel@tonic-gate# Warning: This target changes the source tree 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gateCRYPT_SRC: 1137c478bd9Sstevel@tonic-gate $(RM) Makefile+ gssd_clnt_stubs.c+ 1147c478bd9Sstevel@tonic-gate sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 1157c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 1167c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 1177c478bd9Sstevel@tonic-gate sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 1187c478bd9Sstevel@tonic-gate < gssd_clnt_stubs.c > gssd_clnt_stubs.c+ 1197c478bd9Sstevel@tonic-gate $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c 1207c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile gssd_clnt_stubs.c 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate# CRYPT DELETE END 1237c478bd9Sstevel@tonic-gate# EXPORT DELETE END 124