1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# Copyright (c) 2018, Joyent, Inc. 6 7PROG= ktutil 8 9OBJS = ktutil.o ktutil_ct.o ktutil_funcs.o 10SRCS = $(OBJS:.o=.c) 11 12CLOBBERFILES += $(TESTPROG) 13 14include ../../../Makefile.cmd 15include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 16 17POFILE = $(PROG).po 18POFILES = generic.po 19 20CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \ 21 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 22 -I$(SRC)/uts/common/gssapi/include \ 23 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 24 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 25 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 26 -DHAVE_TIMEZONE 27 28CERRWARN += -_gcc=-Wno-implicit-function-declaration 29CERRWARN += -_gcc=-Wno-unused-function 30 31# not linted 32SMATCH=off 33 34LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 35LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so 36 37.KEEP_STATE: 38 39all: $(PROG) 40 41ktutil: $(OBJS) 42 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 43 $(POST_PROCESS) 44 45install: $(KRB5PROG) 46 47clean: 48 $(RM) $(OBJS) 49 50include ../../../Makefile.targ 51 52$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 53 $(RM) $@ 54 $(CAT) $(POFILES) > $@ 55 $(RM) generic.po 56 57generic.po: 58 $(RM) messages.po 59 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 60 $(SED) "/^domain/d" messages.po > $@ 61 $(RM) messages.po 62