Makefile revision 694c35faa87b858ecdadfe4fc592615f4eefbb07
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# CDDL HEADER START
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# The contents of this file are subject to the terms of the
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# Common Development and Distribution License, Version 1.0 only
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# (the "License"). You may not use this file except in compliance
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# with the License.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# or http://www.opensolaris.org/os/licensing.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# See the License for the specific language governing permissions
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# and limitations under the License.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# When distributing Covered Code, include this CDDL HEADER in each
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# If applicable, add the following below this CDDL HEADER, with the
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# fields enclosed by brackets "[]" replaced with your own identifying
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# information: Portions Copyright [yyyy] [name of copyright owner]
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# CDDL HEADER END
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# Copyright (c) 1989,1997,1999 by Sun Microsystems, Inc.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# All rights reserved.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# Copyright 2012 Milan Jurik. All rights reserved.
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# uts/common/gssd/Makefile
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp#
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# include global definitions
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpinclude ../../../Makefile.master
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpINSTALLED_HDRS= gssapi.h gssapi_ext.h
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpPRIVATE_HDRS= gssd.x gssd_prot.h
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpHDRS= $(INSTALLED_HDRS) $(PRIVATE_HDRS)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpDERIVED_FILES= gssd_prot.h gssd_prot.c gssd_xdr.c
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpGSSDDIRS= $(ROOT)/usr/include/gssapi
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpGSSDHDRS= $(INSTALLED_HDRS:%=$(GSSDDIRS)/%)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpCHECKHDRS= $(INSTALLED_HDRS:%.h=%.check)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# gssd_prot.h is rpcgen'ed and can never be made to pass
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# cstyle so it is unchecked
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpUNCHECKED_HDRS= gss_prot.h
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp# install rule
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp$(GSSDDIRS)/%: %
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp $(INS.file)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp.KEEP_STATE:
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp.PARALLEL: $(CHECKHDRS)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpinstall_h: all_h $(GSSDDIRS) $(GSSDHDRS)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpall_h: $(DERIVED_FILES)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp$(GSSDDIRS):
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp $(INS.dir)
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
b71d513a362009e7000b3cb6cb82318dfd6c83a0edpgssd_prot.h: gssd.x
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp $(RM) $@
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp $(RPCGEN) -CM -h gssd.x > $@
b71d513a362009e7000b3cb6cb82318dfd6c83a0edp
gssd_prot.c: gssd.x
$(RM) $@
# Over ticotsord we do zero retries. Over ticlts we do 5
# retries. Hence, a default of 25 seconds for ticotsord is
# too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c).
#
$(RPCGEN) -M -l gssd.x | sed -e \
's;#include..gssd.h.;#include "gssd_prot.h";' \
| sed 's/TIMEOUT/gssd_timeout/' \
| sed 's/{ 25, 0 }/{ 125, 0 }/' \
| grep -v stdlib.h | grep -v stdio.h > $@
gssd_xdr.c: gssd.x
$(RM) $@
$(RPCGEN) -M -c gssd.x | sed -e \
's;#include..gssd.h.;#include "gssd_prot.h";' > $@
check: $(CHECKHDRS)
clean:
$(RM) $(DERIVED_FILES)