#
# /emx/src/lib/graph/makefile
#
.INCLUDE: /emx/src/lib/lib0.mak

.PHONY: clean default graph

LIBGRAPH=$(L)graph.a

default:    graph

graph: $(LIBGRAPH)

clean:
	-del *.o $(DELOPT)

graph1.o: graph1.c $(I)graph.h graph2.h
gbox.o: gbox.c $(I)graph.h graph2.h
gclip.o: gclip.c $(I)graph.h graph2.h
gellipse.o: gellipse.c $(I)graph.h graph2.h
gget.o: gget.c $(I)graph.h graph2.h
ghline.o: ghline.c $(I)graph.h graph2.h
gline.o: gline.c $(I)graph.h graph2.h
gpolygon.o: gpolygon.c $(I)graph.h graph2.h
gset.o: gset.c $(I)graph.h graph2.h
gtriangl.o: gtriangl.c $(I)graph.h graph2.h
gvgapal.o: gvgapal.c $(I)graph.h graph2.h
gvline.o: gvline.c $(I)graph.h graph2.h
gwaitv.o: gwaitv.c $(I)graph.h graph2.h

$(LIBGRAPH): graph1.o gbox.o gclip.o gellipse.o gget.o ghline.o gline.o \
    gpolygon.o gset.o gtriangl.o gvgapal.o gvline.o gwaitv.o
	-del $(LIBGRAPH)
	$(AR) r $(LIBGRAPH) *.o
	$(AR) s $(LIBGRAPH)
