xref: /illumos-gate/usr/src/cmd/krb5/kadmin/kclient/Makefile (revision bd211b8556ef6b18ebf137419bd5555d65271664)
17c478bd9Sstevel@tonic-gate#
2*bd211b85Ssemery# CDDL HEADER START
3*bd211b85Ssemery#
4*bd211b85Ssemery# The contents of this file are subject to the terms of the
5*bd211b85Ssemery# Common Development and Distribution License (the "License").
6*bd211b85Ssemery# You may not use this file except in compliance with the License.
7*bd211b85Ssemery#
8*bd211b85Ssemery# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*bd211b85Ssemery# or http://www.opensolaris.org/os/licensing.
10*bd211b85Ssemery# See the License for the specific language governing permissions
11*bd211b85Ssemery# and limitations under the License.
12*bd211b85Ssemery#
13*bd211b85Ssemery# When distributing Covered Code, include this CDDL HEADER in each
14*bd211b85Ssemery# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*bd211b85Ssemery# If applicable, add the following below this CDDL HEADER, with the
16*bd211b85Ssemery# fields enclosed by brackets "[]" replaced with your own identifying
17*bd211b85Ssemery# information: Portions Copyright [yyyy] [name of copyright owner]
18*bd211b85Ssemery#
19*bd211b85Ssemery# CDDL HEADER END
20*bd211b85Ssemery#
21*bd211b85Ssemery# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# Makefile for Kerberos client-install utility.
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
29*bd211b85SsemeryPROG=		ksetpw \
30*bd211b85Ssemery		kdyndns \
31*bd211b85Ssemery		ksmb
32*bd211b85Ssemery
33*bd211b85SsemerySHFILES=	kclient
34*bd211b85SsemerySECFILES=	pam_krb5_first \
35*bd211b85Ssemery		pam_krb5_only \
36*bd211b85Ssemery		pam_krb5_optional
37*bd211b85SsemeryCLOBBERFILES=	$(SHFILES)
38*bd211b85Ssemery
39*bd211b85SsemeryKRB5SBINSHFILES=$(SHFILES:%=$(KRB5SBIN)/%)
40*bd211b85Ssemery
41*bd211b85SsemeryUSRLIBSEC=	$(ROOT)/usr/lib/security
42*bd211b85SsemerySEC=		$(SECFILES:%=$(USRLIBSEC)/%)
43*bd211b85Ssemery$(SEC):=	FILEMODE = $(LIBFILEMODE)
44*bd211b85Ssemery
45*bd211b85SsemeryKS_OBJS=	ksetpw.o
46*bd211b85SsemeryKD_OBJS=	kdyndns.o
47*bd211b85SsemeryKSMB_OBJS=	ksmb.o
48*bd211b85Ssemery
49*bd211b85SsemeryOBJS=		$(KS_OBJS) $(KD_OBJS) $(KSMB_OBJS)
50*bd211b85Ssemery
51*bd211b85SsemerySSRCS=	kclient.sh
52*bd211b85SsemerySRCS=	$(OBJS:%.o=%.c)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd
55*bd211b85Ssemeryinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
567c478bd9Sstevel@tonic-gate
57*bd211b85SsemeryPOFILE=	$(SSRCS:%.sh=%.po)
587c478bd9Sstevel@tonic-gate
59*bd211b85SsemeryCPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
60*bd211b85Ssemery	-I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
61*bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/include  \
62*bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/mechs/krb5/include
637c478bd9Sstevel@tonic-gate
64*bd211b85SsemeryLDFLAGS += $(KRUNPATH)
65*bd211b85Ssemery
66*bd211b85SsemeryKSLDLIBS=	$(LDLIBS) $(KMECHLIB)
67*bd211b85SsemeryKDLDLIBS=	$(LDLIBS) -L$(ROOT)/usr/lib/smbsrv
68*bd211b85Ssemery
69*bd211b85SsemeryDYNFLAGS +=	-R/usr/lib/smbsrv
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate.KEEP_STATE:
727c478bd9Sstevel@tonic-gate
73*bd211b85Ssemeryall: $(PROG) $(SHFILES) $(SEC)
747c478bd9Sstevel@tonic-gate
75*bd211b85Ssemeryinstall: all $(KRB5SBIN) $(KRB5SBINSHFILES) $(KRB5LIBSHFILES) $(KRB5LIBPROG)
76*bd211b85Ssemery
77*bd211b85Ssemerykdyndns:	$(KD_OBJS)
78*bd211b85Ssemery	$(LINK.c) $(KD_OBJS) -o $@ $(DYNFLAGS) $(KDLDLIBS) -lsmbns
79*bd211b85Ssemery	$(POST_PROCESS)
80*bd211b85Ssemery
81*bd211b85Ssemeryksmb:		$(KSMB_OBJS)
82*bd211b85Ssemery	$(LINK.c) $(KSMB_OBJS) -o $@ $(DYNFLAGS) $(KDLDLIBS) -lsmb
83*bd211b85Ssemery	$(POST_PROCESS)
84*bd211b85Ssemery
85*bd211b85Ssemeryksetpw:		$(KS_OBJS)
86*bd211b85Ssemery	$(LINK.c) $(KS_OBJS) -o $@ $(KSLDLIBS)
87*bd211b85Ssemery	$(POST_PROCESS)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate$(KRB5SBIN):
907c478bd9Sstevel@tonic-gate	$(INS.dir)
917c478bd9Sstevel@tonic-gate
92*bd211b85Ssemery$(USRLIBSEC)/%: %
937c478bd9Sstevel@tonic-gate	$(INS.file)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateclean:
96*bd211b85Ssemery	$(RM) $(PROG) $(SHFILES)
97*bd211b85Ssemery
98*bd211b85Ssemerylint:	lint_SRCS
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ
101