xref: /titanic_44/usr/src/cmd/krb5/klist/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5#
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$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
32
33.KEEP_STATE:
34
35all: $(PROG)
36
37$(PROG):       $(OBJS)
38	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
39	$(POST_PROCESS)
40
41install: $(KRB5PROG)
42
43install_h:
44
45clean:
46	$(RM) $(OBJS)
47
48lint: lint_SRCS
49
50include ../../Makefile.targ
51
52$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
53	$(RM) $@
54	$(CAT) $(POFILES) > $@
55
56generic.po:
57	$(RM) messages.po
58	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
59	$(SED) "/^domain/d" messages.po > $@
60	$(RM) messages.po
61