Makefile revision 67e3a03ed4a2813074d36330f062ed6e593a4937
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# Use is subject to license terms.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
bef75d63d74f58abc0f834ed271526672777ba29Automatic UpdaterPROG= kpasswd
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterOBJS = tty_kpasswd.o kpasswd.o
bef75d63d74f58abc0f834ed271526672777ba29Automatic UpdaterSRCS = $(OBJS:.o=.c)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCLOBBERFILES += $(TESTPROG)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../Makefile.cmd
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterPOFILE = $(PROG).po
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterPOFILES = generic.po
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Override $ROOTLIB
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterKRB5LIBDIR= $(ROOT)$(KERBLIBDIR)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -I$(SRC)/uts/common/gssapi/include/ \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -I$(SRC)/lib/krb5 \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOPTFLAG += $(XESS) #-I$(KINCDIR)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLDLIBS += -L $(KRB5LIBDIR)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLDLIBS += $(KMECHLIB) $(KCLNTLIB)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater.KEEP_STATE:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterall: $(PROG)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(PROG): $(OBJS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(POST_PROCESS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinstall: $(KRB5PROG)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterclean:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(RM) $(OBJS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updaterlint: lint_SRCS
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../Makefile.targ
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(RM) $@
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(CAT) $(POFILES) > $@
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater $(RM) generic.po
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updatergeneric.po:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(RM) messages.po
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(SED) "/^domain/d" messages.po > $@
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater $(RM) messages.po
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater