* Makefile.in (YACC): New variable.
(lib-src/Makefile.in): Edit YACC into the makefile.
* Makefile.in (YACC): New variable, to be set by top-level Makefile.
users to set.
* Makefile.in (CFLAGS): Put this in the "things configure might
edit" section, and have it default to -g.
(ALL_CFLAGS): New variable, set to all the flags which should be
passed to compilations. Replace all other uses of CFLAGS with
ALL_CFLAGS.
(.c.o): New rule, to pass ALL_CFLAGS to compilations.
* Makefile.in (DEFS): Remove this; it's always just going to be
"-DHAVE_CONFIG_H -Demacs".
* Makefile.in (ALLOCA): New variable, whose value we should
inherit from the top-level makefile.
(etags, ctags): Include ALLOCA in the list of object files that
these executables depend on and link.
work.
* Makefile.in (srcdir): Get this value from the top-level
Makefile.
(INSTALLABLES): Split this into two lists - INSTALLABLES and
INSTALLABLE_SCRIPTS.
(INSTALLABLE_SCRIPTS): New list.
(EXECUTABLES): Include INSTALLABLE_SCRIPTS.
(${archlibdir}): The scripts to be installed live in the source
tree, not in the object tree.
(test-distrib): Note that the data file lives in the source tree,
not the object tree.
(GETOPTDEPS): Note that getopt.h lives in the source tree.
(all other targets): Change references to source files to use
${srcdir}, except for config.h, which lives in the object dir.
(timer.o): Note that this depends on ../src/config.h.
(bindir, libdir): Use it instead of `prefix'.
* Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.
* Makefile.in (libdir): Default to ${prefix}/lib.
(archlibdir): Adjusted to match.
* Makefile.in (distclean): Don't delete backup or autosave files.
(extraclean): Like realclean, but does delete backup and autosave
files.
* Makefile.in (realclean): Ignore errors from rm.
* Makefile.in (distclean): Don't bother to delete ../arch-lib;
that doesn't exist anymore.
* Makefile.in (prefix, bindir, libdir, srcdir): New variables, as
described in the top-level Makefile.
(UTILITIES): Add make-path to the list of utility programs.
(../arch-lib): Replaced by the ${archlibdir} target, which places
the executables in their permanent home.
(install, install.sysv, install.xenix): Consolidated into one
target which should work under all circumstances, modulo a few
ignored error messages.
can indicate that it depends on ../src/config.h.
* Makefile.in (CONFIG_CFLAGS): Let the configure script edit this
instead of CFLAGS.
(CFLAGS): Add -Demacs and -I../src to CONFIG_CFLAGS to produce this.