1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2011 Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
9 # This file is free software; as a special exception, the author gives
10 # unlimited permission to copy and/or distribute it, with or without
11 # modifications, as long as this notice is preserved.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 # ----------------------------------------------------------------------
24 /^srcdir *=/s/@[^@\n]*@/./
25 /^abs_builddir *=/s|@abs_builddir@|../src|
26 /^VPATH *=/s/@[^@\n]*@/./
27 /^CC *=/s/@[^@\n]*@/gcc/
28 /^CPP *=/s/@[^@\n]*@/gcc -e/
29 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
30 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
31 /^CPPFLAGS *=/s/@[^@\n]*@//
32 /^LDFLAGS *=/s/@[^@\n]*@//
33 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
34 /^LIBS *=/s/@[^@\n]*@//
38 /^LIBOBJS *=/s/@[^@\n]*@//
39 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
40 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
41 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
42 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
43 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
44 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
45 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
46 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
47 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
48 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
49 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
50 /^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
51 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
52 /^LIB_GCC *=/s/@LIB_GCC@//
53 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
54 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
55 /^LIBTIFF *=/s/@LIBTIFF@//
56 /^LIBJPEG *=/s/@LIBJPEG@//
57 /^LIBPNG *=/s/@LIBPNG@//
58 /^LIBGIF *=/s/@LIBGIF@//
59 /^LIBXPM *=/s/@LIBXPM@//
60 /^XFT_LIBS *=/s/@XFT_LIBS@//
61 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
62 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
63 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
64 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
65 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
66 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
67 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
68 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
69 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
70 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
71 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
72 /^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
73 /^GCONF_LIBS *=/s/@GCONF_LIBS@//
74 /^GTK_OBJ *=/s/@GTK_OBJ@//
75 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
76 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
77 /^LIBXMU *=/s/@LIBXMU@//
78 /^LIBXSM *=/s/@LIBXSM@//
79 /^LIBXTR6 *=/s/@LIBXTR6@//
80 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
81 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
82 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
84 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
85 /^LIBSOUND *=/s/@LIBSOUND@//
86 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
87 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
88 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
89 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
90 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
91 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
92 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
93 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
94 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
95 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
96 /^MSDOS_SUPPORT *=/s/= */= $(MSDOS_SUPPORT_REAL)/
97 /^ns_appdir *=/s/@ns_appdir@//
98 /^ns_appbindir *=/s/@ns_appbindir@//
99 /^ns_appsrc *=/s/@ns_appsrc@//
100 /^NS_OBJ *=/s/@NS_OBJ@//
101 /^NS_OBJC_OBJ *=/s/@NS_OBJC_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 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
107 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
108 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
109 /^START_FILES *=/s/@START_FILES@//
110 /^OTHER_FILES *=/s/@OTHER_FILES@//
111 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
112 /^FONT_OBJ *=/s/@FONT_OBJ@//
113 /^MOUSE_SUPPORT *=/s/@MOUSE_SUPPORT@/$(REAL_MOUSE_SUPPORT)/
114 /^TOOLTIP_SUPPORT *=/s/@TOOLTIP_SUPPORT@//
115 /^WINDOW_SUPPORT *=/s/@WINDOW_SUPPORT@//
116 /^LIBGPM *=/s/@LIBGPM@//
117 /^EXEEXT *=/s/@EXEEXT@/.exe/
118 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
119 /^LIBXMENU *=/s/@LIBXMENU@//
120 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
121 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
122 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
123 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
124 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
125 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
126 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
127 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
128 /^DEPFLAGS *=/s/@DEPFLAGS@//
129 /^MKDEPDIR *=/s/@MKDEPDIR@//
130 /^version *=/s/@[^@\n]*@//
131 /^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h!
132 /^S_FILE *=/s!@S_FILE@!$(srcdir)/s/msdos.h!
133 /^@SET_MAKE@$/s/@SET_MAKE@//
134 /^.\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o ../etc/DOC!
135 /^.\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp!
136 /^.\$(libsrc)\/make-doc/s!>.*$!!
138 /^ if test -f/,/^ fi$/c\
139 command.com /c if exist .gdbinit rm -f _gdbinit
140 /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d
142 /^ LC_ALL=C \$(RUN_TEMACS)/i\
143 stubedit temacs.exe minstack=1024k
144 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
147 stubedit emacs.exe minstack=2048k
151 s/^ [^ ]*move-if-change / update /
152 /^ echo[ ][ ]*timestamp/s/echo /djecho /
153 /^ .*djecho timestamp/a\
155 /^ cd \$(lib) && \$(MAKE)/c\
156 $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
157 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
158 /^ *@\$(MKDEPDIR) *$/d
159 /^ mv \.\/\.gdbinit/d
160 /^ if test -f/,/^ fi$/c\
161 command.com /c if exist .gdbinit rm -f _gdbinit
163 /^ cd.*make-docfile/s!$!; cd ../src!
165 /^ -\{0,1\} *ln -/s/ln -f/cp -pf/
166 /^[ ]touch /s/touch/djecho $@ >/
167 s/@YMF_PASS_LDFLAGS@/flags/
170 s/@PRE_EDIT_LDFLAGS@//
171 s/@POST_EDIT_LDFLAGS@//
172 s/bootstrap-emacs/b-emacs/
173 s/bootstrap-temacs/b-temacs/
174 s/bootstrap-doc/b-doc/
175 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
176 s/echo.*buildobj.lst/dj&/
177 / --load loadup bootstrap/i\
178 stubedit temacs.exe minstack=1024k
179 / --load loadup bootstrap/a\
182 stubedit b-emacs.exe minstack=3072k\
183 djecho bootlisp > bootlisp
184 /^ -\{0,1\}rm -f/s/\\#/#/
185 /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
186 /^ *THEFILE=/s|$|\; cd ../src|
187 /^ echo.* buildobj.h/s|echo |djecho |
188 # Make the GCC command line fit one screen line
189 /^[ ][ ]*\$(C_SWITCH_X_SYSTEM)/d
190 /^[ ][ ]*\$(GCONF_CFLAGS)/d
191 /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d
192 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
193 s/ \$(C_SWITCH_X_SITE)//
195 s| -I\$(srcdir)/../lib||