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