LIBS = -L/usr/X11R6/lib -lX11 -lgtk -lgdk 
CFLAGS = -O2 -fomit-frame-pointer -pipe -Wall -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
#CFLAGS = -O2 -fomit-frame-pointer -pipe -Wall -DGREEK
#CFLAGS = -g -O2 -fomit-frame-pointer -pipe -Wall

# select by uncommenting the desired keyboard binding type
TYPE = WORDSTAR
#TYPE = EMACS

# Use this for solaris
#LIBS = -L/usr/openwin/lib -lsocket -lnsl -lresolv -lXext -lX11
#CFLAGS = -O2 -pipe -Wall

all: edx mye

edx: edx.c eeng.c ws.c emacs.c Makefile
	gcc edx.c $(CFLAGS) -D$(TYPE) $(LIBS) -o edx
	@ls -al $@;strip $@;ls -al $@

mye: mye.c eeng.c Makefile
	gcc mye.c -O2 -DSTATICBUF -fomit-frame-pointer -ltermcap -o mye
	@ls -al $@;strip $@;ls -al $@

clean:
	-rm -f *.o *~ edx mye gdx
