sed1v2.inp 2.37 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  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\
24
	stubedit temacs.exe minstack=100k
25
/^	LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
Richard M. Stallman's avatar
Richard M. Stallman committed
26 27 28 29 30 31
/^MAKE *=/s/^/# /
/^SHELL *=/s/^/# /
/^srcdir *=/s/@[^@\n]*@/./
/^VPATH *=/s/@[^@\n]*@/./
/^CC *=/s/@[^@\n]*@/gcc/
/^CPP *=/s/@[^@\n]*@/gcc -e/
32
/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
33 34
/^CPPFLAGS *=/s/@[^@\n]*@//
/^LDFLAGS *=/s/@[^@\n]*@//
Dave Love's avatar
Dave Love committed
35
/^LIBS *=/s/@[^@\n]*@//
36 37
/^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
/^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
38
/^LIBSOUND *=/s/@LIBSOUND@//
Eli Zaretskii's avatar
Eli Zaretskii committed
39
/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
40 41
/^RSVG_LIBS *=/s/@RSVG_LIBS@//
/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
42
/^EXEEXT *=/s/@EXEEXT@//
Richard M. Stallman's avatar
Richard M. Stallman committed
43 44 45 46 47 48 49 50
/^LN_S *=/s/@[^@\n]*@/ln -s/
/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
/^@SET_MAKE@$/s/@SET_MAKE@//
/^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
/^.\${libsrc}make-doc/s!>.*$!!
/^[ 	]*$/d
/^temacs:/s/prefix-args//
51
/^temacs:/s/stamp-oldxmenu//
52 53 54 55
/^	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
56
/^	#/d
57
/^	cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
Eli Zaretskii's avatar
Eli Zaretskii committed
58 59 60 61 62 63
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/
/^	els=/c\
	${libsrc}make-docfile -o ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP:.elc=.el} ${shortlisp:.elc=.el} ${SOME_MACHINE_OBJECTS} ${obj}
64
s/echo.*buildobj.lst/dj&/
Eli Zaretskii's avatar
Eli Zaretskii committed
65
/^	mv -f emacs/a\
Eli Zaretskii's avatar
Eli Zaretskii committed
66 67
	stubify b-emacs\
	stubedit b-emacs.exe minstack=1024k\
68
	rm -f emacs.exe temacs.exe emacs
Eli Zaretskii's avatar
Eli Zaretskii committed
69
/^	rm -f/s/\\#/#/
Miles Bader's avatar
Miles Bader committed
70 71

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