xref: /titanic_50/usr/src/lib/pam_modules/krb5/Makefile.com (revision fa9e4066f08beec538e775443c5be79dd423fcab)
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 2004 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
69# EXPORT DELETE START
70# CRYPT DELETE START
71INTLMAP =
72INTLMAP += -Dxencrypt=_C0095A0F
73INTLMAP += -Dxdecrypt=_C0095A10
74CPPFLAGS += $(INTLMAP)
75# CRYPT DELETE END
76# EXPORT DELETE END
77
78CLOBBERFILES += $(LINTLIB) $(LINTOUT) $(JOBJ) $(POFILE)
79
80#
81# Don't lint derived files
82#
83lint    :=      SRCS= $(PRIV_OBJ:%.o=$(SRCDIR)/%.c)
84
85all:	$(LIBS)
86
87lint:	lintcheck
88
89include	$(SRC)/lib/Makefile.targ
90
91kwarnd.h:	$(SRC)/cmd/krb5/kwarn/kwarnd.x
92	$(RM) $@
93	$(RPCGEN) -M -h $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
94	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
95
96kwarnd_xdr.c:	kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
97	$(RM) $@
98	$(RPCGEN) -M -c $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
99	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
100
101kwarnd_clnt.c:   kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
102	$(RM) $@
103	$(RPCGEN) -M -l $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
104	$(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
105
106kwarnd_clnt_stubs.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c
107	$(RM) $@
108	$(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c $@
109
110kwarnd_handle.c: $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c
111	$(RM) $@
112	$(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c $@
113