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, 2005,
6 # 2006, 2007, 2008, 2009, 2010 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 /^abs_builddir *=/s|@abs_builddir@|../src|
33 /^VPATH *=/s/@[^@\n]*@/./
34 /^CC *=/s/@[^@\n]*@/gcc/
35 /^CPP *=/s/@[^@\n]*@/gcc -e/
36 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
37 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
38 /^CPPFLAGS *=/s/@[^@\n]*@//
39 /^LDFLAGS *=/s/@[^@\n]*@//
40 /^LIBS *=/s/@[^@\n]*@//
44 /^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
45 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
46 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
47 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
48 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
49 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
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 /^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
55 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
56 /^LIB_GCC *=/s/@LIB_GCC@/-Lgcc/
57 /^LD *=/s/@LINKER@/$(CC)/
58 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
59 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
60 /^LIBTIFF *=/s/@LIBTIFF@//
61 /^LIBJPEG *=/s/@LIBJPEG@//
62 /^LIBPNG *=/s/@LIBPNG@//
63 /^LIBGIF *=/s/@LIBGIF@//
64 /^LIBXPM *=/s/@LIBXPM@//
65 /^XFT_LIBS *=/s/@XFT_LIBS@//
66 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
67 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
68 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
69 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
70 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
71 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
72 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
73 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
74 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
75 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
76 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
77 /^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
78 /^GCONF_LIBS *=/s/@GCONF_LIBS@//
79 /^GTK_OBJ *=/s/@GTK_OBJ@//
80 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
81 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
82 /^LIBXMU *=/s/@LIBXMU@//
83 /^LIBXSM *=/s/@LIBXSM@//
84 /^LIBXTR6 *=/s/@LIBXTR6@//
85 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
86 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
87 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
89 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
90 /^LIBSOUND *=/s/@LIBSOUND@//
91 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
92 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
93 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
94 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
95 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
96 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
97 /^MSDOS_SUPPORT *=/s/= */= $(MSDOS_SUPPORT_REAL)/
98 /^ns_appdir *=/s/@ns_appdir@//
99 /^ns_appbindir *=/s/@ns_appbindir@//
100 /^ns_appsrc *=/s/@ns_appsrc@//
101 /^NS_OBJ *=/s/@NS_OBJ@//
102 /^NS_SUPPORT *=/s/@NS_SUPPORT@//
103 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
104 /^LIBRESOLV *=/s/@LIBRESOLV@//
105 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
106 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
107 /^START_FILES *=/s/@START_FILES@//
108 /^OTHER_FILES *=/s/@OTHER_FILES@//
109 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
110 /^FONT_OBJ *=/s/@FONT_OBJ@//
111 /^MOUSE_SUPPORT *=/s/@MOUSE_SUPPORT@/$(REAL_MOUSE_SUPPORT)/
112 /^TOOLTIP_SUPPORT *=/s/@TOOLTIP_SUPPORT@//
113 /^WINDOW_SUPPORT *=/s/@WINDOW_SUPPORT@//
114 /^LIBGPM *=/s/@LIBGPM@//
115 /^EXEEXT *=/s/@EXEEXT@/.exe/
116 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
117 /^LIBXMENU *=/s/@LIBXMENU@//
118 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
119 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
120 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
121 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
122 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
123 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
124 /^UNEXEC_OBJ *=/s/@unexec@/unexec.o/
125 /^CANNOT_DUMP *=/s/@cannot_dump@/no/
126 /^DEPFLAGS *=/s/@DEPFLAGS@//
127 /^MKDEPDIR *=/s/@MKDEPDIR@/:/
128 /^version *=/s/@[^@\n]*@//
129 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
130 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
131 /^@SET_MAKE@$/s/@SET_MAKE@//
132 /^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
133 /^.\${libsrc}make-doc/s!>.*$!!
135 /^temacs:/s/prefix-args//
136 /^temacs:/s/stamp-oldxmenu//
137 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
138 /^ mv \.\/\.gdbinit/d
140 command.com /c if exist .gdbinit rm -f _gdbinit
141 /^ else mv \.\/\.gdbinit/d
143 /^ cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
145 /^ -\{0,1\}ln -/s/ln -f/cp -pf/
146 /^[ ]touch /s/touch/djecho $@ >/
147 s/@YMF_PASS_LDFLAGS@/flags/
150 s/@PRE_EDIT_LDFLAGS@//
151 s/@POST_EDIT_LDFLAGS@//
152 s/bootstrap-emacs/b-emacs/
153 s/bootstrap-temacs/b-temacs/
154 s/bootstrap-doc/b-doc/
155 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
156 s/echo.*buildobj.lst/dj&/
157 / --load loadup bootstrap/i\
158 stubedit temacs.exe minstack=1024k
159 / --load loadup bootstrap/a\
162 stubedit b-emacs.exe minstack=3072k\
163 djecho bootlisp > bootlisp
164 /^ -\{0,1\}rm -f/s/\\#/#/
165 /^ @\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
166 /^ echo.* buildobj.h/s|echo |djecho |
168 # arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c