4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 1989,1997,1999 by Sun Microsystems, Inc.
24 # All rights reserved.
26 # Copyright 2012 Milan Jurik. All rights reserved.
27 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
29 # uts/common/gssd/Makefile
31 # include global definitions
32 include ..
/..
/..
/Makefile.master
35 INSTALLED_HDRS
= gssapi.h gssapi_ext.h gssapi_krb5.h
36 PRIVATE_HDRS
= gssd.x gssd_prot.h
37 HDRS
= $(INSTALLED_HDRS
) $(PRIVATE_HDRS
)
39 DERIVED_FILES
= gssd_prot.h gssd_prot.c gssd_xdr.c
41 GSSDDIRS
= $(ROOT
)/usr
/include/gssapi
43 GSSDHDRS
= $(INSTALLED_HDRS
:%=$(GSSDDIRS
)/%)
45 CHECKHDRS
= $(INSTALLED_HDRS
:%.h
=%.
check)
47 # gssd_prot.h is rpcgen'ed and can never be made to pass
48 # cstyle so it is unchecked
49 UNCHECKED_HDRS
= gss_prot.h
55 $(GSSDDIRS
)/%: mechs
/krb5
/include/%
58 # This is 3rd party code, so just skip hdrchk.
63 .PARALLEL
: $(CHECKHDRS
)
65 install_h
: all_h
$(GSSDDIRS
) $(GSSDHDRS
)
67 all_h
: $(DERIVED_FILES
)
74 $(RPCGEN
) -CM
-h gssd.x
> $@
79 # Over ticotsord we do zero retries. Over ticlts we do 5
80 # retries. Hence, a default of 25 seconds for ticotsord is
81 # too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c).
83 $(RPCGEN
) -M
-l gssd.x | sed
-e \
84 's;#include..gssd.h.;#include "gssd_prot.h";' \
85 | sed
's/TIMEOUT/gssd_timeout/' \
86 | sed
's/{ 25, 0 }/{ 125, 0 }/' \
87 | grep
-v stdlib.h | grep
-v stdio.h
> $@
91 $(RPCGEN
) -M
-c gssd.x | sed
-e \
92 's;#include..gssd.h.;#include "gssd_prot.h";' > $@
97 $(RM
) $(DERIVED_FILES
)