xref: /titanic_52/usr/src/cmd/krb5/kadmin/kdcmgr/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
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#
241fceb383Ssemery
251fceb383SsemeryPROG=	kdcmgr
261fceb383SsemeryKLPROG=	klookup
271fceb383Ssemery
281fceb383SsemeryOBJS=	klookup.o
291fceb383Ssemery
301fceb383SsemerySSRCS=	kdcmgr.sh
311fceb383SsemeryCSRCS=	$(OBJS:.o=.c)
321fceb383Ssemery
331fceb383Ssemeryinclude ../../../Makefile.cmd
341fceb383Ssemery
351fceb383SsemeryPOFILE=		$(SSRCS:%.sh=%.po)
361fceb383Ssemery
377014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
387014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
397014882cSRichard Lowe
4055c4b5faSsemeryLDLIBS	+=	-lresolv -lnsl
411fceb383Ssemery
42*b6805bf7SGordon RossCLOBBERFILES +=	$(KLPROG)
43*b6805bf7SGordon Ross
441fceb383Ssemery.KEEP_STATE:
451fceb383Ssemery
461fceb383Ssemeryall: $(PROG) $(KLPROG)
471fceb383Ssemery
481fceb383SsemeryKRB5LIBKLPROG=	$(KLPROG:%=$(KRB5LIB)/%)
491fceb383Ssemery
501fceb383Ssemeryinstall: $(PROG) $(KRB5SBINPROG) $(KRB5LIBKLPROG)
511fceb383Ssemery
521fceb383Ssemery$(KLPROG):	$(OBJS)
531fceb383Ssemery	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
5455c4b5faSsemery	$(POST_PROCESS)
551fceb383Ssemery
561fceb383Ssemerylint:
571fceb383Ssemery	$(LINT.c) $(CSRCS) $(LDLIBS)
581fceb383Ssemery
591fceb383Ssemeryclean:
60*b6805bf7SGordon Ross	$(RM) $(OBJS)
611fceb383Ssemery
621fceb383Ssemeryinclude ../../../Makefile.targ
63