#  The -I and -L flags should point to the most current V library.
#  In this case, "../acmp/V/lib" is the directory that corresponds to
#  the acm 3.0 sources.
#
#  The "-systype bsd43" is a Mips-specific flag.
#
#CFLAGS = -g -I../acmp/V/lib -L../acmp/V/lib
#CFLAGS = -systype bsd43 -g -I../acmp/V/lib -L../acmp/V/lib
         ACM = ..
      srcdir = @srcdir@
      prefix = @prefix@
      bindir = $(prefix)/bin
       VPATH = @srcdir@
       SHELL = /bin/sh
          CC = @CC@
       SLIBS = @LIBS@
     INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

CFLAGS = -g -I$(ACM)/src -L$(ACM)/V/lib \
	-I$(srcdir)/../V/lib -I$(srcdir)/../src \
	-I$(ACM)/dis -I$(srcdir)/../dis -DHAVE_DIS
OBJS = gedit.o actions.o gutil.o gutil1.o gutil2.o \
	circle.o edit.o VWriteObject.o io.o dialog.o cell.o \
	CrExFormDlg.o

gedit:	$(OBJS)
	rm -rf gedit
	$(CC) $(CFLAGS) -o gedit $(OBJS) $(SLIBS) -lm

clean:
	rm -rf core *.o *~ gedit

distclean: clean
	rm -rf Makefile config.status config.log config.cache

gedit.o:	gedit.h
gutil.o:	gedit.h
actions.o:	gedit.h
gutil1.o:	gedit.h
gutil2.o:	gedit.h
edit.o:		gedit.h
io.o:		gedit.h
cell.o:		cell.h gedit.h
dislog.o:	cell.h gedit.h
