5f5870385cff47efd2f58e7892f251cf13761528Timo Sirainen#
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# CDDL HEADER START
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger#
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# The contents of this file are subject to the terms of the
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# Common Development and Distribution License (the "License").
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# You may not use this file except in compliance with the License.
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen#
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# or http://www.opensolaris.org/os/licensing.
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# See the License for the specific language governing permissions
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# and limitations under the License.
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen#
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1294c06fcf841b62b0e40de3388354107c7fc012Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
51821162b1df9a8a9398b8b64ceca410b9cc3092Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen#
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# CDDL HEADER END
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen#
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
290ad6b6b5fd61a61a4c8f7f6a6c18ff7ac344cfTimo Sirainen# Use is subject to license terms.
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen#
d2e9712e64846fa8d222b04cb5c380a65e417bcfTimo Sirainen
d2e9712e64846fa8d222b04cb5c380a65e417bcfTimo SirainenPROG= kdcmgr
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenKLPROG= klookup
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenOBJS= klookup.o
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenSSRCS= kdcmgr.sh
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenCSRCS= $(OBJS:.o=.c)
5e114f59ad9b9632bf7f3403d56bea17bd494e8eTimo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Siraineninclude ../../../Makefile.cmd
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenPOFILE= $(SSRCS:%.sh=%.po)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenCERRWARN += -_gcc=-Wno-implicit-function-declaration
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenCERRWARN += -_gcc=-Wno-uninitialized
d2e9712e64846fa8d222b04cb5c380a65e417bcfTimo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenLDLIBS += -lresolv -lnsl
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenCLOBBERFILES += $(KLPROG)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen.KEEP_STATE:
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainenall: $(PROG) $(KLPROG)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenKRB5LIBKLPROG= $(KLPROG:%=$(KRB5LIB)/%)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Siraineninstall: $(PROG) $(KRB5SBINPROG) $(KRB5LIBKLPROG)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen$(KLPROG): $(OBJS)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen $(POST_PROCESS)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainenlint:
3c296d819c54e21ce05c3d2eeeedc79be42ac593Timo Sirainen $(LINT.c) $(CSRCS) $(LDLIBS)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainenclean:
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen $(RM) $(OBJS)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Siraineninclude ../../../Makefile.targ
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen