1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5 6PROG= kinit 7 8OBJS = kinit.o 9SRCS = kinit.c 10 11DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 12 13include ../../Makefile.cmd 14include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 15 16CERRWARN += -_gcc=-Wno-implicit-function-declaration 17CERRWARN += -_gcc=-Wno-unused-function 18CERRWARN += -_gcc=-Wno-parentheses 19 20POFILE = kinit.po 21POFILES = generic.po 22 23DEFS = -DHAVE_PWD_H 24 25CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \ 26 -I$(SRC)/lib/gss_mechs/mech_krb5 \ 27 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 28 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 29 $(DEFS) 30 31LDFLAGS += $(KRUNPATH) 32LDLIBS += $(KMECHLIB) 33 34.KEEP_STATE: 35 36all: $(PROG) 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