1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2014 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_X_SITE_RPATH *=/s/@LD_SWITCH_X_SITE_RPATH@//
52 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
53 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
54 /^LIB_GCC *=/s/@LIB_GCC@//
55 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
56 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
57 /^LIB_PTHREAD *=/s/@LIB_PTHREAD@//
58 /^LIB_ACL *=/s/@LIB_ACL@//
59 /^LIB_EACCESS *=/s/@LIB_EACCESS@//
60 /^LIB_FDATASYNC *=/s/@LIB_FDATASYNC@//
66 /^XFT_LIBS *=/s/@XFT_LIBS@//
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@//
75 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
76 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
77 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
78 /^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@//
79 /^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
80 /^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
81 /^GFILENOTIFY_LIBS *=/s/@GFILENOTIFY_LIBS@//
82 /^GTK_OBJ *=/s/@GTK_OBJ@//
83 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
84 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
85 /^LIBXMU *=/s/@LIBXMU@//
86 /^LIBXSM *=/s/@LIBXSM@//
87 /^LIBXTR6 *=/s/@LIBXTR6@//
88 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
89 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
90 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
92 /^XGSELOBJ *=/s/@XGSELOBJ@//
93 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
94 /^LIBSOUND *=/s/@LIBSOUND@//
95 /^LIBS_GNUSTEP *=/s/@LIBS_GNUSTEP@//
96 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
97 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
98 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
99 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
100 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
101 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
102 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
103 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
104 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
105 /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
106 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
107 /^NS_OBJ *=/s/@NS_OBJ@//
108 /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
109 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
110 /^LIBRESOLV *=/s/@LIBRESOLV@//
111 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
112 /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@//
113 /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
114 /^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
115 /^LIB_EXECINFO *=/s/@[^@\n]*@//g
116 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
117 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
118 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
119 /^START_FILES *=/s/@START_FILES@//
120 /^OTHER_FILES *=/s/@OTHER_FILES@//
121 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
122 /^FONT_OBJ *=/s/@FONT_OBJ@//
123 /^LIBGPM *=/s/@LIBGPM@//
125 /^EXEEXT *=/s/@EXEEXT@/.exe/
126 /^MKDIR_P *=/s/@MKDIR_P@/gmkdir -p/
127 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
128 /^LIBXMENU *=/s/@LIBXMENU@//
129 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
130 /^XRANDR_LIBS *=/s/@XRANDR_LIBS@//
131 /^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@//
132 /^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@//
133 /^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@//
134 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
135 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
136 /^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@//
137 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
138 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
139 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
140 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
141 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
142 /^DEPFLAGS *=/s/@DEPFLAGS@//
143 /^MKDEPDIR *=/s/@MKDEPDIR@//
144 /^W32_OBJ *=/s/@W32_OBJ@//
145 /^W32_LIBS *=/s/@W32_LIBS@//
146 /^version *=/s/@[^@\n]*@//
147 /^EMACSRES *=/s/@EMACSRES@//
148 /^EMACS_MANIFEST *=/s/@EMACS_MANIFEST@//
149 /^W32_RES_LINK *=/s/@W32_RES_LINK@//
150 /^CM_OBJ *=/s/@CM_OBJ@/cm.o/
151 /^@SET_MAKE@$/s/@SET_MAKE@//
152 /^TEMACS_POST_LINK *=/s/@TEMACS_POST_LINK@/stubedit temacs.exe minstack=1024k/
153 /^ADDSECTION *=/s/@ADDSECTION@//
154 /^ [ ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC!
155 /^ [ ]*\$(libsrc)\/make-docfile.*>.*gl.tmp/s!make-docfile!make-docfile -o gl.tmp!
156 /^.\$(libsrc)\/make-doc/s!>.*$!!
157 /^ [ ]*\$(libsrc)\/make-docfile /s!`[^`]*`!$(lisp); cd ../src!
159 /^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/temacs$(EXEEXT) $(BOOTSTRAPEMACS)/
160 /^ if test -f/,/^ fi$/c\
161 command.com /c if exist .gdbinit rm -f _gdbinit
162 /^ *test "X\$(PAXCTL)" = X/d
163 /^ *test "\$(CANNOT_DUMP)" = "yes"/d
164 /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d
165 /^ *\$(SETFATTR) -n/d
166 /^ -\{0,1\} *ln /s/bootstrap-emacs\$(EXEEXT).*$/bootstrap-emacs$(EXEEXT)/
168 /^ *LC_ALL=C \$(RUN_TEMACS)/i\
169 stubedit temacs.exe minstack=1024k
170 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
173 stubedit emacs.exe minstack=2048k
177 s/^ [^ ]*move-if-change / update /
178 /^ echo[ ][ ]*timestamp/s/echo /djecho /
179 /^ .*djecho timestamp/a\
181 /^ cd ..\/leim && \$(MAKE)/i\
182 $(RUN_TEMACS) -batch -l loadup dump\
184 stubedit emacs.exe minstack=2048k\
185 rm -f b-emacs$(EXEEXT)\
186 cp emacs$(EXEEXT) b-emacs$(EXEEXT)
187 /^ cd ..\/leim && \$(MAKE)/c\
188 $(MAKE) $(MFLAGS) -C ../leim leim-list.el EMACS=$(bootstrap_exe)
189 /^ cd ..\/admin\/unidata && \$(MAKE)/c\
190 $(MAKE) $(MFLAGS) -C ../admin/unidata all EMACS="../$(bootstrap_exe)"
191 /^ cd \$(lib) && \$(MAKE)/c\
192 $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
193 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
194 /^ *@\$(MKDEPDIR) *$/d
195 /^ mv \.\/\.gdbinit/d
196 /^ if test -f/,/^ fi$/c\
197 command.com /c if exist .gdbinit rm -f _gdbinit
199 /^ cd.*make-docfile/s!$!; cd ../src!
201 /^ -\{0,1\} *ln /s/ln /cp /
202 /^[ ]touch /s/touch/djecho $@ >/
203 s/@YMF_PASS_LDFLAGS@/flags/
207 s/@PRE_EDIT_LDFLAGS@//
208 s/@POST_EDIT_LDFLAGS@//
209 s/bootstrap-emacs/b-emacs/
210 s/bootstrap-temacs/b-temacs/
211 s/bootstrap-doc/b-doc/
212 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
213 s/echo.*buildobj.lst/dj&/
214 / --load loadup bootstrap/i\
215 stubedit temacs.exe minstack=1024k
216 / --load loadup bootstrap/a\
219 stubedit b-emacs.exe minstack=3072k\
220 djecho bootlisp > bootlisp
221 /^ -\{0,1\}rm -f/s/\\#/#/
222 /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
223 /^ *THEFILE=/s|$|\; cd ../src|
224 /^ echo.* buildobj.h/s|echo |djecho |
225 /^buildobj\.h:/,/^ mv /{
226 /^ *for /,/^ *done /c\
227 djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/ */", "/g' >>$@.tmp
229 # Make the GCC command line fit one screen line
230 /^[ ][ ]*\$(GNUSTEP_CFLAGS)/d
231 /^[ ][ ]*\$(GCONF_CFLAGS)/d
232 /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d
233 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
234 s/ \$(C_SWITCH_X_SITE)//
236 s| -I\$(srcdir)/../lib||
237 # Add our local inttypes.h to prerequisites where needed
238 /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|