1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2013 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 /^ALL_CFLAGS *=/s/ -I\.//g
32 /^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
33 /^LDFLAGS *=/s/@[^@\n]*@//
34 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
35 /^LIBS *=/s/@[^@\n]*@//
39 /^LIBOBJS *=/s/@[^@\n]*@//
40 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
41 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
42 /^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
43 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
44 /^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
45 /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
46 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
47 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
48 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
49 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
50 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
51 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
52 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
53 /^LIB_GCC *=/s/@LIB_GCC@//
54 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
55 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
56 /^LIB_PTHREAD *=/s/@LIB_PTHREAD@//
62 /^XFT_LIBS *=/s/@XFT_LIBS@//
63 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
64 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
65 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
66 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
67 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
68 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
69 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
70 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
71 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
72 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
73 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
74 /^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
75 /^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
76 /^GTK_OBJ *=/s/@GTK_OBJ@//
77 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
78 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
79 /^LIBXMU *=/s/@LIBXMU@//
80 /^LIBXSM *=/s/@LIBXSM@//
81 /^LIBXTR6 *=/s/@LIBXTR6@//
82 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
83 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
84 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
86 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
87 /^LIBSOUND *=/s/@LIBSOUND@//
88 /^LIBS_GNUSTEP *=/s/@LIBS_GNUSTEP@//
89 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
90 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
91 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
92 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
93 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
94 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
95 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
96 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
97 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
98 /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
99 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
100 /^NS_OBJ *=/s/@NS_OBJ@//
101 /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
102 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
103 /^LIBRESOLV *=/s/@LIBRESOLV@//
104 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
105 /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@//
106 /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
107 /^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
108 /^LIB_EXECINFO *=/s/@[^@\n]*@//g
109 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
110 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
111 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
112 /^START_FILES *=/s/@START_FILES@//
113 /^OTHER_FILES *=/s/@OTHER_FILES@//
114 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
115 /^FONT_OBJ *=/s/@FONT_OBJ@//
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 /^W32_OBJ *=/s/@W32_OBJ@//
131 /^W32_LIBS *=/s/@W32_LIBS@//
132 /^version *=/s/@[^@\n]*@//
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!>.*$!!
137 /^ [ ]*\$(libsrc)\/make-docfile /s!`[^`]*`!$(lisp); cd ../src!
139 /^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/temacs$(EXEEXT) $(BOOTSTRAPEMACS)/
140 /^ if test -f/,/^ fi$/c\
141 command.com /c if exist .gdbinit rm -f _gdbinit
142 /^ *test "X\$(PAXCTL)" = X/d
143 /^ *test "\$(CANNOT_DUMP)" = "yes"/d
144 /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d
145 /^ -\{0,1\} *ln /s/bootstrap-emacs\$(EXEEXT).*$/bootstrap-emacs$(EXEEXT)/
147 /^ *LC_ALL=C \$(RUN_TEMACS)/i\
148 stubedit temacs.exe minstack=1024k
149 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
152 stubedit emacs.exe minstack=2048k
156 s/^ [^ ]*move-if-change / update /
157 /^ echo[ ][ ]*timestamp/s/echo /djecho /
158 /^ .*djecho timestamp/a\
160 /^ cd \$(leimdir) && \$(MAKE)/i\
161 $(RUN_TEMACS) -batch -l loadup dump\
163 stubedit emacs.exe minstack=2048k\
164 rm -f b-emacs$(EXEEXT)\
165 cp emacs$(EXEEXT) b-emacs$(EXEEXT)
166 /^ cd \$(leimdir) && \$(MAKE)/c\
167 $(MAKE) $(MFLAGS) -C $(leimdir) leim-list.el EMACS=$(bootstrap_exe)
168 /^ cd \$(lib) && \$(MAKE)/c\
169 $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
170 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
171 /^ *@\$(MKDEPDIR) *$/d
172 /^ mv \.\/\.gdbinit/d
173 /^ if test -f/,/^ fi$/c\
174 command.com /c if exist .gdbinit rm -f _gdbinit
176 /^ cd.*make-docfile/s!$!; cd ../src!
178 /^ -\{0,1\} *ln /s/ln /cp /
179 /^[ ]touch /s/touch/djecho $@ >/
180 s/@YMF_PASS_LDFLAGS@/flags/
184 s/@PRE_EDIT_LDFLAGS@//
185 s/@POST_EDIT_LDFLAGS@//
186 s/bootstrap-emacs/b-emacs/
187 s/bootstrap-temacs/b-temacs/
188 s/bootstrap-doc/b-doc/
189 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
190 s/echo.*buildobj.lst/dj&/
191 / --load loadup bootstrap/i\
192 stubedit temacs.exe minstack=1024k
193 / --load loadup bootstrap/a\
196 stubedit b-emacs.exe minstack=3072k\
197 djecho bootlisp > bootlisp
198 /^ -\{0,1\}rm -f/s/\\#/#/
199 /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
200 /^ *THEFILE=/s|$|\; cd ../src|
201 /^ echo.* buildobj.h/s|echo |djecho |
202 # Make the GCC command line fit one screen line
203 /^[ ][ ]*\$(GNUSTEP_CFLAGS)/d
204 /^[ ][ ]*\$(GCONF_CFLAGS)/d
205 /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d
206 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
207 s/ \$(C_SWITCH_X_SITE)//
209 s| -I\$(srcdir)/../lib||
210 # Add our local inttypes.h to prerequisites where needed
211 /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|