xref: /titanic_44/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com (revision 3289e1bdec732dbdf04517907516fd0d00f6a6f8)
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= db2.a
29VERS= .1
30
31# XXX need to set the install path to plugin dir
32
33# db2 plugin objects
34DB2_OBJS= \
35	adb_openclose.o \
36	adb_policy.o \
37	db2_exp.o \
38	kdb_db2.o \
39	kdb_xdr.o \
40	pol_xdr.o
41
42OBJECTS= $(DB2_OBJS)
43
44# include library definitions
45include $(SRC)/lib/krb5/Makefile.lib
46
47LIBS=		$(DYNLIB)
48SRCS=	$(DB2_OBJS:%.o=../%.c)
49
50include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
51
52POFILE = $(LIBRARY:%.a=%.po)
53POFILES = generic.po
54
55#override liblink
56INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57
58CPPFLAGS += 	-DHAVE_CONFIG_H -DHAVE_BT_RSEQ \
59		-I$(SRC)/cmd/krb5/iprop \
60		-I$(SRC)/lib/krb5 \
61		-I$(SRC)/lib/krb5/kdb \
62		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
63		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
64		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
65		-I$(SRC)/uts/common/gssapi/include/ \
66		-I$(SRC)/uts/common/gssapi/mechs/krb5/include
67
68CFLAGS +=	$(CCVERBOSE)
69
70DYNFLAGS +=	$(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
71LDLIBS +=	-L $(ROOTLIBDIR) -ldb2 -lkdb -lkadm5srv -lc -lnsl
72
73.KEEP_STATE:
74
75all:	$(LIBS)
76
77lint:	lintcheck
78
79# include library targets
80include $(SRC)/lib/krb5/Makefile.targ
81
82FRC:
83
84generic.po: FRC
85	$(RM) messages.po
86	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
87	$(SED) "/^domain/d" messages.po > $@
88	$(RM) messages.po
89