xref: /illumos-gate/usr/src/cmd/krb5/klist/Makefile (revision 6edddafdeaa7f4e95b88c106b4825057c934d52c)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# Copyright (c) 2018, Joyent, Inc.
6
7PROG= klist
8
9OUTPUT_OPTION = -I.
10
11OBJS	= klist.o
12SRCS	= $(OBJS:.o=.c)
13
14include ../../Makefile.cmd
15include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16
17TEXT_DOMAIN = SUNW_OST_OSCMD
18POFILE = klist.po
19POFILES = generic.po
20
21DEFS = -DHAVE_GETIPNODEBYADDR=1 -DHAVE_INET_NTOP=1
22
23CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
24		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
25		$(DEFS)
26
27LDFLAGS += $(KRUNPATH)
28LDLIBS += $(KMECHLIB)
29CERRWARN += -_gcc=-Wno-unused-function
30
31# not linted
32SMATCH=off
33
34$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
35
36.KEEP_STATE:
37
38all: $(PROG)
39
40$(PROG):       $(OBJS)
41	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42	$(POST_PROCESS)
43
44install: $(KRB5PROG)
45
46install_h:
47
48clean:
49	$(RM) $(OBJS)
50
51lint: lint_SRCS
52
53include ../../Makefile.targ
54
55$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
56	$(RM) $@
57	$(CAT) $(POFILES) > $@
58
59generic.po:
60	$(RM) messages.po
61	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
62	$(SED) "/^domain/d" messages.po > $@
63	$(RM) messages.po
64