#	Copyright (C) 1995 Viacom New Media.
#
#	This file is part of e93.
#
#	e93 is free software; you can redistribute it and/or modify
#	it under the terms of the e93 LICENSE AGREEMENT.
#
#	e93 is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	e93 LICENSE AGREEMENT for more details.
#
#	You should have received a copy of the e93 LICENSE AGREEMENT
#	along with e93; see the file "LICENSE.TXT".

# The following line may need to be altered if the Tcl include
# files are located elsewhere on your system:
INCLUDES=-I. -I/usr/local/include

OPTIONS=-O2
CFLAGS=$(INCLUDES) $(OPTIONS)

OBJECTS = \
	e93.o \
	globals.o \
	shell.o \
	shellcmd.o \
	buffer.o \
	docwin.o \
	edit.o \
	select.o \
	search.o \
	regex.o \
	clipbrd.o \
	undo.o \
	carray.o \
	text.o \
	varbind.o \
	keybind.o \
	errors.o

all : libgui e93

e93 : $(OBJECTS) xgui/libgui.a
	$(CC) -O $(OBJECTS) -Lxgui/ -lgui -lX11 -ltcl76 -lm -o e93

libgui :
	cd xgui;make

clean :
	cd xgui;make clean
	rm -f *.o
	rm -f e93

install :
	cp e93 /usr/local/bin
	cp .e93rc /usr/local/bin
