comparison usr/src/cmd/krb5/kinit/Makefile @ 0:c9caec207d52 b86

Initial porting based on b86
author Koji Uno <koji.uno@sun.com>
date Tue, 02 Jun 2009 18:56:50 +0900
parents
children 1a15d5aaf794
comparison
equal deleted inserted replaced
-1:000000000000 0:c9caec207d52
1 #
2 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # ident "@(#)Makefile 1.9 04/09/28 SMI"
6 #
7
8 PROG= kinit
9
10 OBJS = kinit.o kwarnd_clnt_stubs.o kwarnd_clnt.o kwarnd_handle.o kwarnd_xdr.o
11 SRCS = kinit.c \
12 ../kwarn/kwarnd_clnt_stubs.c \
13 ../kwarn/kwarnd_clnt.c \
14 ../kwarn/kwarnd_handle.c \
15 ../kwarn/kwarnd_xdr.c
16
17 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
18
19 include ../../Makefile.cmd
20 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
21
22 POFILE = kinit.po
23 POFILES = generic.po
24
25 DEFS = -DHAVE_PWD_H
26
27 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
28 -I$(SRC)/lib/gss_mechs/mech_krb5 \
29 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
30 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
31 -I../kwarn \
32 $(DEFS)
33
34 LDFLAGS += $(KRUNPATH)
35 LDLIBS += $(KMECHLIB) -lnsl
36
37 .KEEP_STATE:
38
39 all: $(PROG)
40
41 %.o: ../kwarn/%.c
42 $(COMPILE.c) -o $@ $<
43 $(POST_PROCESS_O)
44
45 $(PROG): $(OBJS)
46 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
47 $(POST_PROCESS)
48
49 install: $(KRB5PROG)
50
51 clean:
52 $(RM) $(OBJS)
53
54 lint: lint_SRCS
55
56 include ../../Makefile.targ
57
58 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
59 $(RM) $@
60 $(CAT) $(POFILES) > $@
61
62 generic.po:
63 $(RM) messages.po
64 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
65 $(SED) "/^domain/d" messages.po > $@
66 $(RM) messages.po