diff options
Diffstat (limited to 'config.bat')
| -rw-r--r-- | config.bat | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/config.bat b/config.bat index 271673bc302..0482d4f15f0 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -221,16 +221,17 @@ cd .. | |||
| 221 | rem ---------------------------------------------------------------------- | 221 | rem ---------------------------------------------------------------------- |
| 222 | Echo Configuring the library source directory... | 222 | Echo Configuring the library source directory... |
| 223 | cd lib-src | 223 | cd lib-src |
| 224 | rem Create "makefile" from "makefile.in". | ||
| 225 | sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c | ||
| 226 | gcc -E -traditional -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >makefile.new | ||
| 227 | If "%DJGPP_VER%" == "2" goto libsrc-v2 | 224 | If "%DJGPP_VER%" == "2" goto libsrc-v2 |
| 228 | sed -f ../msdos/sed3.inp <makefile.new >Makefile | 225 | sed -f ../msdos/sed3.inp <Makefile.in >Makefile |
| 229 | Goto libsrc2 | 226 | Goto libsrc2 |
| 230 | :libsrc-v2 | 227 | :libsrc-v2 |
| 231 | sed -f ../msdos/sed3v2.inp <makefile.new >Makefile | 228 | sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile |
| 232 | :libsrc2 | 229 | :libsrc2 |
| 233 | rm -f makefile.new junk.c | 230 | if "%X11%" == "" goto libsrc2a |
| 231 | mv Makefile makefile.tmp | ||
| 232 | sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile | ||
| 233 | rm -f makefile.tmp | ||
| 234 | :libsrc2a | ||
| 234 | if "%nodebug%" == "" goto libsrc3 | 235 | if "%nodebug%" == "" goto libsrc3 |
| 235 | sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp | 236 | sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp |
| 236 | sed -e "/^ALL_CFLAGS *=/s/=/= -s/" <makefile.tmp >Makefile | 237 | sed -e "/^ALL_CFLAGS *=/s/=/= -s/" <makefile.tmp >Makefile |