14960Swillf# 24960Swillf# CDDL HEADER START 34960Swillf# 44960Swillf# The contents of this file are subject to the terms of the 54960Swillf# Common Development and Distribution License (the "License"). 64960Swillf# You may not use this file except in compliance with the License. 74960Swillf# 84960Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94960Swillf# or http://www.opensolaris.org/os/licensing. 104960Swillf# See the License for the specific language governing permissions 114960Swillf# and limitations under the License. 124960Swillf# 134960Swillf# When distributing Covered Code, include this CDDL HEADER in each 144960Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154960Swillf# If applicable, add the following below this CDDL HEADER, with the 164960Swillf# fields enclosed by brackets "[]" replaced with your own identifying 174960Swillf# information: Portions Copyright [yyyy] [name of copyright owner] 184960Swillf# 194960Swillf# CDDL HEADER END 204960Swillf# 214960Swillf# 22*6543Srie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 234960Swillf# Use is subject to license terms. 244960Swillf# 254960Swillf# ident "%Z%%M% %I% %E% SMI" 264960Swillf# 274960Swillf 284960SwillfPROG= kdb5_ldap_util 294960Swillf 304960SwillfOBJS = \ 314960Swillf kdb5_ldap_list.o \ 324960Swillf kdb5_ldap_policy.o \ 334960Swillf kdb5_ldap_realm.o \ 344960Swillf kdb5_ldap_services.o \ 354960Swillf kdb5_ldap_util.o 364960Swillf 374960SwillfGETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o 384960Swillf 394960SwillfSRCS = $(OBJS:.o=.c) 404960Swillf 414960SwillfDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 424960Swillf 434960Swillfinclude $(SRC)/cmd/Makefile.cmd 444960Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 454960Swillf 464960SwillfTEXT_DOMAIN = SUNW_OST_OSCMD 474960SwillfPOFILE = kdb5_ldap_util.po 484960SwillfPOFILES = generic.po 494960Swillf 504960SwillfDEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2 514960Swillf 524960SwillfCPPFLAGS += \ 534960Swillf -I$(SRC)/lib/gss_mechs/mech_krb5 \ 544960Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 554960Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 564960Swillf -I$(SRC)/lib/krb5 \ 574960Swillf -I$(SRC)/lib/krb5/kdb \ 584960Swillf -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \ 594960Swillf -I$(SRC)/cmd/krb5/kadmin/cli \ 604960Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 614960Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \ 624960Swillf -I../kwarn \ 634960Swillf $(DEFS) 644960Swillf 65*6543SrieLDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 664960SwillfLDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \ 674960Swillf -lmech_krb5 684960Swillf 694960Swillf.KEEP_STATE: 704960Swillf 714960Swillfall: $(PROG) 724960Swillf 734960Swillf$(PROG): $(OBJS) $(GETDATE) 744960Swillf $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS) 754960Swillf $(POST_PROCESS) 764960Swillf 774960Swillfinstall: $(KRB5SBINPROG) 784960Swillf 794960Swillfclean: 804960Swillf $(RM) $(OBJS) 814960Swillf 824960Swillflint: lint_SRCS 834960Swillf 844960Swillfinclude $(SRC)/cmd/Makefile.targ 854960Swillf 864960Swillf$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 874960Swillf $(RM) $@ 884960Swillf $(CAT) $(POFILES) > $@ 894960Swillf 904960Swillfgeneric.po: 914960Swillf $(RM) messages.po 924960Swillf $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 934960Swillf $(SED) "/^domain/d" messages.po > $@ 944960Swillf $(RM) messages.po 95