11fceb383Ssemery# 21fceb383Ssemery# CDDL HEADER START 31fceb383Ssemery# 41fceb383Ssemery# The contents of this file are subject to the terms of the 51fceb383Ssemery# Common Development and Distribution License (the "License"). 61fceb383Ssemery# You may not use this file except in compliance with the License. 71fceb383Ssemery# 81fceb383Ssemery# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91fceb383Ssemery# or http://www.opensolaris.org/os/licensing. 101fceb383Ssemery# See the License for the specific language governing permissions 111fceb383Ssemery# and limitations under the License. 121fceb383Ssemery# 131fceb383Ssemery# When distributing Covered Code, include this CDDL HEADER in each 141fceb383Ssemery# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151fceb383Ssemery# If applicable, add the following below this CDDL HEADER, with the 161fceb383Ssemery# fields enclosed by brackets "[]" replaced with your own identifying 171fceb383Ssemery# information: Portions Copyright [yyyy] [name of copyright owner] 181fceb383Ssemery# 191fceb383Ssemery# CDDL HEADER END 201fceb383Ssemery# 211fceb383Ssemery# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 221fceb383Ssemery# Use is subject to license terms. 231fceb383Ssemery# 24*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 251fceb383Ssemery 261fceb383SsemeryPROG= kdcmgr 271fceb383SsemeryKLPROG= klookup 281fceb383Ssemery 291fceb383SsemeryOBJS= klookup.o 301fceb383Ssemery 311fceb383SsemerySSRCS= kdcmgr.sh 321fceb383SsemeryCSRCS= $(OBJS:.o=.c) 331fceb383Ssemery 341fceb383Ssemeryinclude ../../../Makefile.cmd 351fceb383Ssemery 361fceb383SsemeryPOFILE= $(SSRCS:%.sh=%.po) 371fceb383Ssemery 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 397014882cSRichard Lowe 40*5661bb76SJohn Levon# not linted 41*5661bb76SJohn LevonSMATCH=off 42*5661bb76SJohn Levon 4355c4b5faSsemeryLDLIBS += -lresolv -lnsl 441fceb383Ssemery 45b6805bf7SGordon RossCLOBBERFILES += $(KLPROG) 46b6805bf7SGordon Ross 471fceb383Ssemery.KEEP_STATE: 481fceb383Ssemery 491fceb383Ssemeryall: $(PROG) $(KLPROG) 501fceb383Ssemery 511fceb383SsemeryKRB5LIBKLPROG= $(KLPROG:%=$(KRB5LIB)/%) 521fceb383Ssemery 531fceb383Ssemeryinstall: $(PROG) $(KRB5SBINPROG) $(KRB5LIBKLPROG) 541fceb383Ssemery 551fceb383Ssemery$(KLPROG): $(OBJS) 561fceb383Ssemery $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 5755c4b5faSsemery $(POST_PROCESS) 581fceb383Ssemery 591fceb383Ssemeryclean: 60b6805bf7SGordon Ross $(RM) $(OBJS) 611fceb383Ssemery 621fceb383Ssemeryinclude ../../../Makefile.targ 63