1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# 6 7PROG= klist 8 9OUTPUT_OPTION = -I. 10 11OBJS = klist.o 12SRCS = $(OBJS:.o=.c) 13 14include ../../Makefile.cmd 15include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 16 17TEXT_DOMAIN = SUNW_OST_OSCMD 18POFILE = klist.po 19POFILES = generic.po 20 21DEFS = -DHAVE_GETIPNODEBYADDR=1 -DHAVE_INET_NTOP=1 22 23CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 24 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 25 $(DEFS) 26 27LDFLAGS += $(KRUNPATH) 28LDLIBS += $(KMECHLIB) 29 30$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 31 32.KEEP_STATE: 33 34all: $(PROG) 35 36$(PROG): $(OBJS) 37 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 38 $(POST_PROCESS) 39 40install: $(KRB5PROG) 41 42install_h: 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