dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / krb5 / kadmin / kclient / Makefile
blob2f3b6d8f3ff7c7fd4e6d21e20e1123ecaa48516d
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Makefile for Kerberos client-install utility.
26 PROG= ksetpw \
27 kdyndns \
28 ksmb \
29 kconf
31 SHFILES= kclient
32 SECFILES= pam_krb5_first \
33 pam_krb5_only \
34 pam_krb5_optional
35 CLOBBERFILES += $(SHFILES)
37 KRB5SBINSHFILES=$(SHFILES:%=$(KRB5SBIN)/%)
39 USRLIBSEC= $(ROOT)/usr/lib/security
40 SEC= $(SECFILES:%=$(USRLIBSEC)/%)
41 $(SEC):= FILEMODE = $(LIBFILEMODE)
43 KS_OBJS= ksetpw.o
44 KD_OBJS= kdyndns.o
45 KSMB_OBJS= ksmb.o
46 KC_OBJS= kconf.o
48 OBJS= $(KS_OBJS) $(KD_OBJS) $(KSMB_OBJS) $(KC_OBJS)
50 SSRCS= kclient.sh
51 SRCS= $(OBJS:%.o=%.c)
53 include ../../../Makefile.cmd
54 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
56 POFILE= $(SSRCS:%.sh=%.po)
58 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
59 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
60 -I$(SRC)/uts/common/gssapi/include \
61 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
63 CERRWARN += -Wno-uninitialized
64 CERRWARN += -Wno-parentheses
65 CERRWARN += -Wno-unused-function
67 ksetpw:= LDFLAGS += $(KRUNPATH)
68 kdyndns:= LDFLAGS += -R/usr/lib/smbsrv
69 ksmb:= LDFLAGS += -R/usr/lib/smbsrv
70 kconf:= LDFLAGS += $(KRUNPATH)
72 KS_LDLIBS = $(LDLIBS) $(KMECHLIB)
73 KD_LDLIBS = $(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmbns
74 KSMB_LDLIBS = $(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmb
75 KC_LDLIBS = $(LDLIBS) $(KMECHLIB)
77 .KEEP_STATE:
79 all: $(PROG) $(SHFILES) $(SEC)
81 install: all $(KRB5SBIN) $(KRB5SBINSHFILES) $(KRB5LIBSHFILES) $(KRB5LIBPROG)
83 kdyndns: $(KD_OBJS)
84 $(LINK.c) $(KD_OBJS) -o $@ $(KD_LDLIBS)
85 $(POST_PROCESS)
87 ksmb: $(KSMB_OBJS)
88 $(LINK.c) $(KSMB_OBJS) -o $@ $(KSMB_LDLIBS)
89 $(POST_PROCESS)
91 ksetpw: $(KS_OBJS)
92 $(LINK.c) $(KS_OBJS) -o $@ $(KS_LDLIBS)
93 $(POST_PROCESS)
95 kconf: $(KC_OBJS)
96 $(LINK.c) $(KC_OBJS) -o $@ $(KC_LDLIBS)
97 $(POST_PROCESS)
99 $(KRB5SBIN):
100 $(INS.dir)
102 $(USRLIBSEC)/%: %
103 $(INS.file)
105 clean:
106 $(RM) $(OBJS)
109 include ../../../Makefile.targ