dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / krb5 / kinit / Makefile
blob5f48defa3961e151655c38cd1acb90d21f86745d
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
6 PROG= kinit
8 OBJS = kinit.o
9 SRCS = kinit.c
11 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
13 include ../../Makefile.cmd
14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16 CERRWARN += -Wno-implicit-function-declaration
17 CERRWARN += -Wno-unused-function
18 CERRWARN += -Wno-parentheses
20 POFILE = kinit.po
21 POFILES = generic.po
23 DEFS = -DHAVE_PWD_H
25 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
26 -I$(SRC)/lib/gss_mechs/mech_krb5 \
27 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
28 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
29 $(DEFS)
31 LDFLAGS += $(KRUNPATH)
32 LDLIBS += $(KMECHLIB)
34 .KEEP_STATE:
36 all: $(PROG)
38 $(PROG): $(OBJS)
39 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40 $(POST_PROCESS)
42 install: $(KRB5PROG)
44 clean:
45 $(RM) $(OBJS)
48 include ../../Makefile.targ
50 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
51 $(RM) $@
52 $(CAT) $(POFILES) > $@
54 generic.po:
55 $(RM) messages.po
56 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
57 $(SED) "/^domain/d" messages.po > $@
58 $(RM) messages.po