1 @echo off 2 rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 3 rem 2004, 2005, 2006 Free Software Foundation, Inc. 4 rem This file is part of GNU Make. 5 6 rem GNU Make is free software; you can redistribute it and/or modify it under 7 rem the terms of the GNU General Public License as published by the Free 8 rem Software Foundation; either version 2, or (at your option) any later 9 rem version. 10 11 rem GNU Make is distributed in the hope that it will be useful, but WITHOUT 12 rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 rem more details. 15 16 rem You should have received a copy of the GNU General Public License along 17 rem with GNU Make; see the file COPYING. If not, write to the Free Software 18 rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 20 echo Configuring glob for DJGPP 21 rem This batch file assumes a unix-type "sed" program 22 23 echo # Makefile generated by "configure.bat"> Makefile 24 25 if exist config.sed del config.sed 26 27 echo "s/@srcdir@/./ ">> config.sed 28 echo "s/@CC@/gcc/ ">> config.sed 29 echo "s/@CFLAGS@/-O2 -g/ ">> config.sed 30 echo "s/@CPPFLAGS@/-DHAVE_CONFIG_H -I../ ">> config.sed 31 echo "s/@AR@/ar/ ">> config.sed 32 echo "s/@RANLIB@/ranlib/ ">> config.sed 33 echo "s/@LDFLAGS@// ">> config.sed 34 echo "s/@DEFS@// ">> config.sed 35 echo "s/@ALLOCA@// ">> config.sed 36 echo "s/@LIBS@// ">> config.sed 37 echo "s/@LIBOBJS@// ">> config.sed 38 echo "s/^Makefile *:/_Makefile:/ ">> config.sed 39 echo "s/^config.h *:/_config.h:/ ">> config.sed 40 41 sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed 42 sed -f config2.sed Makefile.in >> Makefile 43 del config.sed 44 del config2.sed 45