1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2012 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 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
43 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
44 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
45 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
46 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
47 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
48 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
49 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
50 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
51 /^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
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@//
57 /^LIBTIFF *=/s/@LIBTIFF@//
58 /^LIBJPEG *=/s/@LIBJPEG@//
59 /^LIBPNG *=/s/@LIBPNG@//
60 /^LIBGIF *=/s/@LIBGIF@//
61 /^LIBXPM *=/s/@LIBXPM@//
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 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
89 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
90 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
91 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
92 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
93 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
94 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
95 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
96 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
97 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
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_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
103 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
104 /^LIBRESOLV *=/s/@LIBRESOLV@//
105 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
106 /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@//
107 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
108 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
109 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
110 /^START_FILES *=/s/@START_FILES@//
111 /^OTHER_FILES *=/s/@OTHER_FILES@//
112 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
113 /^FONT_OBJ *=/s/@FONT_OBJ@//
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_OBJ@/unexcoff.o/
125 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
126 /^DEPFLAGS *=/s/@DEPFLAGS@//
127 /^MKDEPDIR *=/s/@MKDEPDIR@//
128 /^version *=/s/@[^@\n]*@//
129 /^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h!
130 /^S_FILE *=/s!@S_FILE@!$(srcdir)/s/msdos.h!
131 /^@SET_MAKE@$/s/@SET_MAKE@//
132 /^ [ ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC!
133 /^ [ ]*\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp!
134 /^.\$(libsrc)\/make-doc/s!>.*$!!
135 /^ [ ]*\$(libsrc)\/make-docfile /s!`[^`]*`!$(lisp); cd ../src!
137 /^ if test -f/,/^ fi$/c\
138 command.com /c if exist .gdbinit rm -f _gdbinit
139 /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d
141 /^ *LC_ALL=C \$(RUN_TEMACS)/i\
142 stubedit temacs.exe minstack=1024k
143 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
146 stubedit emacs.exe minstack=2048k
150 s/^ [^ ]*move-if-change / update /
151 /^ echo[ ][ ]*timestamp/s/echo /djecho /
152 /^ .*djecho timestamp/a\
154 /^ cd \$(lib) && \$(MAKE)/c\
155 $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
156 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
157 /^ *@\$(MKDEPDIR) *$/d
158 /^ mv \.\/\.gdbinit/d
159 /^ if test -f/,/^ fi$/c\
160 command.com /c if exist .gdbinit rm -f _gdbinit
162 /^ cd.*make-docfile/s!$!; cd ../src!
164 /^ -\{0,1\} *ln -/s/ln -f/cp -pf/
165 /^[ ]touch /s/touch/djecho $@ >/
166 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||
196 # Add our local inttypes.h to prerequisites where needed
197 /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|