xref: /illumos-gate/usr/src/cmd/krb5/kdestroy/Makefile (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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= kdestroy
8
9OBJS	= kdestroy.o krpc_sys.o
10
11SRCS	= kdestroy.c krpc_sys.c
12
13include ../../Makefile.cmd
14include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
15
16CERRWARN += -_gcc=-Wno-implicit-function-declaration
17CERRWARN += -_gcc=-Wno-parentheses
18
19# not linted
20SMATCH=off
21
22POFILE = kdestroy.po
23POFILES = generic.po
24
25CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \
26		-I$(SRC)/uts/common/gssapi/mechs/krb5/include
27
28
29i386_CPPFLAGS =
30sparc_CPPFLAGS += -D$(MACH)
31
32LDFLAGS += $(KRUNPATH)
33LDLIBS += $(KMECHLIB)
34
35.KEEP_STATE:
36all: $(PROG)
37
38krpc_sys.o: krpc_sys.c
39	$(COMPILE.c)  -o  $@ krpc_sys.c
40	$(POST_PROCESS_O)
41
42$(PROG):       $(OBJS)
43	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
44	$(POST_PROCESS)
45
46install: $(KRB5PROG)
47
48clean:
49	$(RM) $(OBJS)
50
51include ../../Makefile.targ
52
53$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
54	$(RM) $@
55	$(CAT) $(POFILES) > $@
56
57generic.po:
58	$(RM) messages.po
59	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
60	$(SED) "/^domain/d" messages.po > $@
61	$(RM) messages.po
62
63