xref: /titanic_52/usr/src/cmd/krb5/kadmin/kpasswd/Makefile (revision 2bc987325e3ded1865bff043128661815c4690b9)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5
6PROG= kpasswd
7
8OBJS	= tty_kpasswd.o kpasswd.o
9SRCS	= $(OBJS:.o=.c)
10
11CLOBBERFILES += $(TESTPROG)
12
13include ../../../Makefile.cmd
14include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
15
16POFILE = $(PROG).po
17POFILES = generic.po
18
19#
20# Override $ROOTLIB
21#
22KRB5LIBDIR=	$(ROOT)$(KERBLIBDIR)
23
24CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
25	-I$(SRC)/uts/common/gssapi/include/ \
26	-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
27	-I$(SRC)/lib/krb5 \
28	-DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
29	-DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
30	-DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
31
32COPTFLAG += $(XESS) #-I$(KINCDIR)
33
34CERRWARN += -_gcc=-Wno-parentheses
35CERRWARN += -_gcc=-Wno-unused-variable
36CERRWARN += -_gcc=-Wno-unused-function
37
38LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
39LDLIBS += -L $(KRB5LIBDIR)
40LDLIBS += $(KMECHLIB) $(KCLNTLIB)
41
42.KEEP_STATE:
43
44all: $(PROG)
45
46$(PROG):	$(OBJS)
47	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
48	$(POST_PROCESS)
49
50install: $(KRB5PROG)
51
52clean:
53	$(RM) $(OBJS)
54
55lint: lint_SRCS
56
57include ../../../Makefile.targ
58
59$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
60	$(RM) $@
61	$(CAT) $(POFILES) > $@
62	$(RM) generic.po
63
64generic.po:
65	$(RM) messages.po
66	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
67	$(SED) "/^domain/d" messages.po > $@
68	$(RM) messages.po
69
70