Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / krb5 / plugins / kdb / db2 / Makefile.com
blobde1e18c103d0fa9e6988f49bf206f6535cde7278
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
27 LIBRARY= db2.a
28 VERS= .1
30 # XXX need to set the install path to plugin dir
32 # db2 plugin objects
33 DB2_OBJS= \
34         adb_openclose.o \
35         adb_policy.o \
36         db2_exp.o \
37         kdb_db2.o \
38         kdb_xdr.o \
39         pol_xdr.o
41 OBJECTS= $(DB2_OBJS)
43 # include library definitions
44 include $(SRC)/lib/krb5/Makefile.lib
46 LIBS=           $(DYNLIB)
47 SRCS=   $(DB2_OBJS:%.o=../%.c)
49 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
51 POFILE = $(LIBRARY:%.a=%.po)
52 POFILES = generic.po
54 #override liblink
55 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57 CPPFLAGS +=     -DHAVE_CONFIG_H -DHAVE_BT_RSEQ \
58                 -I$(SRC)/cmd/krb5/iprop \
59                 -I$(SRC)/lib/krb5 \
60                 -I$(SRC)/lib/krb5/kdb \
61                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
62                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
63                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
64                 -I$(SRC)/uts/common/gssapi/include/ \
65                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
67 CERRWARN +=     -Wno-unused-variable
68 CERRWARN +=     -Wno-unused-function
69 CERRWARN +=     -Wno-parentheses
70 CERRWARN +=     -Wno-uninitialized
72 # not linted
73 SMATCH=off
75 DYNFLAGS +=     $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
76 LDLIBS +=       -L $(ROOTLIBDIR) -ldb2 -lkdb -lkadm5srv -lc
78 .KEEP_STATE:
80 all:    $(LIBS)
83 # include library targets
84 include $(SRC)/lib/krb5/Makefile.targ
86 FRC:
88 generic.po: FRC
89         $(RM) messages.po
90         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
91         $(SED) "/^domain/d" messages.po > $@
92         $(RM) messages.po