1*54925bf6Swillf# 2*54925bf6Swillf# CDDL HEADER START 3*54925bf6Swillf# 4*54925bf6Swillf# The contents of this file are subject to the terms of the 5*54925bf6Swillf# Common Development and Distribution License (the "License"). 6*54925bf6Swillf# You may not use this file except in compliance with the License. 7*54925bf6Swillf# 8*54925bf6Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*54925bf6Swillf# or http://www.opensolaris.org/os/licensing. 10*54925bf6Swillf# See the License for the specific language governing permissions 11*54925bf6Swillf# and limitations under the License. 12*54925bf6Swillf# 13*54925bf6Swillf# When distributing Covered Code, include this CDDL HEADER in each 14*54925bf6Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*54925bf6Swillf# If applicable, add the following below this CDDL HEADER, with the 16*54925bf6Swillf# fields enclosed by brackets "[]" replaced with your own identifying 17*54925bf6Swillf# information: Portions Copyright [yyyy] [name of copyright owner] 18*54925bf6Swillf# 19*54925bf6Swillf# CDDL HEADER END 20*54925bf6Swillf# 21*54925bf6Swillf# 22*54925bf6Swillf# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*54925bf6Swillf# Use is subject to license terms. 24*54925bf6Swillf# 25*54925bf6Swillf# ident "%Z%%M% %I% %E% SMI" 26*54925bf6Swillf# 27*54925bf6Swillf 28*54925bf6SwillfPROG= kdb5_ldap_util 29*54925bf6Swillf 30*54925bf6SwillfOBJS = \ 31*54925bf6Swillf kdb5_ldap_list.o \ 32*54925bf6Swillf kdb5_ldap_policy.o \ 33*54925bf6Swillf kdb5_ldap_realm.o \ 34*54925bf6Swillf kdb5_ldap_services.o \ 35*54925bf6Swillf kdb5_ldap_util.o 36*54925bf6Swillf 37*54925bf6SwillfGETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o 38*54925bf6Swillf 39*54925bf6SwillfSRCS = $(OBJS:.o=.c) 40*54925bf6Swillf 41*54925bf6SwillfDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 42*54925bf6Swillf 43*54925bf6Swillfinclude $(SRC)/cmd/Makefile.cmd 44*54925bf6Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 45*54925bf6Swillf 46*54925bf6SwillfTEXT_DOMAIN = SUNW_OST_OSCMD 47*54925bf6SwillfPOFILE = kdb5_ldap_util.po 48*54925bf6SwillfPOFILES = generic.po 49*54925bf6Swillf 50*54925bf6SwillfDEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2 51*54925bf6Swillf 52*54925bf6SwillfCPPFLAGS += \ 53*54925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5 \ 54*54925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 55*54925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 56*54925bf6Swillf -I$(SRC)/lib/krb5 \ 57*54925bf6Swillf -I$(SRC)/lib/krb5/kdb \ 58*54925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \ 59*54925bf6Swillf -I$(SRC)/cmd/krb5/kadmin/cli \ 60*54925bf6Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 61*54925bf6Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \ 62*54925bf6Swillf -I../kwarn \ 63*54925bf6Swillf $(DEFS) 64*54925bf6Swillf 65*54925bf6SwillfLDFLAGS += $(KRUNPATH) 66*54925bf6SwillfLDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \ 67*54925bf6Swillf -lmech_krb5 68*54925bf6Swillf 69*54925bf6Swillf.KEEP_STATE: 70*54925bf6Swillf 71*54925bf6Swillfall: $(PROG) 72*54925bf6Swillf 73*54925bf6Swillf$(PROG): $(OBJS) $(GETDATE) 74*54925bf6Swillf $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS) 75*54925bf6Swillf $(POST_PROCESS) 76*54925bf6Swillf 77*54925bf6Swillfinstall: $(KRB5SBINPROG) 78*54925bf6Swillf 79*54925bf6Swillfclean: 80*54925bf6Swillf $(RM) $(OBJS) 81*54925bf6Swillf 82*54925bf6Swillflint: lint_SRCS 83*54925bf6Swillf 84*54925bf6Swillfinclude $(SRC)/cmd/Makefile.targ 85*54925bf6Swillf 86*54925bf6Swillf$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 87*54925bf6Swillf $(RM) $@ 88*54925bf6Swillf $(CAT) $(POFILES) > $@ 89*54925bf6Swillf 90*54925bf6Swillfgeneric.po: 91*54925bf6Swillf $(RM) messages.po 92*54925bf6Swillf $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 93*54925bf6Swillf $(SED) "/^domain/d" messages.po > $@ 94*54925bf6Swillf $(RM) messages.po 95