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# 2267e3a03eSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2354925bf6Swillf# Use is subject to license terms. 2454925bf6Swillf# 2554925bf6Swillf 2654925bf6SwillfPROG= kdb5_ldap_util 2754925bf6Swillf 2854925bf6SwillfOBJS = \ 2954925bf6Swillf kdb5_ldap_list.o \ 3054925bf6Swillf kdb5_ldap_policy.o \ 3154925bf6Swillf kdb5_ldap_realm.o \ 3254925bf6Swillf kdb5_ldap_services.o \ 3354925bf6Swillf kdb5_ldap_util.o 3454925bf6Swillf 3554925bf6SwillfGETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o 3654925bf6Swillf 3754925bf6SwillfSRCS = $(OBJS:.o=.c) 3854925bf6Swillf 3954925bf6SwillfDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 4054925bf6Swillf 4154925bf6Swillfinclude $(SRC)/cmd/Makefile.cmd 4254925bf6Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 4354925bf6Swillf 4454925bf6SwillfTEXT_DOMAIN = SUNW_OST_OSCMD 4554925bf6SwillfPOFILE = kdb5_ldap_util.po 4654925bf6SwillfPOFILES = generic.po 4754925bf6Swillf 4854925bf6SwillfDEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2 4954925bf6Swillf 5054925bf6SwillfCPPFLAGS += \ 5154925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5 \ 5254925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 5354925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 5454925bf6Swillf -I$(SRC)/lib/krb5 \ 5554925bf6Swillf -I$(SRC)/lib/krb5/kdb \ 5654925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \ 5754925bf6Swillf -I$(SRC)/cmd/krb5/kadmin/cli \ 5854925bf6Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 5954925bf6Swillf -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \ 6054925bf6Swillf -I../kwarn \ 6154925bf6Swillf $(DEFS) 6254925bf6Swillf 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 67*7014882cSRichard Lowe 6867e3a03eSrieLDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 6954925bf6SwillfLDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \ 7054925bf6Swillf -lmech_krb5 7154925bf6Swillf 7254925bf6Swillf.KEEP_STATE: 7354925bf6Swillf 7454925bf6Swillfall: $(PROG) 7554925bf6Swillf 7654925bf6Swillf$(PROG): $(OBJS) $(GETDATE) 7754925bf6Swillf $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS) 7854925bf6Swillf $(POST_PROCESS) 7954925bf6Swillf 8054925bf6Swillfinstall: $(KRB5SBINPROG) 8154925bf6Swillf 8254925bf6Swillfclean: 8354925bf6Swillf $(RM) $(OBJS) 8454925bf6Swillf 8554925bf6Swillflint: lint_SRCS 8654925bf6Swillf 8754925bf6Swillfinclude $(SRC)/cmd/Makefile.targ 8854925bf6Swillf 8954925bf6Swillf$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 9054925bf6Swillf $(RM) $@ 9154925bf6Swillf $(CAT) $(POFILES) > $@ 9254925bf6Swillf 9354925bf6Swillfgeneric.po: 9454925bf6Swillf $(RM) messages.po 9554925bf6Swillf $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 9654925bf6Swillf $(SED) "/^domain/d" messages.po > $@ 9754925bf6Swillf $(RM) messages.po 98