sed1v2.inp 5.54 KB
Newer Older
Richard M. Stallman's avatar
Richard M. Stallman committed
1
# -sed1v2.inp-----------------------------------------------------------
2
# Configuration script for src/Makefile under DJGPP v2.x
Richard M. Stallman's avatar
Richard M. Stallman committed
3
# ----------------------------------------------------------------------
4
#
5 6
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
#   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
7 8 9 10 11 12 13 14 15 16 17 18
#
# This file is part of GNU Emacs.
#
# This file is free software; as a special exception, the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# ----------------------------------------------------------------------
Richard M. Stallman's avatar
Richard M. Stallman committed
19 20 21 22
s/^#.*//
s/^[ \f\t][ \f\t]*$//
s/^ /	/
s/\.h\.in/.h-in/
23
/^	LC_ALL=C \$(RUN_TEMACS)/i\
Eli Zaretskii's avatar
Eli Zaretskii committed
24
	stubedit temacs.exe minstack=1024k
25
/^	LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
Eli Zaretskii's avatar
Eli Zaretskii committed
26 27 28
/-batch -l loadup/a\
	stubify emacs\
	stubedit emacs.exe minstack=2048k
Richard M. Stallman's avatar
Richard M. Stallman committed
29 30 31
/^MAKE *=/s/^/# /
/^SHELL *=/s/^/# /
/^srcdir *=/s/@[^@\n]*@/./
32
/^abs_builddir *=/s|@abs_builddir@|../src|
Richard M. Stallman's avatar
Richard M. Stallman committed
33 34 35
/^VPATH *=/s/@[^@\n]*@/./
/^CC *=/s/@[^@\n]*@/gcc/
/^CPP *=/s/@[^@\n]*@/gcc -e/
36
/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
Eli Zaretskii's avatar
Eli Zaretskii committed
37
/^ALL_CFLAGS *=/s/@[^@\n]*@//g
38 39
/^CPPFLAGS *=/s/@[^@\n]*@//
/^LDFLAGS *=/s/@[^@\n]*@//
Dave Love's avatar
Dave Love committed
40
/^LIBS *=/s/@[^@\n]*@//
Eli Zaretskii's avatar
Eli Zaretskii committed
41 42 43
/^LIBES *=/,/^ *$/ {
  s/@[^@\n]*@//g
}
44
/^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
45 46
/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
/^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
47 48
/^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
/^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
49
#/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
50 51 52 53 54
/^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
/^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
/^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
/^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
/^LD_SWITCH_SYSTEM_EXTRA *=/s/@LD_SWITCH_SYSTEM_EXTRA@//
Glenn Morris's avatar
Glenn Morris committed
55
/^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
56
/^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
57
/^LIB_GCC *=/s/@LIB_GCC@/-Lgcc/
58 59
/^LIB_STANDARD *=/s/@LIB_STANDARD@//
/^LIB_MATH *=/s/@LIB_MATH@/-lm/
60 61 62 63 64 65
/^LIBTIFF *=/s/@LIBTIFF@//
/^LIBJPEG *=/s/@LIBJPEG@//
/^LIBPNG *=/s/@LIBPNG@//
/^LIBGIF *=/s/@LIBGIF@//
/^LIBXPM *=/s/@LIBXPM@//
/^XFT_LIBS *=/s/@XFT_LIBS@//
66 67 68 69 70 71 72 73
/^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
/^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
/^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
/^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
/^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
/^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
/^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
/^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
74 75 76 77 78 79
/^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
/^DBUS_LIBS *=/s/@DBUS_LIBS@//
/^DBUS_OBJ *=/s/@DBUS_OBJ@//
/^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
/^GCONF_LIBS *=/s/@GCONF_LIBS@//
/^GTK_OBJ *=/s/@GTK_OBJ@//
80
/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
Eli Zaretskii's avatar
Eli Zaretskii committed
81
/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
82 83 84
/^LIBXMU *=/s/@LIBXMU@//
/^LIBXSM *=/s/@LIBXSM@//
/^LIBXTR6 *=/s/@LIBXTR6@//
85
/^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
86
/^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
87
/^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
88 89
/^XOBJ *=/s/@XOBJ@//
/^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
90
/^LIBSOUND *=/s/@LIBSOUND@//
Eli Zaretskii's avatar
Eli Zaretskii committed
91
/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
92 93
/^RSVG_LIBS *=/s/@RSVG_LIBS@//
/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
94 95
/^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
/^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
Eli Zaretskii's avatar
Eli Zaretskii committed
96
/^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
Glenn Morris's avatar
Glenn Morris committed
97
/^MSDOS_SUPPORT *=/s/= */= $(MSDOS_SUPPORT_REAL)/
98 99 100
/^ns_appdir *=/s/@ns_appdir@//
/^ns_appbindir *=/s/@ns_appbindir@//
/^ns_appsrc *=/s/@ns_appsrc@//
101 102
/^NS_OBJ *=/s/@NS_OBJ@//
/^NS_SUPPORT *=/s/@NS_SUPPORT@//
103 104
/^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
/^LIBRESOLV *=/s/@LIBRESOLV@//
105 106 107
/^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
/^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
/^START_FILES *=/s/@START_FILES@//
Eli Zaretskii's avatar
Eli Zaretskii committed
108
/^OTHER_FILES *=/s/@OTHER_FILES@//
109
/^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
110
/^FONT_OBJ *=/s/@FONT_OBJ@//
111 112 113
/^MOUSE_SUPPORT *=/s/@MOUSE_SUPPORT@/$(REAL_MOUSE_SUPPORT)/
/^TOOLTIP_SUPPORT *=/s/@TOOLTIP_SUPPORT@//
/^WINDOW_SUPPORT *=/s/@WINDOW_SUPPORT@//
114
/^LIBGPM *=/s/@LIBGPM@//
Eli Zaretskii's avatar
Eli Zaretskii committed
115
/^EXEEXT *=/s/@EXEEXT@/.exe/
116
/^OLDXMENU *=/s/@OLDXMENU@//
117
/^LIBXMENU *=/s/@LIBXMENU@//
118
/^LIBX_OTHER *=/s/@LIBX_OTHER@//
119 120
/^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
/^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
121 122
/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
123
/^UNEXEC_OBJ *=/s/@unexec@/unexec.o/
Eli Zaretskii's avatar
Eli Zaretskii committed
124
/^version *=/s/@[^@\n]*@//
Richard M. Stallman's avatar
Richard M. Stallman committed
125 126 127
/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
/^@SET_MAKE@$/s/@SET_MAKE@//
128
/^@NS_IMPL_GNUSTEP_INC@/s/@NS_IMPL_GNUSTEP_INC@//
Glenn Morris's avatar
Glenn Morris committed
129
/^NS_IMPL_GNUSTEP_TEMACS_LDFLAGS *=/s/@NS_IMPL_GNUSTEP_TEMACS_LDFLAGS@//
Richard M. Stallman's avatar
Richard M. Stallman committed
130 131 132 133
/^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
/^.\${libsrc}make-doc/s!>.*$!!
/^[ 	]*$/d
/^temacs:/s/prefix-args//
134
/^temacs:/s/stamp-oldxmenu//
Eli Zaretskii's avatar
Eli Zaretskii committed
135
/^RUN_TEMACS *=/s|`/bin/pwd`|.|
136 137 138 139
/^	mv \.\/\.gdbinit/d
/^	if test -f/c\
	command.com /c if exist .gdbinit rm -f _gdbinit
/^	else mv \.\/\.gdbinit/d
Richard M. Stallman's avatar
Richard M. Stallman committed
140
/^	#/d
141
/^	cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
Eli Zaretskii's avatar
Eli Zaretskii committed
142 143 144
/^	@: /d
/^	-\{0,1\}ln -/s/ln -f/cp -pf/
/^[ 	]touch /s/touch/djecho $@ >/
Eli Zaretskii's avatar
Eli Zaretskii committed
145 146 147 148
s/bootstrap-emacs/b-emacs/
s/bootstrap-temacs/b-temacs/
s/bootstrap-doc/b-doc/
/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
149
s/echo.*buildobj.lst/dj&/
150 151 152 153
/ --load loadup bootstrap/i\
	stubedit temacs.exe minstack=1024k
/ --load loadup bootstrap/a\
	stubify emacs
Eli Zaretskii's avatar
Eli Zaretskii committed
154
/^	mv -f emacs/a\
155 156
	stubedit b-emacs.exe minstack=3072k\
	djecho bootlisp > bootlisp
Eli Zaretskii's avatar
Eli Zaretskii committed
157 158
/^	-\{0,1\}rm -f/s/\\#/#/
/^	@\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
159
/^	echo.* buildobj.h/s|echo |djecho |
Miles Bader's avatar
Miles Bader committed
160 161

# arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c