Merge illumos-gate
[unleashed.git] / usr / src / cmd / krb5 / kdestroy / Makefile
blob93b694ed5223d4d7ec1ccb1207460a46f77da9b6
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # Copyright (c) 2018, Joyent, Inc.
7 PROG= kdestroy
9 OBJS = kdestroy.o krpc_sys.o
11 SRCS = kdestroy.c krpc_sys.c
13 include ../../Makefile.cmd
14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16 CERRWARN += -Wno-implicit-function-declaration
17 CERRWARN += -Wno-parentheses
19 # not linted
20 SMATCH=off
22 POFILE = kdestroy.po
23 POFILES = generic.po
25 CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \
26 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
29 i386_CPPFLAGS =
30 sparc_CPPFLAGS += -D$(MACH)
32 LDFLAGS += $(KRUNPATH)
33 LDLIBS += $(KMECHLIB)
35 .KEEP_STATE:
36 all: $(PROG)
38 krpc_sys.o: krpc_sys.c
39 $(COMPILE.c) -o $@ krpc_sys.c
40 $(POST_PROCESS_O)
42 $(PROG): $(OBJS)
43 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
44 $(POST_PROCESS)
46 install: $(KRB5PROG)
48 clean:
49 $(RM) $(OBJS)
52 include ../../Makefile.targ
54 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
55 $(RM) $@
56 $(CAT) $(POFILES) > $@
58 generic.po:
59 $(RM) messages.po
60 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
61 $(SED) "/^domain/d" messages.po > $@
62 $(RM) messages.po