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