1# 2# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7 8PROG= kinit 9 10OBJS = kinit.o kwarnd_clnt_stubs.o kwarnd_clnt.o kwarnd_handle.o kwarnd_xdr.o 11SRCS = kinit.c \ 12 ../kwarn/kwarnd_clnt_stubs.c \ 13 ../kwarn/kwarnd_clnt.c \ 14 ../kwarn/kwarnd_handle.c \ 15 ../kwarn/kwarnd_xdr.c 16 17DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 18 19include ../../Makefile.cmd 20include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 21 22POFILE = kinit.po 23POFILES = generic.po 24 25DEFS = -DHAVE_PWD_H 26 27CPPFLAGS += -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 34LDFLAGS += $(KRUNPATH) 35LDLIBS += $(KMECHLIB) -lnsl 36 37.KEEP_STATE: 38 39all: $(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 49install: $(KRB5PROG) 50 51clean: 52 $(RM) $(OBJS) 53 54lint: lint_SRCS 55 56include ../../Makefile.targ 57 58$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 59 $(RM) $@ 60 $(CAT) $(POFILES) > $@ 61 62generic.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 67