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