3882 Remove xmod & friends
[illumos-gate.git] / usr / src / uts / common / gssapi / Makefile
blob736ac8da688e0462024894c6ae38bf31de2655a6
2 # CDDL HEADER START
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
7 # with the License.
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]
20 # CDDL HEADER END
23 # Copyright (c) 1989,1997,1999 by Sun Microsystems, Inc.
24 # All rights reserved.
26 # Copyright 2012 Milan Jurik. All rights reserved.
28 # uts/common/gssd/Makefile
30 # include global definitions
31 include ../../../Makefile.master
34 INSTALLED_HDRS= gssapi.h gssapi_ext.h
35 PRIVATE_HDRS= gssd.x gssd_prot.h
36 HDRS= $(INSTALLED_HDRS) $(PRIVATE_HDRS)
38 DERIVED_FILES= gssd_prot.h gssd_prot.c gssd_xdr.c
40 GSSDDIRS= $(ROOT)/usr/include/gssapi
42 GSSDHDRS= $(INSTALLED_HDRS:%=$(GSSDDIRS)/%)
44 CHECKHDRS= $(INSTALLED_HDRS:%.h=%.check)
46 # gssd_prot.h is rpcgen'ed and can never be made to pass
47 # cstyle so it is unchecked
48 UNCHECKED_HDRS= gss_prot.h
50 # install rule
51 $(GSSDDIRS)/%: %
52 $(INS.file)
54 .KEEP_STATE:
56 .PARALLEL: $(CHECKHDRS)
58 install_h: all_h $(GSSDDIRS) $(GSSDHDRS)
60 all_h: $(DERIVED_FILES)
62 $(GSSDDIRS):
63 $(INS.dir)
65 gssd_prot.h: gssd.x
66 $(RM) $@
67 $(RPCGEN) -CM -h gssd.x > $@
69 gssd_prot.c: gssd.x
70 $(RM) $@
72 # Over ticotsord we do zero retries. Over ticlts we do 5
73 # retries. Hence, a default of 25 seconds for ticotsord is
74 # too little. 125 = 25 + 6 * MAXTIMO (from clnt_clts.c).
76 $(RPCGEN) -M -l gssd.x | sed -e \
77 's;#include..gssd.h.;#include "gssd_prot.h";' \
78 | sed 's/TIMEOUT/gssd_timeout/' \
79 | sed 's/{ 25, 0 }/{ 125, 0 }/' \
80 | grep -v stdlib.h | grep -v stdio.h > $@
82 gssd_xdr.c: gssd.x
83 $(RM) $@
84 $(RPCGEN) -M -c gssd.x | sed -e \
85 's;#include..gssd.h.;#include "gssd_prot.h";' > $@
87 check: $(CHECKHDRS)
89 clean:
90 $(RM) $(DERIVED_FILES)