xref: /titanic_50/usr/src/uts/common/gssapi/Makefile (revision 12b65585e720714b31036daaa2b30eb76014048e)
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#
2616b7b96cSMilan Jurik# Copyright 2012 Milan Jurik. All rights reserved.
27*12b65585SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# uts/common/gssd/Makefile
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# include global definitions
327c478bd9Sstevel@tonic-gateinclude ../../../Makefile.master
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate
35*12b65585SGordon RossINSTALLED_HDRS=	gssapi.h gssapi_ext.h gssapi_krb5.h
367c478bd9Sstevel@tonic-gatePRIVATE_HDRS=	gssd.x gssd_prot.h
377c478bd9Sstevel@tonic-gateHDRS=	$(INSTALLED_HDRS) $(PRIVATE_HDRS)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateDERIVED_FILES=	gssd_prot.h gssd_prot.c gssd_xdr.c
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateGSSDDIRS= $(ROOT)/usr/include/gssapi
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateGSSDHDRS= $(INSTALLED_HDRS:%=$(GSSDDIRS)/%)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateCHECKHDRS= $(INSTALLED_HDRS:%.h=%.check)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate# gssd_prot.h is rpcgen'ed and can never be made to pass
487c478bd9Sstevel@tonic-gate# cstyle so it is unchecked
497c478bd9Sstevel@tonic-gateUNCHECKED_HDRS=	gss_prot.h
507c478bd9Sstevel@tonic-gate
51*12b65585SGordon Ross# install rules
527c478bd9Sstevel@tonic-gate$(GSSDDIRS)/%: %
537c478bd9Sstevel@tonic-gate	$(INS.file)
547c478bd9Sstevel@tonic-gate
55*12b65585SGordon Ross$(GSSDDIRS)/%: mechs/krb5/include/%
56*12b65585SGordon Ross	$(INS.file)
57*12b65585SGordon Ross
58*12b65585SGordon Ross# This is 3rd party code, so just skip hdrchk.
59*12b65585SGordon Rossgssapi_krb5.check:
60*12b65585SGordon Ross
617c478bd9Sstevel@tonic-gate.KEEP_STATE:
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateinstall_h: all_h $(GSSDDIRS) $(GSSDHDRS)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateall_h: $(DERIVED_FILES)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gate$(GSSDDIRS):
707c478bd9Sstevel@tonic-gate	$(INS.dir)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gategssd_prot.h:	gssd.x
737c478bd9Sstevel@tonic-gate	$(RM) $@
7416b7b96cSMilan Jurik	$(RPCGEN) -CM -h gssd.x > $@
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gategssd_prot.c:   gssd.x
777c478bd9Sstevel@tonic-gate	$(RM) $@
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate#	Over ticotsord we do zero retries. Over ticlts we do 5
807c478bd9Sstevel@tonic-gate#	retries. Hence, a default of 25 seconds for ticotsord is
817c478bd9Sstevel@tonic-gate#	too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c).
827c478bd9Sstevel@tonic-gate#
837c478bd9Sstevel@tonic-gate	$(RPCGEN) -M -l gssd.x | sed -e \
847c478bd9Sstevel@tonic-gate		's;#include..gssd.h.;#include "gssd_prot.h";' \
857c478bd9Sstevel@tonic-gate		| sed 's/TIMEOUT/gssd_timeout/' \
867c478bd9Sstevel@tonic-gate		| sed 's/{ 25, 0 }/{ 125, 0 }/' \
877c478bd9Sstevel@tonic-gate		| grep -v stdlib.h | grep -v stdio.h > $@
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gategssd_xdr.c:    gssd.x
907c478bd9Sstevel@tonic-gate	$(RM) $@
917c478bd9Sstevel@tonic-gate	$(RPCGEN) -M -c gssd.x | sed -e \
927c478bd9Sstevel@tonic-gate		's;#include..gssd.h.;#include "gssd_prot.h";' > $@
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gateclean:
977c478bd9Sstevel@tonic-gate	$(RM) $(DERIVED_FILES)
98b6805bf7SGordon Ross
99b6805bf7SGordon Rossclobber: clean
100