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= ktutil 9 10OBJS = ktutil.o ktutil_ct.o ktutil_funcs.o 11SRCS = $(OBJS:.o=.c) 12 13CLOBBERFILES += $(TESTPROG) 14 15include ../../../Makefile.cmd 16include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 17 18POFILE = $(PROG).po 19POFILES = generic.po 20 21CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \ 22 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 23 -I$(SRC)/uts/common/gssapi/include \ 24 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 25 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 26 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 27 -DHAVE_TIMEZONE 28COPTFLAG += $(XESS) #-I$(KINCDIR) 29 30LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 31LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so 32 33.KEEP_STATE: 34 35all: $(PROG) 36 37ktutil: $(OBJS) 38 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 39 $(POST_PROCESS) 40 41install: $(KRB5PROG) 42 43clean: 44 $(RM) $(OBJS) 45 46lint: lint_SRCS 47 48include ../../../Makefile.targ 49 50$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 51 $(RM) $@ 52 $(CAT) $(POFILES) > $@ 53 $(RM) generic.po 54 55generic.po: 56 $(RM) messages.po 57 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 58 $(SED) "/^domain/d" messages.po > $@ 59 $(RM) messages.po 60