xref: /illumos-gate/usr/src/cmd/krb5/kadmin/kclient/Makefile (revision 36cb57a52da3a1f84927aadcedf362cd3939f2b9)
17c478bd9Sstevel@tonic-gate#
2bd211b85Ssemery# CDDL HEADER START
3bd211b85Ssemery#
4bd211b85Ssemery# The contents of this file are subject to the terms of the
5bd211b85Ssemery# Common Development and Distribution License (the "License").
6bd211b85Ssemery# You may not use this file except in compliance with the License.
7bd211b85Ssemery#
8bd211b85Ssemery# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9bd211b85Ssemery# or http://www.opensolaris.org/os/licensing.
10bd211b85Ssemery# See the License for the specific language governing permissions
11bd211b85Ssemery# and limitations under the License.
12bd211b85Ssemery#
13bd211b85Ssemery# When distributing Covered Code, include this CDDL HEADER in each
14bd211b85Ssemery# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15bd211b85Ssemery# If applicable, add the following below this CDDL HEADER, with the
16bd211b85Ssemery# fields enclosed by brackets "[]" replaced with your own identifying
17bd211b85Ssemery# information: Portions Copyright [yyyy] [name of copyright owner]
18bd211b85Ssemery#
19bd211b85Ssemery# CDDL HEADER END
20bd211b85Ssemery#
21bd211b85Ssemery# 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
29bd211b85SsemeryPROG=		ksetpw \
30bd211b85Ssemery		kdyndns \
31bd211b85Ssemery		ksmb
32bd211b85Ssemery
33bd211b85SsemerySHFILES=	kclient
34bd211b85SsemerySECFILES=	pam_krb5_first \
35bd211b85Ssemery		pam_krb5_only \
36bd211b85Ssemery		pam_krb5_optional
37bd211b85SsemeryCLOBBERFILES=	$(SHFILES)
38bd211b85Ssemery
39bd211b85SsemeryKRB5SBINSHFILES=$(SHFILES:%=$(KRB5SBIN)/%)
40bd211b85Ssemery
41bd211b85SsemeryUSRLIBSEC=	$(ROOT)/usr/lib/security
42bd211b85SsemerySEC=		$(SECFILES:%=$(USRLIBSEC)/%)
43bd211b85Ssemery$(SEC):=	FILEMODE = $(LIBFILEMODE)
44bd211b85Ssemery
45bd211b85SsemeryKS_OBJS=	ksetpw.o
46bd211b85SsemeryKD_OBJS=	kdyndns.o
47bd211b85SsemeryKSMB_OBJS=	ksmb.o
48bd211b85Ssemery
49bd211b85SsemeryOBJS=		$(KS_OBJS) $(KD_OBJS) $(KSMB_OBJS)
50bd211b85Ssemery
51bd211b85SsemerySSRCS=	kclient.sh
52bd211b85SsemerySRCS=	$(OBJS:%.o=%.c)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd
55bd211b85Ssemeryinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
567c478bd9Sstevel@tonic-gate
57bd211b85SsemeryPOFILE=	$(SSRCS:%.sh=%.po)
587c478bd9Sstevel@tonic-gate
59bd211b85SsemeryCPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
60bd211b85Ssemery	-I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
61bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/include  \
62bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/mechs/krb5/include
637c478bd9Sstevel@tonic-gate
64*36cb57a5Srieksetpw:=	LDFLAGS += $(KRUNPATH)
65*36cb57a5Sriekdyndns:=	LDFLAGS += -R/usr/lib/smbsrv
66*36cb57a5Srieksmb:=		LDFLAGS += -R/usr/lib/smbsrv
67bd211b85Ssemery
68*36cb57a5SrieKS_LDLIBS =	$(LDLIBS) $(KMECHLIB)
69*36cb57a5SrieKD_LDLIBS =	$(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmbns
70*36cb57a5SrieKSMB_LDLIBS =	$(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmb
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate.KEEP_STATE:
737c478bd9Sstevel@tonic-gate
74bd211b85Ssemeryall: $(PROG) $(SHFILES) $(SEC)
757c478bd9Sstevel@tonic-gate
76bd211b85Ssemeryinstall: all $(KRB5SBIN) $(KRB5SBINSHFILES) $(KRB5LIBSHFILES) $(KRB5LIBPROG)
77bd211b85Ssemery
78bd211b85Ssemerykdyndns:	$(KD_OBJS)
79*36cb57a5Srie	$(LINK.c) $(KD_OBJS) -o $@ $(KD_LDLIBS)
80bd211b85Ssemery	$(POST_PROCESS)
81bd211b85Ssemery
82bd211b85Ssemeryksmb:		$(KSMB_OBJS)
83*36cb57a5Srie	$(LINK.c) $(KSMB_OBJS) -o $@ $(KSMB_LDLIBS)
84bd211b85Ssemery	$(POST_PROCESS)
85bd211b85Ssemery
86bd211b85Ssemeryksetpw:		$(KS_OBJS)
87*36cb57a5Srie	$(LINK.c) $(KS_OBJS) -o $@ $(KS_LDLIBS)
88bd211b85Ssemery	$(POST_PROCESS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate$(KRB5SBIN):
917c478bd9Sstevel@tonic-gate	$(INS.dir)
927c478bd9Sstevel@tonic-gate
93bd211b85Ssemery$(USRLIBSEC)/%: %
947c478bd9Sstevel@tonic-gate	$(INS.file)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gateclean:
97bd211b85Ssemery	$(RM) $(PROG) $(SHFILES)
98bd211b85Ssemery
99bd211b85Ssemerylint:	lint_SRCS
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ
102