17c478bd9Sstevel@tonic-gate# 2159d09a2SMark Phalan# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 5*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gatePROG= klist 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gateOUTPUT_OPTION = -I. 107c478bd9Sstevel@tonic-gate 117c478bd9Sstevel@tonic-gateOBJS = klist.o 127c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 157c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 167c478bd9Sstevel@tonic-gate 177c478bd9Sstevel@tonic-gateTEXT_DOMAIN = SUNW_OST_OSCMD 187c478bd9Sstevel@tonic-gatePOFILE = klist.po 197c478bd9Sstevel@tonic-gatePOFILES = generic.po 207c478bd9Sstevel@tonic-gate 217c478bd9Sstevel@tonic-gateDEFS = -DHAVE_GETIPNODEBYADDR=1 -DHAVE_INET_NTOP=1 227c478bd9Sstevel@tonic-gate 237c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 247c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 257c478bd9Sstevel@tonic-gate $(DEFS) 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateLDFLAGS += $(KRUNPATH) 28159d09a2SMark PhalanLDLIBS += $(KMECHLIB) 297014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 307c478bd9Sstevel@tonic-gate 31*5661bb76SJohn Levon# not linted 32*5661bb76SJohn LevonSMATCH=off 33*5661bb76SJohn Levon 347c478bd9Sstevel@tonic-gate$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate.KEEP_STATE: 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateall: $(PROG) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 417c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 427c478bd9Sstevel@tonic-gate $(POST_PROCESS) 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateinstall: $(KRB5PROG) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateinstall_h: 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateclean: 497c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 547c478bd9Sstevel@tonic-gate $(RM) $@ 557c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gategeneric.po: 587c478bd9Sstevel@tonic-gate $(RM) messages.po 597c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 607c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 617c478bd9Sstevel@tonic-gate $(RM) messages.po 62