1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004,
6 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # This file is part of GNU Emacs.
10 # This file is free software; as a special exception, the author gives
11 # unlimited permission to copy and/or distribute it, with or without
12 # modifications, as long as this notice is preserved.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 # ----------------------------------------------------------------------
23 /^ LC_ALL=C \$(RUN_TEMACS)/i\
24 stubedit temacs.exe minstack=1024k
25 /^ LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
28 stubedit emacs.exe minstack=2048k
31 /^srcdir *=/s/@[^@\n]*@/./
32 /^VPATH *=/s/@[^@\n]*@/./
33 /^CC *=/s/@[^@\n]*@/gcc/
34 /^CPP *=/s/@[^@\n]*@/gcc -e/
35 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
36 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
37 /^CPPFLAGS *=/s/@[^@\n]*@//
38 /^LDFLAGS *=/s/@[^@\n]*@//
39 /^LIBS *=/s/@[^@\n]*@//
43 /^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
44 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
45 /^LIBSOUND *=/s/@LIBSOUND@//
46 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
47 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
48 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
49 /^OTHER_FILES *=/s/@OTHER_FILES@//
50 /^EXEEXT *=/s/@EXEEXT@/.exe/
51 /^version *=/s/@[^@\n]*@//
52 /^LN_S *=/s/@[^@\n]*@/ln -s/
53 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
54 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
55 /^@SET_MAKE@$/s/@SET_MAKE@//
56 /^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
57 /^.\${libsrc}make-doc/s!>.*$!!
59 /^temacs:/s/prefix-args//
60 /^temacs:/s/stamp-oldxmenu//
61 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
64 command.com /c if exist .gdbinit rm -f _gdbinit
65 /^ else mv \.\/\.gdbinit/d
67 /^ cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
69 /^ -\{0,1\}ln -/s/ln -f/cp -pf/
70 /^[ ]touch /s/touch/djecho $@ >/
71 s/bootstrap-emacs/b-emacs/
72 s/bootstrap-temacs/b-temacs/
73 s/bootstrap-doc/b-doc/
74 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
75 s/echo.*buildobj.lst/dj&/
76 / --load loadup bootstrap/i\
77 stubedit temacs.exe minstack=1024k
78 / --load loadup bootstrap/a\
81 stubedit b-emacs.exe minstack=3072k\
82 djecho bootlisp > bootlisp
83 /^ -\{0,1\}rm -f/s/\\#/#/
84 /^ @\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
85 /^ echo.* buildobj.h/s|echo |djecho |
87 # arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c