xref: /illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/Makefile (revision 8a2b682e57a046b828f37bcde1776f131ef4629f)
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= ktutil
8
9OBJS	= ktutil.o ktutil_ct.o ktutil_funcs.o
10SRCS	= $(OBJS:.o=.c)
11
12CLOBBERFILES += $(TESTPROG)
13
14include ../../../Makefile.cmd
15include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16
17POFILE = $(PROG).po
18POFILES = generic.po
19
20CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
21	-I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
22	-I$(SRC)/uts/common/gssapi/include  \
23	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
24	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
25	-DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
26	 -DHAVE_TIMEZONE
27COPTFLAG += $(XESS) #-I$(KINCDIR)
28
29CERRWARN += -_gcc=-Wno-implicit-function-declaration
30CERRWARN += -_gcc=-Wno-unused-function
31
32# not linted
33SMATCH=off
34
35LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
36LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so
37
38.KEEP_STATE:
39
40all: $(PROG)
41
42ktutil:	$(OBJS)
43	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
44	$(POST_PROCESS)
45
46install: $(KRB5PROG)
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	$(RM) generic.po
59
60generic.po:
61	$(RM) messages.po
62	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
63	$(SED) "/^domain/d" messages.po > $@
64	$(RM) messages.po
65