xref: /titanic_41/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
154925bf6Swillf#
254925bf6Swillf# CDDL HEADER START
354925bf6Swillf#
454925bf6Swillf# The contents of this file are subject to the terms of the
554925bf6Swillf# Common Development and Distribution License (the "License").
654925bf6Swillf# You may not use this file except in compliance with the License.
754925bf6Swillf#
854925bf6Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
954925bf6Swillf# or http://www.opensolaris.org/os/licensing.
1054925bf6Swillf# See the License for the specific language governing permissions
1154925bf6Swillf# and limitations under the License.
1254925bf6Swillf#
1354925bf6Swillf# When distributing Covered Code, include this CDDL HEADER in each
1454925bf6Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1554925bf6Swillf# If applicable, add the following below this CDDL HEADER, with the
1654925bf6Swillf# fields enclosed by brackets "[]" replaced with your own identifying
1754925bf6Swillf# information: Portions Copyright [yyyy] [name of copyright owner]
1854925bf6Swillf#
1954925bf6Swillf# CDDL HEADER END
2054925bf6Swillf#
2154925bf6Swillf#
222dd2efa5Swillf# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2354925bf6Swillf# Use is subject to license terms.
2454925bf6Swillf#
2554925bf6Swillf
2654925bf6SwillfLIBRARY= db2.a
2754925bf6SwillfVERS= .1
2854925bf6Swillf
2954925bf6Swillf# XXX need to set the install path to plugin dir
3054925bf6Swillf
3154925bf6Swillf# db2 plugin objects
3254925bf6SwillfDB2_OBJS= \
3354925bf6Swillf	adb_openclose.o \
3454925bf6Swillf	adb_policy.o \
3554925bf6Swillf	db2_exp.o \
3654925bf6Swillf	kdb_db2.o \
3754925bf6Swillf	kdb_xdr.o \
3854925bf6Swillf	pol_xdr.o
3954925bf6Swillf
4054925bf6SwillfOBJECTS= $(DB2_OBJS)
4154925bf6Swillf
4254925bf6Swillf# include library definitions
4354925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.lib
4454925bf6Swillf
4554925bf6SwillfLIBS=		$(DYNLIB)
4654925bf6SwillfSRCS=	$(DB2_OBJS:%.o=../%.c)
4754925bf6Swillf
4854925bf6Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
4954925bf6Swillf
5054925bf6SwillfPOFILE = $(LIBRARY:%.a=%.po)
5154925bf6SwillfPOFILES = generic.po
5254925bf6Swillf
5354925bf6Swillf#override liblink
5454925bf6SwillfINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
5554925bf6Swillf
562dd2efa5SwillfCPPFLAGS += 	-DHAVE_CONFIG_H -DHAVE_BT_RSEQ \
5754925bf6Swillf		-I$(SRC)/cmd/krb5/iprop \
5854925bf6Swillf		-I$(SRC)/lib/krb5 \
5954925bf6Swillf		-I$(SRC)/lib/krb5/kdb \
6054925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
6154925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
6254925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
6354925bf6Swillf		-I$(SRC)/uts/common/gssapi/include/ \
6454925bf6Swillf		-I$(SRC)/uts/common/gssapi/mechs/krb5/include
6554925bf6Swillf
6654925bf6SwillfCFLAGS +=	$(CCVERBOSE)
67*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
68*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
69*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
70*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
7154925bf6Swillf
7267e3a03eSrieDYNFLAGS +=	$(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
7354925bf6SwillfLDLIBS +=	-L $(ROOTLIBDIR) -ldb2 -lkdb -lkadm5srv -lc -lnsl
7454925bf6Swillf
7554925bf6Swillf.KEEP_STATE:
7654925bf6Swillf
7754925bf6Swillfall:	$(LIBS)
7854925bf6Swillf
7954925bf6Swillflint:	lintcheck
8054925bf6Swillf
8154925bf6Swillf# include library targets
8254925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.targ
8354925bf6Swillf
8454925bf6SwillfFRC:
8554925bf6Swillf
8654925bf6Swillfgeneric.po: FRC
8754925bf6Swillf	$(RM) messages.po
8854925bf6Swillf	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
8954925bf6Swillf	$(SED) "/^domain/d" messages.po > $@
9054925bf6Swillf	$(RM) messages.po
91