1# 2# Copyright 2008 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 11SRCS = kinit.c 12 13DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 14 15include ../../Makefile.cmd 16include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 17 18POFILE = kinit.po 19POFILES = generic.po 20 21DEFS = -DHAVE_PWD_H 22 23CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \ 24 -I$(SRC)/lib/gss_mechs/mech_krb5 \ 25 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 26 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 27 $(DEFS) 28 29LDFLAGS += $(KRUNPATH) 30LDLIBS += $(KMECHLIB) 31 32.KEEP_STATE: 33 34all: $(PROG) 35 36$(PROG): $(OBJS) 37 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 38 $(POST_PROCESS) 39 40install: $(KRB5PROG) 41 42clean: 43 $(RM) $(OBJS) 44 45lint: lint_SRCS 46 47include ../../Makefile.targ 48 49$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 50 $(RM) $@ 51 $(CAT) $(POFILES) > $@ 52 53generic.po: 54 $(RM) messages.po 55 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 56 $(SED) "/^domain/d" messages.po > $@ 57 $(RM) messages.po 58