xref: /illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com (revision 67e3a03ed4a2813074d36330f062ed6e593a4937)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY= libkdb_ldap.a
29VERS= .1
30
31LIBKLDAP_OBJS= \
32	kdb_ldap.o \
33	kdb_ldap_conn.o \
34	kdb_xdr.o \
35	ldap_create.o \
36	ldap_err.o \
37	ldap_fetch_mkey.o \
38	ldap_handle.o \
39	ldap_krbcontainer.o \
40	ldap_misc.o \
41	ldap_principal.o \
42	ldap_principal2.o \
43	ldap_pwd_policy.o \
44	ldap_realm.o \
45	ldap_service_rights.o \
46	ldap_service_stash.o \
47	ldap_services.o \
48	ldap_tkt_policy.o \
49	princ_xdr.o
50
51OBJECTS= $(LIBKLDAP_OBJS)
52
53# include library definitions
54include $(SRC)/lib/krb5/Makefile.lib
55
56SRCS= $(LIBKLDAP_OBJS:%.o=../%.c)
57
58LIBS=		$(DYNLIB)
59
60include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
61
62POFILE = $(LIBRARY:%.a=%.po)
63POFILES = generic.po
64
65#override liblink
66INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
67
68CPPFLAGS += 	-DHAVE_CONFIG_H \
69		-I$(SRC)/lib/krb5 \
70		-I$(SRC)/lib/krb5/kdb \
71		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
72		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
73		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
74		-I$(SRC)/uts/common/gssapi/include/ \
75		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
76		-DUSE_KADM5_API_VERSION=2
77
78CFLAGS +=	$(CCVERBOSE) -I..
79DYNFLAGS +=	$(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
80LDLIBS +=	-L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap
81
82.KEEP_STATE:
83
84all:	$(LIBS)
85
86lint:	lintcheck
87
88# include library targets
89include $(SRC)/lib/krb5/Makefile.targ
90
91FRC:
92
93generic.po: FRC
94	$(RM) messages.po
95	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
96	$(SED) "/^domain/d" messages.po > $@
97	$(RM) messages.po
98