# Sat, 06/20/1992 21:03:45 
#
# Modified by John Kercheval to present a unified interface to
# developers using the standard installed release of Epsilon and to
# remove a few bugs.  In the shipping state of V6.0 a state file will
# be correctly created but will not correctly create all of the
# ancillary binaries.  Modified epsilon invocation to exit
# immediately after state file is created.
#

# Makefile for Epsilon's EEL source files.
# This should work with most Make programs.

# Copyright (C) 1985, 1992 Lugaru Software Ltd.  All rights reserved.
# "Epsilon" is a registered trademark licensed to Lugaru Software, Ltd.
# "EEL" and "Lugaru" are trademarks of Lugaru Software, Ltd.

# Uncomment one of the following lines: .b for DOS, .b2 for OS/2, .bu
# for Unix 
B	=.b
# B	=.b2
# B	=.bu

# Uncomment one of the following lines:
# .sta for DOS, .st2 for OS/2, .stu for Unix
STA	=.sta
# STA	=.st2
# STA	=.stu


EELBINARIES	= ..
EELINCLUDE	= ..\include

EELCMD		= $(EELBINARIES)\eel
EELFLAGS	= -s -i $(EELINCLUDE)

EPSILONCMD	= $(EELBINARIES)\epsilon
EDOC		= $(EELBINARIES)\edoc


FORSTATE = \
	epsilon$B \
	basic$B \
	bookmark$B \
	bufed$B \
	buffer$B \
	c$B \
	cmdline$B \
	compare$B \
	complete$B \
	control$B \
	debug$B \
	dired$B \
	disp$B \
	filedate$B \
	files$B \
	format$B \
	grep$B \
	help$B \
	indent$B \
	kill$B \
	load$B \
	lowlevel$B \
	proc$B \
	prog$B \
	search$B \
	session$B \
	set$B \
	sort$B \
	tags$B \
	undo$B \
	video$B \
	window$B \
	zoom$B

OTHEREEL = \
	color$B \
	keyprogs$B \
	list-all$B \
	diff$B \
	loadchan$B \
	store$B \
	dispchar$B \
	newkeys$B 
# This binary does not correspond to a source file but is included in
# the release so I leave it here in case of use by the OS/2 or *IX
# people.  JBK
#	keysetup$B


all : epsilon$(STA) $(OTHEREEL)

epsilon$(STA) : $(FORSTATE) $(EDOC)
	$(EPSILONCMD) -b -rwrite-state -rexit


# Here are the individual EEL files.

epsilon$B : epsilon.e $(EELINCLUDE)\keyext.h $(EELINCLUDE)\keydef.h
	$(EELCMD) $(EELFLAGS) epsilon

basic$B : basic.e
	$(EELCMD) $(EELFLAGS) basic

bookmark$B : bookmark.e
	$(EELCMD) $(EELFLAGS) bookmark

bufed$B : bufed.e
	$(EELCMD) $(EELFLAGS) bufed

buffer$B : buffer.e
	$(EELCMD) $(EELFLAGS) buffer

c$B : c.e
	$(EELCMD) $(EELFLAGS) c

cmdline$B : cmdline.e $(EELINCLUDE)\keyext.h
	$(EELCMD) $(EELFLAGS) cmdline

compare$B : compare.e
	$(EELCMD) $(EELFLAGS) compare

complete$B : complete.e
	$(EELCMD) $(EELFLAGS) complete

control$B : control.e
	$(EELCMD) $(EELFLAGS) control

debug$B : debug.e
	$(EELCMD) $(EELFLAGS) debug

dired$B : dired.e
	$(EELCMD) $(EELFLAGS) dired

disp$B : disp.e
	$(EELCMD) $(EELFLAGS) disp

filedate$B : filedate.e
	$(EELCMD) $(EELFLAGS) filedate

files$B : files.e
	$(EELCMD) $(EELFLAGS) files

format$B : format.e
	$(EELCMD) $(EELFLAGS) format

grep$B : grep.e
	$(EELCMD) $(EELFLAGS) grep

help$B : help.e
	$(EELCMD) $(EELFLAGS) help

indent$B : indent.e
	$(EELCMD) $(EELFLAGS) indent

kill$B : kill.e
	$(EELCMD) $(EELFLAGS) kill

load$B : load.e
	$(EELCMD) $(EELFLAGS) load

lowlevel$B : lowlevel.e
	$(EELCMD) $(EELFLAGS) lowlevel

proc$B : proc.e
	$(EELCMD) $(EELFLAGS) proc

prog$B : prog.e
	$(EELCMD) $(EELFLAGS) prog

search$B : search.e
	$(EELCMD) $(EELFLAGS) search

session$B : session.e
	$(EELCMD) $(EELFLAGS) session

set$B : set.e
	$(EELCMD) $(EELFLAGS) set

sort$B : sort.e
	$(EELCMD) $(EELFLAGS) sort

tags$B : tags.e
	$(EELCMD) $(EELFLAGS) tags

undo$B : undo.e
	$(EELCMD) $(EELFLAGS) undo

video$B : video.e
	$(EELCMD) $(EELFLAGS) video

window$B : window.e
	$(EELCMD) $(EELFLAGS) window

zoom$B : zoom.e
	$(EELCMD) $(EELFLAGS) zoom

color$B : color.e
	$(EELCMD) $(EELFLAGS) color

keyprogs$B : keyprogs.e $(EELINCLUDE)\keyext.h $(EELINCLUDE)\keydef.h
	$(EELCMD) $(EELFLAGS) keyprogs

list-all$B : list-all.e
	$(EELCMD) $(EELFLAGS) list-all

diff$B : diff.e
	$(EELCMD) $(EELFLAGS) diff

loadchan$B : loadchan.e
	$(EELCMD) $(EELFLAGS) loadchan

store$B : store.e
	$(EELCMD) $(EELFLAGS) store

keysetup$B : keysetup.e
	$(EELCMD) $(EELFLAGS) keysetup

dispchar$B : dispchar.e
	$(EELCMD) $(EELFLAGS) dispchar

newkeys$B : newkeys.e
	$(EELCMD) $(EELFLAGS) newkeys
