aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-09 22:51:16 +0000
committerJim Blandy1993-05-09 22:51:16 +0000
commitb6472fc16bba795fc499314f8264c3518945bfa0 (patch)
treee3734558efe53674753741377aaf0ebe85adcf4e
parent679f7f7eb7b62b477125399f8d6a69d2153a00df (diff)
downloademacs-b6472fc16bba795fc499314f8264c3518945bfa0.tar.gz
emacs-b6472fc16bba795fc499314f8264c3518945bfa0.zip
* Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
this is always just -DHAVE_CONFIG_H. The GNU coding standards specify that CFLAGS should be left for users to set. * Makefile.in (CFLAGS): Let configure determine the default value for this. Don't have it default to DEFS. (${SUBDIR}): Pass CFLAGS down to submakes, not DEFS. (lib-src/Makefile, src/Makefile): Edit the default value for CFLAGS into these files, not DEFS. * configure.in (CFLAGS): Choose a default value for this - "-g" normally, or "-g -O" if we're using GCC. Edit it into the top-level Makefile. * configure.in: Add AC_LN_S test, so we can tell whether or not we can use a symbolic link to get the X Menu library into src. * Makefile.in (LN_S): New variable. (src/Makefile): Edit the value of LN_S into this makefile.
-rw-r--r--Makefile.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 2ab87a8bfca..97655d34653 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -41,9 +41,10 @@ MAKE = make # BSD doesn't have it as a default.
41# ==================== Things `configure' Might Edit ==================== 41# ==================== Things `configure' Might Edit ====================
42 42
43CC=@CC@ 43CC=@CC@
44DEFS=@DEFS@
45C_SWITCH_SYSTEM=@c_switch_system@ 44C_SWITCH_SYSTEM=@c_switch_system@
46ALLOCA=@ALLOCA@ 45ALLOCA=@ALLOCA@
46LN_S=@LN_S@
47CFLAGS=@CFLAGS@
47 48
48### These help us choose version- and architecture-specific directories 49### These help us choose version- and architecture-specific directories
49### to install files in. 50### to install files in.
@@ -195,8 +196,6 @@ INSTALL_DATA = ${INSTALL}
195# Flags passed down to subdirectory makefiles. 196# Flags passed down to subdirectory makefiles.
196MFLAGS = 197MFLAGS =
197 198
198CFLAGS=${DEFS}
199
200# Subdirectories to make recursively. `lisp' is not included 199# Subdirectories to make recursively. `lisp' is not included
201# because the compiled lisp files are part of the distribution 200# because the compiled lisp files are part of the distribution
202# and you cannot remake them without installing Emacs first. 201# and you cannot remake them without installing Emacs first.
@@ -241,7 +240,7 @@ src: lib-src
241 240
242${SUBDIR}: ${SUBDIR_MAKEFILES} FRC 241${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
243 cd $@; $(MAKE) all ${MFLAGS} \ 242 cd $@; $(MAKE) all ${MFLAGS} \
244 CC='${CC}' DEFS='${DEFS}' \ 243 CC='${CC}' CFLAGS='${CFLAGS}' \
245 srcdir='${srcdir}/$@' libdir='${libdir}' 244 srcdir='${srcdir}/$@' libdir='${libdir}'
246 245
247## We build the makefiles for the subdirectories here so that we can 246## We build the makefiles for the subdirectories here so that we can
@@ -266,7 +265,7 @@ lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile
266 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ 265 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
267 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ 266 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \
268 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 267 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
269 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ 268 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
270 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \ 269 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \
271 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ 270 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \
272 -e '/^# DIST: /d') > lib-src/Makefile.tmp 271 -e '/^# DIST: /d') > lib-src/Makefile.tmp
@@ -284,7 +283,8 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile
284 /bin/sed < ${srcdir}/src/Makefile.in \ 283 /bin/sed < ${srcdir}/src/Makefile.in \
285 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ 284 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \
286 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 285 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
287 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ 286 -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \
287 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
288 -e '/^# DIST: /d') > src/Makefile.tmp 288 -e '/^# DIST: /d') > src/Makefile.tmp
289 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile 289 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
290 chmod -w src/Makefile 290 chmod -w src/Makefile