dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / krb5 / kadmin / kpasswd / Makefile
blob0c77dcaf170abe0159ee0f8ff36284690abf8a5c
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 PROG= kpasswd
8 OBJS = tty_kpasswd.o kpasswd.o
9 SRCS = $(OBJS:.o=.c)
11 CLOBBERFILES += $(TESTPROG)
13 include ../../../Makefile.cmd
14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16 POFILE = $(PROG).po
17 POFILES = generic.po
20 # Override $ROOTLIB
22 KRB5LIBDIR= $(ROOT)$(KERBLIBDIR)
24 CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
25 -I$(SRC)/uts/common/gssapi/include/ \
26 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
27 -I$(SRC)/lib/krb5 \
28 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
29 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
30 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
32 COPTFLAG += #-I$(KINCDIR)
34 CERRWARN += -Wno-parentheses
35 CERRWARN += -Wno-unused-variable
36 CERRWARN += -Wno-unused-function
38 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
39 LDLIBS += -L $(KRB5LIBDIR)
40 LDLIBS += $(KMECHLIB) $(KCLNTLIB)
42 .KEEP_STATE:
44 all: $(PROG)
46 $(PROG): $(OBJS)
47 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
48 $(POST_PROCESS)
50 install: $(KRB5PROG)
52 clean:
53 $(RM) $(OBJS)
56 include ../../../Makefile.targ
58 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
59 $(RM) $@
60 $(CAT) $(POFILES) > $@
61 $(RM) generic.po
63 generic.po:
64 $(RM) messages.po
65 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
66 $(SED) "/^domain/d" messages.po > $@
67 $(RM) messages.po