1 | @echo off
|
---|
2 | rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
---|
3 | rem 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
---|
4 | rem This file is part of GNU Make.
|
---|
5 | rem
|
---|
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 3 of the License, or (at your option)
|
---|
9 | rem any later version.
|
---|
10 | rem
|
---|
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 | rem
|
---|
16 | rem You should have received a copy of the GNU General Public License along
|
---|
17 | rem with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
18 |
|
---|
19 | echo Configuring glob for DJGPP
|
---|
20 | rem This batch file assumes a unix-type "sed" program
|
---|
21 |
|
---|
22 | echo # Makefile generated by "configure.bat"> Makefile
|
---|
23 |
|
---|
24 | if exist config.sed del config.sed
|
---|
25 |
|
---|
26 | echo "s/@srcdir@/./ ">> config.sed
|
---|
27 | echo "s/@CC@/gcc/ ">> config.sed
|
---|
28 | echo "s/@CFLAGS@/-O2 -g/ ">> config.sed
|
---|
29 | echo "s/@CPPFLAGS@/-DHAVE_CONFIG_H -I../ ">> config.sed
|
---|
30 | echo "s/@AR@/ar/ ">> config.sed
|
---|
31 | echo "s/@RANLIB@/ranlib/ ">> config.sed
|
---|
32 | echo "s/@LDFLAGS@// ">> config.sed
|
---|
33 | echo "s/@DEFS@// ">> config.sed
|
---|
34 | echo "s/@ALLOCA@// ">> config.sed
|
---|
35 | echo "s/@LIBS@// ">> config.sed
|
---|
36 | echo "s/@LIBOBJS@// ">> config.sed
|
---|
37 | echo "s/^Makefile *:/_Makefile:/ ">> config.sed
|
---|
38 | echo "s/^config.h *:/_config.h:/ ">> config.sed
|
---|
39 |
|
---|
40 | sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
|
---|
41 | sed -f config2.sed Makefile.in >> Makefile
|
---|
42 | del config.sed
|
---|
43 | del config2.sed
|
---|