comparison config.bat @ 108634:fcdc7bb97c9e

Define some malloc objects with configure, not cpp. * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables. * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc. * src/Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure. (gmallocobj, vmlimitobj): Replace with previous two variables. (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ. * msdos/sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o. (VMLIMIT_OBJ): Edit to vm-limit.o.
author Glenn Morris <rgm@gnu.org>
date Mon, 17 May 2010 19:30:13 -0700
parents 5daf8821df70
children e565448628b8
comparison
equal deleted inserted replaced
108633:745476df64ef 108634:fcdc7bb97c9e
199 mv Makefile makefile.tmp 199 mv Makefile makefile.tmp
200 sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile 200 sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile
201 rm -f makefile.tmp 201 rm -f makefile.tmp
202 :src5 202 :src5
203 203
204 if "%sys_malloc%" == "" goto src5a
205 sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp
206 sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >Makefile
207 rm -f makefile.tmp
208 :src5a
209
204 if "%nodebug%" == "" goto src6 210 if "%nodebug%" == "" goto src6
205 sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp 211 sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp
206 sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile 212 sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile
207 rm -f makefile.tmp 213 rm -f makefile.tmp
208 :src6 214 :src6