#	Fig2ps : FIG to LaTeX picture translator
#
#	Frank Schmuck
#	Modified from fig2pic which was modified from f2ps
#

OBJ =	arrow.o bound.o free.o read.o read1_3.o
SRCDIR = ../fig2tex

LIBS =	-lm
#CC =	cc -g -I$(SRCDIR) -sun3
CC =	cc -O -I$(SRCDIR) 

fig2latex : fig2latex.o latex_line.o $(OBJ)
	$(CC) fig2latex.o latex_line.o $(OBJ) -lm -o fig2latex

latex_line.o : fig_src/latex_line.c
	$(CC) -c fig_src/latex_line.c

arrow.o : $(SRCDIR)/arrow.c
	$(CC) -c $(SRCDIR)/arrow.c

bound.o : $(SRCDIR)/bound.c
	$(CC) -c $(SRCDIR)/bound.c

free.o : $(SRCDIR)/free.c
	$(CC) -c  $(SRCDIR)/free.c

read.o : $(SRCDIR)/read.c
	$(CC) -c $(SRCDIR)/read.c

read1_3.o : $(SRCDIR)/read1_3.c
	$(CC) -c $(SRCDIR)/read1_3.c

#########
clean : 
	rm -f *.o fig2latex core

