Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
550N/A#
550N/A# CDDL HEADER START
1356N/A#
550N/A# The contents of this file are subject to the terms of the
1515N/A# Common Development and Distribution License (the "License").
550N/A# You may not use this file except in compliance with the License.
550N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
550N/A
550N/APROG= kdb5_ldap_util
550N/A
550N/AOBJS = \
550N/A kdb5_ldap_list.o \
550N/A kdb5_ldap_policy.o \
970N/A kdb5_ldap_realm.o \
970N/A kdb5_ldap_services.o \
970N/A kdb5_ldap_util.o
970N/A
1356N/AGETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o
1356N/A
1392N/ASRCS = $(OBJS:.o=.c)
1356N/A
1356N/ADEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
1356N/A
1515N/Ainclude $(SRC)/cmd/Makefile.cmd
1356N/Ainclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
550N/A
550N/ATEXT_DOMAIN = SUNW_OST_OSCMD
550N/APOFILE = kdb5_ldap_util.po
550N/APOFILES = generic.po
1466N/A
1466N/ADEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2
550N/A
550N/ACPPFLAGS += \
550N/A -I$(SRC)/lib/gss_mechs/mech_krb5 \
550N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include \
550N/A -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
1466N/A -I$(SRC)/lib/krb5 \
1466N/A -I$(SRC)/lib/krb5/kdb \
550N/A -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
550N/A -I$(SRC)/cmd/krb5/kadmin/cli \
550N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
1466N/A -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \
1466N/A -I../kwarn \
1466N/A $(DEFS)
1466N/A
550N/ACERRWARN += -_gcc=-Wno-unused-variable
550N/ACERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-implicit-function-declaration
LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \
-lmech_krb5
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS) $(GETDATE)
$(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS)
$(POST_PROCESS)
install: $(KRB5SBINPROG)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include $(SRC)/cmd/Makefile.targ
$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
generic.po:
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po