changeset 3570:8324ae8fe473

* ymakefile (C_DEBUG_SWITCH, C_OPTIMIZE_SWITCH): Remove these; people shouldn't edit this file to choose optimization and debugging switches anyway. ../configure will set CFLAGS to an appropriate default, which they will be able to override. * Makefile.in (xmakefile): Don't try to turn -g and -O in CFLAGS into C_DEBUG_SWITCH and C_OPTIMIZE_SWITCH. CFLAGS should be the sole source of such switches, so that setting CFLAGS controls them completely.
author Jim Blandy <jimb@redhat.com>
date Tue, 08 Jun 1993 06:59:37 +0000
parents 8399d8e4ad22
children 6c1a1b79536c
files src/=Makefile.in
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/=Makefile.in	Tue Jun 08 06:20:56 1993 +0000
+++ b/src/=Makefile.in	Tue Jun 08 06:59:37 1993 +0000
@@ -76,10 +76,7 @@
 xmakefile: ymakefile config.h ../config.status
 	-rm -f xmakefile xmakefile.new junk.c junk.cpp
 	cp ${srcdir}/ymakefile junk.c
-	${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp \
-	-DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
-			  | sed -e 's/-g /C_DEBUG_SWITCH /' \
-				-e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
+	${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp
 	< junk.cpp					\
 	sed	-e 's/^#.*//'				\
 		-e 's/^[ \f\t][ \f\t]*$$//'		\