#Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
# Written by James Clark (jjc@jclark.uucp)
#This file is part of groff.
#groff is free software; you can redistribute it and/or modify it under
#the terms of the GNU General Public License as published by the Free
#Software Foundation; either version 1, or (at your option) any later
#groff 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 GNU General Public License
#You should have received a copy of the GNU General Public License along
#with groff; see the file LICENSE. If not, write to the Free Software
#Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
DEFINES=-DDEVICE=\"$(DEVICE)\"
OBJECTS=eqn.tab.o main.o lex.o box.o limit.o list.o over.o text.o \
script.o mark.o other.o delim.o sqrt.o pile.o
SOURCES=main.c lex.c eqn.y box.c limit.c list.c over.c text.c \
script.c mark.c other.c delim.c sqrt.c pile.c \
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
eqn: $(OBJECTS) ../lib/libgroff.a
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(LIBS)
$(YACC) $(YACCFLAGS) -d eqn.y
box.o: eqn.h box.h pbox.h
limit.o: eqn.h box.h pbox.h
text.o: eqn.h box.h pbox.h
over.o: eqn.h box.h pbox.h
list.o: eqn.h box.h pbox.h
script.o: eqn.h box.h pbox.h
mark.o: eqn.h box.h pbox.h
other.o: eqn.h box.h pbox.h
delim.o: eqn.h box.h pbox.h
sqrt.o: eqn.h box.h pbox.h
pile.o: eqn.h box.h pbox.h
main.o: eqn.h box.h ../lib/stringclass.h
lex.o: eqn.h eqn.tab.c box.h ../lib/stringclass.h
-[ -d $(BINDIR) ] || mkdir $(BINDIR)
install: install.bin install.nobin
$(ETAGS) $(ETAGSFLAGS) $(SOURCES)
-rm -f *.o core eqn gmon.out
-rm -f TAGS eqn.output y.output
-rm -f eqn.tab.c eqn.tab.h