Commit | Line | Data |
---|---|---|
32b0abf7 | 1 | # -sed1.inp------------------------------------------------------------- |
9d177572 | 2 | # Configuration script for src/makefile |
32b0abf7 | 3 | # ---------------------------------------------------------------------- |
092191c6 | 4 | # |
e3efab9c GM |
5 | # Copyright (C) 1993, 1994, 1995, 1996, 1997, 2000 |
6 | # Free Software Foundation, Inc. | |
7 | # | |
8 | # This file is part of GNU Emacs. | |
9 | # | |
d7fcecc1 EZ |
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. | |
e3efab9c | 13 | # |
d7fcecc1 | 14 | # This program is distributed in the hope that it will be useful, |
e3efab9c | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
d7fcecc1 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
076fa2d7 | 17 | # |
d7fcecc1 | 18 | # ---------------------------------------------------------------------- |
092191c6 | 19 | # In case src/Makefile needs to rebuild `make-doc.exe' (might happen under |
88ba4f30 | 20 | # Windows 95), make sure it gets built with commands that DOS |
092191c6 | 21 | # understands (one command per line). |
32b0abf7 RS |
22 | s/^#.*// |
23 | s/^[ \f\t][ \f\t]*$// | |
24 | s/^ / / | |
32b0abf7 | 25 | s/\.h\.in/.h-in/ |
32b0abf7 RS |
26 | s!^ \./temacs! go32 temacs! |
27 | s!/bin/sh!command.com! | |
28 | /^MAKE *=/s/^/# / | |
29 | /^SHELL *=/s/^/# / | |
c554da1f RS |
30 | /^srcdir *=/s/@[^@\n]*@/./ |
31 | /^VPATH *=/s/@[^@\n]*@/./ | |
32 | /^CC *=/s/@[^@\n]*@/gcc/ | |
33 | /^CPP *=/s/@[^@\n]*@/gcc -e/ | |
34 | /^CFLAGS *=/s/@[^@\n]*@/-O2 -g/ | |
dd4e2b00 DL |
35 | /^LIBS *=/s/@[^@\n]*@// |
36 | /^LIBOBJS *=/s/@[^@\n]*@// | |
c554da1f | 37 | /^LN_S *=/s/@[^@\n]*@/ln -s/ |
56206da3 | 38 | /^M_FILE *=/s!@[^@\n]*@!m/intel386.h! |
c554da1f | 39 | /^S_FILE *=/s!@[^@\n]*@!s/msdos.h! |
32b0abf7 | 40 | /^@SET_MAKE@$/s/@SET_MAKE@// |
ad402541 | 41 | /^.\${libsrc}make-docfile.*>/s!make-docfile!make-doc.exe -o ../etc/DOC! |
32b0abf7 | 42 | /^.\${libsrc}make-doc/s!>.*$!! |
092191c6 RS |
43 | /^\${libsrc}make-docfile:/c\ |
44 | ${libsrc}make-doc.exe:\ | |
45 | cd ..\ | |
46 | cd lib-src\ | |
47 | $(MAKE) ${MFLAGS} make-docfile -W make-docfile.c\ | |
48 | cd ..\ | |
49 | cd src | |
50 | /^ cd \${libsrc}; \${MAKE} \${MFLAGS} make-docfile/d | |
51 | /\${libsrc}make-docfile/s/-docfile[ ]/-doc.exe / | |
32b0abf7 | 52 | /^[\f ]*$/d |
87485d6f | 53 | /^temacs:/s/prefix-args// |
ad23b7e1 | 54 | /^temacs:/s/stamp-oldxmenu// |
87485d6f | 55 | /^ #/d |