xref: /titanic_41/usr/src/cmd/krb5/kdestroy/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5
6PROG= kdestroy
7
8OBJS	= kdestroy.o krpc_sys.o
9
10SRCS	= kdestroy.c krpc_sys.c
11
12include ../../Makefile.cmd
13include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
14
15CERRWARN += -_gcc=-Wno-implicit-function-declaration
16CERRWARN += -_gcc=-Wno-parentheses
17
18POFILE = kdestroy.po
19POFILES = generic.po
20
21CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \
22		-I$(SRC)/uts/common/gssapi/mechs/krb5/include
23
24
25i386_CPPFLAGS =
26sparc_CPPFLAGS += -D$(MACH)
27
28LDFLAGS += $(KRUNPATH)
29LDLIBS += $(KMECHLIB)
30
31.KEEP_STATE:
32all: $(PROG)
33
34krpc_sys.o: krpc_sys.c
35	$(COMPILE.c)  -o  $@ krpc_sys.c
36	$(POST_PROCESS_O)
37
38$(PROG):       $(OBJS)
39	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40	$(POST_PROCESS)
41
42install: $(KRB5PROG)
43
44clean:
45	$(RM) $(OBJS)
46
47lint: lint_SRCS
48
49include ../../Makefile.targ
50
51$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
52	$(RM) $@
53	$(CAT) $(POFILES) > $@
54
55generic.po:
56	$(RM) messages.po
57	$(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
58	$(SED) "/^domain/d" messages.po > $@
59	$(RM) messages.po
60
61