Makefile revision 2707a226168717ec0ca29abd7fef59989493d3d4
9234d92d4e274791eff42cc4ea5766ed7a281b17Mark Andrews#
9234d92d4e274791eff42cc4ea5766ed7a281b17Mark Andrews# CDDL HEADER START
9234d92d4e274791eff42cc4ea5766ed7a281b17Mark Andrews#
0cf9ce19cc05a60f85ec610106a983fe806ebb77Andreas Gustafsson# The contents of this file are subject to the terms of the
0cf9ce19cc05a60f85ec610106a983fe806ebb77Andreas Gustafsson# Common Development and Distribution License (the "License").
0cf9ce19cc05a60f85ec610106a983fe806ebb77Andreas Gustafsson# You may not use this file except in compliance with the License.
0cf9ce19cc05a60f85ec610106a983fe806ebb77Andreas Gustafsson#
42f61e5c46d4824918385e7279c1b71d8ada8e8dAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2ba574f329c14376d26d7c0f22c89d7a978a2625Mark Andrews# or http://www.opensolaris.org/os/licensing.
2ba574f329c14376d26d7c0f22c89d7a978a2625Mark Andrews# See the License for the specific language governing permissions
3c3fe072252aecffae43e6349125663c315b092dAndreas Gustafsson# and limitations under the License.
3c3fe072252aecffae43e6349125663c315b092dAndreas Gustafsson#
3c3fe072252aecffae43e6349125663c315b092dAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
3c3fe072252aecffae43e6349125663c315b092dAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
64ea5fd972c9946a3fe56cbc0bf897266d3f8747Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
64ea5fd972c9946a3fe56cbc0bf897266d3f8747Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
05a4a299b599195ca6ede9395b245956a8c3a790Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
3ad07fa335d40330cd1859da42e67f2457443990Andreas Gustafsson#
3ad07fa335d40330cd1859da42e67f2457443990Andreas Gustafsson# CDDL HEADER END
3ad07fa335d40330cd1859da42e67f2457443990Andreas Gustafsson#
1094dec52a86e57df53f6167d86de94360a7a382Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1094dec52a86e57df53f6167d86de94360a7a382Mark Andrews# Use is subject to license terms.
64ea5fd972c9946a3fe56cbc0bf897266d3f8747Andreas Gustafsson#
1094dec52a86e57df53f6167d86de94360a7a382Mark Andrews# ident "%Z%%M% %I% %E% SMI"
fa2fb620c7c0a907b220c257007d8fb6d38bb3a4Andreas Gustafsson#
5419c0c2d0b77682021084c69f2a5c5e2f9a5525Andreas Gustafsson# Makefile for Kerberos server-install utility.
fa2fb620c7c0a907b220c257007d8fb6d38bb3a4Andreas Gustafsson#
fa2fb620c7c0a907b220c257007d8fb6d38bb3a4Andreas Gustafsson
fa2fb620c7c0a907b220c257007d8fb6d38bb3a4Andreas GustafssonPROG= kdcmgr
62a3dbe63e833f2eaf613393399ea4667d8de28dAndreas GustafssonKLPROG= klookup
62a3dbe63e833f2eaf613393399ea4667d8de28dAndreas Gustafsson
62a3dbe63e833f2eaf613393399ea4667d8de28dAndreas GustafssonOBJS= klookup.o
62a3dbe63e833f2eaf613393399ea4667d8de28dAndreas Gustafsson
62a3dbe63e833f2eaf613393399ea4667d8de28dAndreas GustafssonSSRCS= kdcmgr.sh
248732d66fffb557e84264c2bb2fb43ac766163fAndreas GustafssonCSRCS= $(OBJS:.o=.c)
9bdb01e6c382e897572791b12190472955994d87Mark Andrews
9bdb01e6c382e897572791b12190472955994d87Mark Andrewsinclude ../../../Makefile.cmd
e69b9ffb0f8b4d1117a682908c9143ebe3efcd6bAndreas Gustafsson
e69b9ffb0f8b4d1117a682908c9143ebe3efcd6bAndreas GustafssonPOFILE= $(SSRCS:%.sh=%.po)
e69b9ffb0f8b4d1117a682908c9143ebe3efcd6bAndreas Gustafsson
417872b98aec720d587a9ef0197e25e78a2b7ee9Mark AndrewsLDLIBS += -lresolv -lnsl
417872b98aec720d587a9ef0197e25e78a2b7ee9Mark Andrews
5419c0c2d0b77682021084c69f2a5c5e2f9a5525Andreas Gustafsson.KEEP_STATE:
a77ad145d0109081c5da6ac40a2303369db89735Andreas Gustafsson
8ba4e82f5358815fd94f34fde408ffd047ba3430Andreas Gustafssonall: $(PROG) $(KLPROG)
8ba4e82f5358815fd94f34fde408ffd047ba3430Andreas Gustafsson
61d5bfc06be978ea962b1c64309894ac80351771Mark AndrewsKRB5LIBKLPROG= $(KLPROG:%=$(KRB5LIB)/%)
ada9b8ab20b81716c7ff1f4f3365929b2f7c8ff8Mark Andrews
ada9b8ab20b81716c7ff1f4f3365929b2f7c8ff8Mark Andrewsinstall: $(PROG) $(KRB5SBINPROG) $(KRB5LIBKLPROG)
ada9b8ab20b81716c7ff1f4f3365929b2f7c8ff8Mark Andrews
3c9b2e62502460c34c2e0ceba1a5d138b3a13cc1Andreas Gustafsson$(KLPROG): $(OBJS)
3c9b2e62502460c34c2e0ceba1a5d138b3a13cc1Andreas Gustafsson $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
3c9b2e62502460c34c2e0ceba1a5d138b3a13cc1Andreas Gustafsson $(POST_PROCESS)
1beaa9e45738ad18cb7cae55aea95a1b16a14f94Andreas Gustafsson
bb60abb44549428414cd55a022f2b8cc4488f7adAndreas Gustafssonlint:
bb60abb44549428414cd55a022f2b8cc4488f7adAndreas Gustafsson $(LINT.c) $(CSRCS) $(LDLIBS)
bb60abb44549428414cd55a022f2b8cc4488f7adAndreas Gustafsson
bb60abb44549428414cd55a022f2b8cc4488f7adAndreas Gustafssonclean:
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafsson $(RM) $(PROG) $(KLPROG)
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafsson
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafssoninclude ../../../Makefile.targ
1beaa9e45738ad18cb7cae55aea95a1b16a14f94Andreas Gustafsson