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