lispdir = ../lisp/
epochlispdir = ../epoch-lisp/
etcdir = ../etc/
shortnamesdir = ../shortnames/
cppdir = ../cpp/
VPATH=/afs/athena.mit.edu/contrib/epoch/epoch-4.2/src
SHELL = /bin/sh
MAKE=make
CC = gcc -pipe
STARTFILES = 
CC = gcc -pipe
LD=cc
LDFLAGS =  
LOCALCPP=
CFLAGS=-O2 -finline-functions -Demacs -I/mit/x11/include
XOBJ = x11term.o x11fns.o xevent.o screen.o xdefault.o xresource.o property.o selection.o xutil.o mouse.o button.o xdispepoch.o dispepoch.o
LIBX = -L/mit/x11/rsaixlib -lX11   
GNULIB_VAR=`gcc -print-libgcc-file-name`
obj=    window.o \
	term.o $(XOBJ) \
	emacs.o keyboard.o macros.o keymap.o sysdep.o \
	buffer.o filelock.o insdel.o marker.o \
	minibuf.o fileio.o dired.o filemode.o \
	cmds.o casefiddle.o indent.o search.o regex.o undo.o \
	alloc.o data.o doc.o editfns.o callint.o \
	eval.o fns.o print.o lread.o \
	abbrev.o syntax.o unexec.o mocklisp.o bytecode.o \
	process.o callproc.o $(environobj) \
	doprnt.o
otherobj= lastfile.o $(mallocobj)
lisp=	${lispdir}simple.elc ${lispdir}help.elc \
	${epochlispdir}files.elc ${lispdir}window.elc \
	${lispdir}indent.elc ${epochlispdir}loaddefs.el ${lispdir}paths.el \
	${epochlispdir}startup.elc ${lispdir}lisp.elc \
	${lispdir}page.elc ${lispdir}register.elc \
	${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc \
	${lispdir}text-mode.elc ${lispdir}fill.elc \
	${lispdir}c-mode.elc ${lispdir}isearch.elc \
	${lispdir}replace.elc ${lispdir}abbrev.elc \
	${lispdir}buff-menu.elc ${lispdir}subr.elc \
	${epochlispdir}mini-cl.elc ${epochlispdir}event.elc \
	${epochlispdir}wrapper.elc ${epochlispdir}mouse.elc \
	${epochlispdir}epoch-util.elc ${epochlispdir}epoch.elc \
	${epochlispdir}motion.elc ${epochlispdir}property.elc \
	${epochlispdir}message.elc ${epochlispdir}zone.elc \
	${epochlispdir}selection.elc
SHELL=/bin/sh
LIBES = $(LIBX)  -lrts  $(GNULIB_VAR) 
all: epoch 
epoch: temacs ${etcdir}DOC ${lisp}
	mv temacs epoch
${etcdir}DOC: ${etcdir}make-docfile ${obj} ${lisp}
	rm -f ${etcdir}DOC
	odir=`pwd` ; (cd $(VPATH) ; $$odir/${etcdir}make-docfile ${obj} ${lisp} ${epochlispdir}version.el ) > ${etcdir}DOC
${etcdir}make-docfile:
	cd ${etcdir}; ${MAKE} ${MFLAGS} make-docfile
temacs:  $(LOCALCPP) $(SHORT) $(STARTFILES) ${obj} ${otherobj}  hftctl.o
	$(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs ${STARTFILES} ${obj} ${otherobj}  hftctl.o ${LIBES}
CPP = $(CC) -E
paths.h: paths.h-dist
	echo paths.h needs to be set up from paths.h-dist
	exit 1
config.h: config.h-dist
	echo config.h needs to be set up from config.h-dist
	exit 1
alloca.o : alloca.c
abbrev.o : abbrev.c buffer.h commands.h window.h config.h 
buffer.o : buffer.c syntax.h buffer.h commands.h window.h config.h 
callint.o : callint.c window.h commands.h buffer.h config.h 
callproc.o : callproc.c paths.h buffer.h commands.h config.h 
casefiddle.o : casefiddle.c syntax.h commands.h buffer.h config.h 
cmds.o : cmds.c syntax.h buffer.h commands.h config.h 
crt0.o : crt0.c config.h
	$(CC) -c $(CFLAGS)  crt0.c
dired.o : dired.c commands.h buffer.h config.h 
doc.o : doc.c buffer.h config.h paths.h
doprnt.o : doprnt.c
editfns.o : editfns.c window.h buffer.h config.h 
emacs.o : emacs.c commands.h config.h paths.h
fileio.o : fileio.c window.h buffer.h config.h 
filelock.o : filelock.c buffer.h paths.h config.h
filemode.o : filemode.c 
indent.o : indent.c window.h indent.h buffer.h config.h termchar.h termopts.h
insdel.o : insdel.c window.h buffer.h config.h 
keyboard.o : keyboard.c termchar.h termhooks.h termopts.h buffer.h commands.h window.h macros.h config.h 
keymap.o : keymap.c buffer.h commands.h config.h 
lastfile.o : lastfile.c 
macros.o : macros.c window.h buffer.h commands.h macros.h config.h
malloc.o : malloc.c config.h
marker.o : marker.c buffer.h config.h 
minibuf.o : minibuf.c syntax.h window.h buffer.h commands.h config.h 
mocklisp.o : mocklisp.c buffer.h config.h
process.o : process.c process.h buffer.h window.h termhooks.h termopts.h commands.h config.h dispepoch.h x11term.h
regex.o : regex.c syntax.h buffer.h config.h regex.h 
search.o : search.c regex.h commands.h buffer.h syntax.h config.h 
syntax.o : syntax.c syntax.h buffer.h commands.h config.h 
sysdep.o : sysdep.c config.h dispepoch.h termhooks.h termchar.h termopts.h window.h x11term.h
term.o : term.c termchar.h termhooks.h termopts.h config.h
undo.o : undo.c buffer.h commands.h config.h 
unexec.o : config.h
window.o : window.c window.h indent.h commands.h window.h buffer.h config.h termchar.h
xdispepoch.o : xdispepoch.c dispepoch.h macros.h commands.h indent.h buffer.h termchar.h window.h config.h screen.h screenX.h screenW.h
dispepoch.o : dispepoch.c dispepoch.h screen.h screenX.h screenW.h commands.h window.h buffer.h termchar.h termopts.h config.h 
x11fns.o : x11fns.c window.h x11term.h termchar.h config.h 
x11term.o : x11term.c x11term.h termhooks.h termopts.h termchar.h dispepoch.h screen.h screenX.h screenW.h config.h
xutil.o : xutil.c screen.h screenW.h screenX.h xdefault.h xresource.h dispepoch.h x11term.h
xresource.o : xresource.c xresource.h lisp.h config.h screen.h screenX.h x11term.h
screen.o : screen.c screen.h screenW.h screenX.h xdefault.h xd.h dispepoch.h window.h config.h screen.h
property.o : property.c config.h lisp.h x11term.h screen.h screenX.h xresource.h
selection.o : selection.c config.h lisp.h x11term.h screen.h screenX.h xresource.h
xevent.o : xevent.c config.h screen.h screenX.h screenW.h dispepoch.h x11term.h
mouse.o : mouse.c config.h lisp.h window.h x11term.h termchar.h screen.h screenW.h screenX.h dispepoch.h
button.o : button.c button.h lisp.h screen.h screenX.h screenW.h xresource.h config.h buffer.h x11term.h dispepoch.h window.h
alloc.o : alloc.c window.h buffer.h config.h 
bytecode.o : bytecode.c buffer.h config.h 
data.o : data.c buffer.h config.h 
eval.o : eval.c commands.h config.h
fns.o : fns.c buffer.h commands.h config.h
print.o : print.c process.h window.h buffer.h termchar.h config.h 
lread.o : lread.c buffer.h paths.h config.h 
sunfns.o  : sunfns.c buffer.h config.h
