1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5 6PROG= ktutil 7 8OBJS = ktutil.o ktutil_ct.o ktutil_funcs.o 9SRCS = $(OBJS:.o=.c) 10 11CLOBBERFILES += $(TESTPROG) 12 13include ../../../Makefile.cmd 14include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 15 16POFILE = $(PROG).po 17POFILES = generic.po 18 19CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \ 20 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 21 -I$(SRC)/uts/common/gssapi/include \ 22 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 23 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 24 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 25 -DHAVE_TIMEZONE 26COPTFLAG += $(XESS) #-I$(KINCDIR) 27 28CERRWARN += -_gcc=-Wno-implicit-function-declaration 29CERRWARN += -_gcc=-Wno-unused-function 30 31LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 32LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so 33 34.KEEP_STATE: 35 36all: $(PROG) 37 38ktutil: $(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 $(RM) generic.po 55 56generic.po: 57 $(RM) messages.po 58 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 59 $(SED) "/^domain/d" messages.po > $@ 60 $(RM) messages.po 61