* msdos/mainmake.v2: Comment fix.
[bpt/emacs.git] / msdos / sed1v2.inp
CommitLineData
515dd711 1# -sed1v2.inp-----------------------------------------------------------
c107c335 2# Configuration script for src/Makefile under DJGPP v2.x
515dd711 3# ----------------------------------------------------------------------
d7fcecc1 4#
e3cf0cde
GM
5# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
6# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
d7fcecc1
EZ
7#
8# This file is part of GNU Emacs.
9#
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.
13#
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.
17#
18# ----------------------------------------------------------------------
515dd711
RS
19s/^#.*//
20s/^[ \f\t][ \f\t]*$//
21s/^ / /
22s/\.h\.in/.h-in/
b0b6ad00 23/^ LC_ALL=C \$(RUN_TEMACS)/i\
9a1d32e7 24 stubedit temacs.exe minstack=1024k
b0b6ad00 25/^ LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
9a1d32e7
EZ
26/-batch -l loadup/a\
27 stubify emacs\
28 stubedit emacs.exe minstack=2048k
515dd711
RS
29/^MAKE *=/s/^/# /
30/^SHELL *=/s/^/# /
31/^srcdir *=/s/@[^@\n]*@/./
2201e7e2 32/^abs_builddir *=/s|@abs_builddir@|../src|
515dd711
RS
33/^VPATH *=/s/@[^@\n]*@/./
34/^CC *=/s/@[^@\n]*@/gcc/
35/^CPP *=/s/@[^@\n]*@/gcc -e/
5066454b 36/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
9a1d32e7 37/^ALL_CFLAGS *=/s/@[^@\n]*@//g
f94f6c02
RS
38/^CPPFLAGS *=/s/@[^@\n]*@//
39/^LDFLAGS *=/s/@[^@\n]*@//
dd4e2b00 40/^LIBS *=/s/@[^@\n]*@//
9a1d32e7
EZ
41/^LIBES *=/,/^ *$/ {
42 s/@[^@\n]*@//g
43}
1c00835f 44/^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
9fdec8bc
EZ
45/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
46/^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
5a903aa9
GM
47/^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
48/^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
0116466b 49#/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
9fdec8bc
EZ
50/^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
51/^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
52/^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
53/^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
54/^LD_SWITCH_SYSTEM_EXTRA *=/s/@LD_SWITCH_SYSTEM_EXTRA@//
b02a6645 55/^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
97efb629 56/^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
1a0d7c06 57/^LIB_GCC *=/s/@LIB_GCC@/-Lgcc/
c1d0dcfd 58/^LD *=/s/@LINKER@/$(CC)/
5a903aa9
GM
59/^LIB_STANDARD *=/s/@LIB_STANDARD@//
60/^LIB_MATH *=/s/@LIB_MATH@/-lm/
9fdec8bc
EZ
61/^LIBTIFF *=/s/@LIBTIFF@//
62/^LIBJPEG *=/s/@LIBJPEG@//
63/^LIBPNG *=/s/@LIBPNG@//
64/^LIBGIF *=/s/@LIBGIF@//
65/^LIBXPM *=/s/@LIBXPM@//
66/^XFT_LIBS *=/s/@XFT_LIBS@//
5a903aa9
GM
67/^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
68/^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
69/^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
70/^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
71/^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
72/^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
73/^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
74/^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
9fdec8bc
EZ
75/^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
76/^DBUS_LIBS *=/s/@DBUS_LIBS@//
77/^DBUS_OBJ *=/s/@DBUS_OBJ@//
78/^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
79/^GCONF_LIBS *=/s/@GCONF_LIBS@//
80/^GTK_OBJ *=/s/@GTK_OBJ@//
40c17879 81/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
dbd3f723 82/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
9fdec8bc
EZ
83/^LIBXMU *=/s/@LIBXMU@//
84/^LIBXSM *=/s/@LIBXSM@//
85/^LIBXTR6 *=/s/@LIBXTR6@//
02b49580 86/^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
1a82cca9 87/^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
16455a85 88/^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
9fdec8bc
EZ
89/^XOBJ *=/s/@XOBJ@//
90/^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
c107c335 91/^LIBSOUND *=/s/@LIBSOUND@//
e8eaafa2 92/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
478e48df
EZ
93/^RSVG_LIBS *=/s/@RSVG_LIBS@//
94/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
9fdec8bc
EZ
95/^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
96/^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
dbd3f723 97/^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
f14d1dfd 98/^MSDOS_SUPPORT *=/s/= */= $(MSDOS_SUPPORT_REAL)/
177b0288
GM
99/^ns_appdir *=/s/@ns_appdir@//
100/^ns_appbindir *=/s/@ns_appbindir@//
101/^ns_appsrc *=/s/@ns_appsrc@//
9fdec8bc
EZ
102/^NS_OBJ *=/s/@NS_OBJ@//
103/^NS_SUPPORT *=/s/@NS_SUPPORT@//
5a903aa9 104/^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
5a903aa9 105/^LIBRESOLV *=/s/@LIBRESOLV@//
9fdec8bc
EZ
106/^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
107/^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
108/^START_FILES *=/s/@START_FILES@//
e2a1f100 109/^OTHER_FILES *=/s/@OTHER_FILES@//
9fdec8bc 110/^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
6e546d18 111/^FONT_OBJ *=/s/@FONT_OBJ@//
11842bd8
GM
112/^MOUSE_SUPPORT *=/s/@MOUSE_SUPPORT@/$(REAL_MOUSE_SUPPORT)/
113/^TOOLTIP_SUPPORT *=/s/@TOOLTIP_SUPPORT@//
114/^WINDOW_SUPPORT *=/s/@WINDOW_SUPPORT@//
5a903aa9 115/^LIBGPM *=/s/@LIBGPM@//
9a1d32e7 116/^EXEEXT *=/s/@EXEEXT@/.exe/
3545021d 117/^OLDXMENU *=/s/@OLDXMENU@//
4235ca47 118/^LIBXMENU *=/s/@LIBXMENU@//
02d4ac0e 119/^LIBX_OTHER *=/s/@LIBX_OTHER@//
be4ff9da
GM
120/^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
121/^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
40dc6bf4 122/^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
9fdec8bc
EZ
123/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
124/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
5a903aa9 125/^UNEXEC_OBJ *=/s/@unexec@/unexec.o/
e8752c66 126/^CANNOT_DUMP *=/s/@cannot_dump@/no/
9d5cf9b6
GM
127/^DEPFLAGS *=/s/@DEPFLAGS@//
128/^MKDEPDIR *=/s/@MKDEPDIR@/:/
9a1d32e7 129/^version *=/s/@[^@\n]*@//
515dd711
RS
130/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
131/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
132/^@SET_MAKE@$/s/@SET_MAKE@//
489d31a4 133/^@NS_IMPL_GNUSTEP_INC@/s/@NS_IMPL_GNUSTEP_INC@//
8877ca0f 134/^NS_IMPL_GNUSTEP_TEMACS_LDFLAGS *=/s/@NS_IMPL_GNUSTEP_TEMACS_LDFLAGS@//
515dd711
RS
135/^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
136/^.\${libsrc}make-doc/s!>.*$!!
137/^[\f ]*$/d
138/^temacs:/s/prefix-args//
ad23b7e1 139/^temacs:/s/stamp-oldxmenu//
9a1d32e7 140/^RUN_TEMACS *=/s|`/bin/pwd`|.|
b1039ed6
EZ
141/^ mv \.\/\.gdbinit/d
142/^ if test -f/c\
143 command.com /c if exist .gdbinit rm -f _gdbinit
144/^ else mv \.\/\.gdbinit/d
515dd711 145/^ #/d
be52dc90 146/^ cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
9a1d32e7
EZ
147/^ @: /d
148/^ -\{0,1\}ln -/s/ln -f/cp -pf/
149/^[ ]touch /s/touch/djecho $@ >/
c1d0dcfd 150s/@YMF_PASS_LDFLAGS@/flags/
9d5cf9b6 151s/@deps_frag@//
8f331aa5
EZ
152s/bootstrap-emacs/b-emacs/
153s/bootstrap-temacs/b-temacs/
154s/bootstrap-doc/b-doc/
155/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
ba68f95a 156s/echo.*buildobj.lst/dj&/
164fd5f8
EZ
157/ --load loadup bootstrap/i\
158 stubedit temacs.exe minstack=1024k
159/ --load loadup bootstrap/a\
160 stubify emacs
8f331aa5 161/^ mv -f emacs/a\
164fd5f8
EZ
162 stubedit b-emacs.exe minstack=3072k\
163 djecho bootlisp > bootlisp
9a1d32e7
EZ
164/^ -\{0,1\}rm -f/s/\\#/#/
165/^ @\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
a6e656a4 166/^ echo.* buildobj.h/s|echo |djecho |
ab5796a9
MB
167
168# arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c