Makefile revision 159d09a20817016f09b3ea28d1bdada4a336bb91
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# Use is subject to license terms.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyPROG= klist
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyOUTPUT_OPTION = -I.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyOBJS = klist.o
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleySRCS = $(OBJS:.o=.c)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
a75f433c831be334df8f1eafa9f77e940b5ae58cBob Halleyinclude ../../Makefile.cmd
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
a75f433c831be334df8f1eafa9f77e940b5ae58cBob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyTEXT_DOMAIN = SUNW_OST_OSCMD
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob HalleyPOFILE = klist.po
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyPOFILES = generic.po
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob Halley
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob HalleyDEFS = -DHAVE_GETIPNODEBYADDR=1 -DHAVE_INET_NTOP=1
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyCPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(DEFS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyLDFLAGS += $(KRUNPATH)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyLDLIBS += $(KMECHLIB)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley.KEEP_STATE:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyall: $(PROG)
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley$(PROG): $(OBJS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(POST_PROCESS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinstall: $(KRB5PROG)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinstall_h:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyclean:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(RM) $(OBJS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleylint: lint_SRCS
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinclude ../../Makefile.targ
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(RM) $@
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(CAT) $(POFILES) > $@
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleygeneric.po:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(RM) messages.po
b07f8da9cd892573d00c835a22b205764975c2d2Bob Halley $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(SED) "/^domain/d" messages.po > $@
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(RM) messages.po
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley