xref: /illumos-gate/usr/src/cmd/krb5/kadmin/kclient/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
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#
21c48f4690SShawn Emery# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# Makefile for Kerberos client-install utility.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
26bd211b85SsemeryPROG=		ksetpw \
27bd211b85Ssemery		kdyndns \
28c48f4690SShawn Emery		ksmb \
29c48f4690SShawn Emery		kconf
30bd211b85Ssemery
31bd211b85SsemerySHFILES=	kclient
32bd211b85SsemerySECFILES=	pam_krb5_first \
33bd211b85Ssemery		pam_krb5_only \
34bd211b85Ssemery		pam_krb5_optional
35*b6805bf7SGordon RossCLOBBERFILES +=	$(SHFILES)
36bd211b85Ssemery
37bd211b85SsemeryKRB5SBINSHFILES=$(SHFILES:%=$(KRB5SBIN)/%)
38bd211b85Ssemery
39bd211b85SsemeryUSRLIBSEC=	$(ROOT)/usr/lib/security
40bd211b85SsemerySEC=		$(SECFILES:%=$(USRLIBSEC)/%)
41bd211b85Ssemery$(SEC):=	FILEMODE = $(LIBFILEMODE)
42bd211b85Ssemery
43bd211b85SsemeryKS_OBJS=	ksetpw.o
44bd211b85SsemeryKD_OBJS=	kdyndns.o
45bd211b85SsemeryKSMB_OBJS=	ksmb.o
46c48f4690SShawn EmeryKC_OBJS=	kconf.o
47bd211b85Ssemery
48c48f4690SShawn EmeryOBJS=		$(KS_OBJS) $(KD_OBJS) $(KSMB_OBJS) $(KC_OBJS)
49bd211b85Ssemery
50bd211b85SsemerySSRCS=	kclient.sh
51bd211b85SsemerySRCS=	$(OBJS:%.o=%.c)
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateinclude ../../../Makefile.cmd
54bd211b85Ssemeryinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
557c478bd9Sstevel@tonic-gate
56bd211b85SsemeryPOFILE=	$(SSRCS:%.sh=%.po)
577c478bd9Sstevel@tonic-gate
58bd211b85SsemeryCPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
59bd211b85Ssemery	-I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
60bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/include  \
61bd211b85Ssemery	-I$(SRC)/uts/common/gssapi/mechs/krb5/include
627c478bd9Sstevel@tonic-gate
637014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
647014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
657014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
667014882cSRichard Lowe
6736cb57a5Srieksetpw:=	LDFLAGS += $(KRUNPATH)
6836cb57a5Sriekdyndns:=	LDFLAGS += -R/usr/lib/smbsrv
6936cb57a5Srieksmb:=		LDFLAGS += -R/usr/lib/smbsrv
70c48f4690SShawn Emerykconf:=		LDFLAGS += $(KRUNPATH)
71bd211b85Ssemery
7236cb57a5SrieKS_LDLIBS =	$(LDLIBS) $(KMECHLIB)
7336cb57a5SrieKD_LDLIBS =	$(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmbns
7436cb57a5SrieKSMB_LDLIBS =	$(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmb
75c48f4690SShawn EmeryKC_LDLIBS =	$(LDLIBS) $(KMECHLIB)
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate.KEEP_STATE:
787c478bd9Sstevel@tonic-gate
79bd211b85Ssemeryall: $(PROG) $(SHFILES) $(SEC)
807c478bd9Sstevel@tonic-gate
81bd211b85Ssemeryinstall: all $(KRB5SBIN) $(KRB5SBINSHFILES) $(KRB5LIBSHFILES) $(KRB5LIBPROG)
82bd211b85Ssemery
83bd211b85Ssemerykdyndns:	$(KD_OBJS)
8436cb57a5Srie	$(LINK.c) $(KD_OBJS) -o $@ $(KD_LDLIBS)
85bd211b85Ssemery	$(POST_PROCESS)
86bd211b85Ssemery
87bd211b85Ssemeryksmb:		$(KSMB_OBJS)
8836cb57a5Srie	$(LINK.c) $(KSMB_OBJS) -o $@ $(KSMB_LDLIBS)
89bd211b85Ssemery	$(POST_PROCESS)
90bd211b85Ssemery
91bd211b85Ssemeryksetpw:		$(KS_OBJS)
9236cb57a5Srie	$(LINK.c) $(KS_OBJS) -o $@ $(KS_LDLIBS)
93bd211b85Ssemery	$(POST_PROCESS)
947c478bd9Sstevel@tonic-gate
95c48f4690SShawn Emerykconf:		$(KC_OBJS)
96c48f4690SShawn Emery	$(LINK.c) $(KC_OBJS) -o $@ $(KC_LDLIBS)
97c48f4690SShawn Emery	$(POST_PROCESS)
98c48f4690SShawn Emery
997c478bd9Sstevel@tonic-gate$(KRB5SBIN):
1007c478bd9Sstevel@tonic-gate	$(INS.dir)
1017c478bd9Sstevel@tonic-gate
102bd211b85Ssemery$(USRLIBSEC)/%: %
1037c478bd9Sstevel@tonic-gate	$(INS.file)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateclean:
106*b6805bf7SGordon Ross	$(RM) $(OBJS)
107bd211b85Ssemery
108bd211b85Ssemerylint:	lint_SRCS
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ
111