xref: /illumos-gate/usr/src/cmd/krb5/klist/Makefile (revision 275c9da86e89f8abf71135cf63d9fc23671b2e60)
1#
2# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7
8PROG= klist
9
10OUTPUT_OPTION = -I.
11
12OBJS	= klist.o
13SRCS	= $(OBJS:.o=.c)
14
15include ../../Makefile.cmd
16include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
17
18TEXT_DOMAIN = SUNW_OST_OSCMD
19POFILE = klist.po
20POFILES = generic.po
21
22DEFS = -DHAVE_GETIPNODEBYADDR=1 -DHAVE_INET_NTOP=1
23
24CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
25		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
26		$(DEFS)
27
28LDFLAGS += $(KRUNPATH)
29LDLIBS += $(KMECHLIB) -lsocket
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