1 # -sed1.inp-------------------------------------------------------------
2 # Configuration script for src/makefile
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 2000
6 # 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 # ----------------------------------------------------------------------
19 # In case src/Makefile needs to rebuild `make-doc.exe' (might happen under
20 # Windows 95), make sure it gets built with commands that DOS
21 # understands (one command per line).
26 s!^ \./temacs! go32 temacs!
27 s!/bin/sh!command.com!
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/
35 /^LIBS *=/s/@[^@\n]*@//
36 /^LIBOBJS *=/s/@[^@\n]*@//
37 /^LN_S *=/s/@[^@\n]*@/ln -s/
38 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
39 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
40 /^@SET_MAKE@$/s/@SET_MAKE@//
41 /^.\${libsrc}make-docfile.*>/s!make-docfile!make-doc.exe -o ../etc/DOC!
42 /^.\${libsrc}make-doc/s!>.*$!!
43 /^\${libsrc}make-docfile:/c\
44 ${libsrc}make-doc.exe:\
47 $(MAKE) ${MFLAGS} make-docfile -W make-docfile.c\
50 /^ cd \${libsrc}; \${MAKE} \${MFLAGS} make-docfile/d
51 /\${libsrc}make-docfile/s/-docfile[ ]/-doc.exe /
53 /^temacs:/s/prefix-args//
54 /^temacs:/s/stamp-oldxmenu//