xref: /titanic_41/usr/src/lib/pam_modules/krb5/Makefile.com (revision 2449e17f82f6097fd2c665b64723e31ceecbeca6)
1#
2# CDDL HEADER START
3#
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.
8#
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.
13#
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]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# usr/src/lib/pam_modules/krb5/Makefile.com
27#
28# ident	"%Z%%M%	%I%	%E% SMI"
29
30LIBRARY=	pam_krb5.a
31VERS=		.1
32
33include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
34
35PRIV_OBJ=	krb5_authenticate.o \
36		krb5_setcred.o \
37		krb5_acct_mgmt.o \
38		krb5_password.o \
39		krb5_session.o \
40		utils.o
41
42DERIVED_OBJ=	kwarnd_clnt_stubs.o \
43		kwarnd_clnt.o \
44		kwarnd_handle.o \
45		kwarnd_xdr.o
46
47OBJECTS=	$(PRIV_OBJ) $(DERIVED_OBJ)
48
49JOBJ=		kwarnd.x \
50		kwarnd.h \
51		kwarnd_clnt_stubs.c \
52		kwarnd_handle.c \
53		kwarnd_xdr.c \
54		kwarnd_clnt.c
55
56include 	../../Makefile.pam_modules
57
58CPPFLAGS +=	-I../../../gss_mechs/mech_krb5/include \
59		-I$(SRC)/uts/common/gssapi/include/ \
60		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
61		-I$(SRC)/lib/gss_mechs/mech_krb5 \
62		-I$(SRC)/lib/krb5 \
63		-I.
64
65# module needs to be unloadable because the key destructor might be
66# called after dlclose()
67DYNFLAGS +=	$(ZNODELETE)
68
69CLOBBERFILES += $(LINTLIB) $(LINTOUT) $(JOBJ) $(POFILE)
70
71#
72# Don't lint derived files
73#
74lint    :=      SRCS= $(PRIV_OBJ:%.o=$(SRCDIR)/%.c)
75
76all:	$(LIBS)
77
78lint:	lintcheck
79
80include	$(SRC)/lib/Makefile.targ
81
82kwarnd.h:	$(SRC)/cmd/krb5/kwarn/kwarnd.x
83	$(RM) $@
84	$(RPCGEN) -M -h $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
85	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
86
87kwarnd_xdr.c:	kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
88	$(RM) $@
89	$(RPCGEN) -M -c $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
90	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
91
92kwarnd_clnt.c:   kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
93	$(RM) $@
94	$(RPCGEN) -M -l $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
95	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
96
97kwarnd_clnt_stubs.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c
98	$(RM) $@
99	$(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c $@
100
101kwarnd_handle.c: $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c
102	$(RM) $@
103	$(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c $@
104