Commit | Line | Data |
---|---|---|
32b0abf7 | 1 | # -sed1.inp------------------------------------------------------------- |
9d177572 | 2 | # Configuration script for src/makefile |
32b0abf7 | 3 | # ---------------------------------------------------------------------- |
092191c6 RS |
4 | # |
5 | # In case src/Makefile needs to rebuild `make-doc.exe' (might happen under | |
88ba4f30 | 6 | # Windows 95), make sure it gets built with commands that DOS |
092191c6 | 7 | # understands (one command per line). |
32b0abf7 RS |
8 | s/^#.*// |
9 | s/^[ \f\t][ \f\t]*$// | |
10 | s/^ / / | |
32b0abf7 | 11 | s/\.h\.in/.h-in/ |
32b0abf7 RS |
12 | s!^ \./temacs! go32 temacs! |
13 | s!/bin/sh!command.com! | |
14 | /^MAKE *=/s/^/# / | |
15 | /^SHELL *=/s/^/# / | |
c554da1f RS |
16 | /^srcdir *=/s/@[^@\n]*@/./ |
17 | /^VPATH *=/s/@[^@\n]*@/./ | |
18 | /^CC *=/s/@[^@\n]*@/gcc/ | |
19 | /^CPP *=/s/@[^@\n]*@/gcc -e/ | |
20 | /^CFLAGS *=/s/@[^@\n]*@/-O2 -g/ | |
dd4e2b00 DL |
21 | /^LIBS *=/s/@[^@\n]*@// |
22 | /^LIBOBJS *=/s/@[^@\n]*@// | |
c554da1f | 23 | /^LN_S *=/s/@[^@\n]*@/ln -s/ |
56206da3 | 24 | /^M_FILE *=/s!@[^@\n]*@!m/intel386.h! |
c554da1f | 25 | /^S_FILE *=/s!@[^@\n]*@!s/msdos.h! |
32b0abf7 | 26 | /^@SET_MAKE@$/s/@SET_MAKE@// |
ad402541 | 27 | /^.\${libsrc}make-docfile.*>/s!make-docfile!make-doc.exe -o ../etc/DOC! |
32b0abf7 | 28 | /^.\${libsrc}make-doc/s!>.*$!! |
092191c6 RS |
29 | /^\${libsrc}make-docfile:/c\ |
30 | ${libsrc}make-doc.exe:\ | |
31 | cd ..\ | |
32 | cd lib-src\ | |
33 | $(MAKE) ${MFLAGS} make-docfile -W make-docfile.c\ | |
34 | cd ..\ | |
35 | cd src | |
36 | /^ cd \${libsrc}; \${MAKE} \${MFLAGS} make-docfile/d | |
37 | /\${libsrc}make-docfile/s/-docfile[ ]/-doc.exe / | |
32b0abf7 | 38 | /^[\f ]*$/d |
87485d6f | 39 | /^temacs:/s/prefix-args// |
ad23b7e1 | 40 | /^temacs:/s/stamp-oldxmenu// |
87485d6f | 41 | /^ #/d |