#
# /emx/src/lib/graph/makefile
#
.INCLUDE: /emx/src/lib/lib0.mak

.SOURCE.c: ..
.SOURCE.h: ..

.PHONY: clean default dstlib graph

LIBGRAPH=$(L)graph.a

LIBC_CCFLAGS = -fomit-frame-pointer

default: graph

graph .SETDIR=$(CPU):
	$(MAKE) -f ../makefile dstlib $(PASSDOWN)

dstlib: $(LIBGRAPH)

clean:
	-del $(CPU)\*.o $(DELOPT)

graph1.o: graph1.c $(I)graph.h graph2.h
gbox.o: gbox.c $(I)graph.h graph2.h
gclear.o: gclear.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

egaclear.o: egaclear.c graph2.h ega.h
egaget.o: egaget.c graph2.h ega.h
egahline.o: egahline.c graph2.h ega.h
egaline.o: egaline.c graph2.h ega.h
egavline.o: egavline.c graph2.h ega.h
egaset.o: egaset.c graph2.h ega.h

vglclear.o: vglclear.c graph2.h
vglget.o: vglget.c graph2.h
vglhline.o: vglhline.c graph2.h
vglline.o: vglline.c graph2.h
vglvline.o: vglvline.c graph2.h
vglset.o: vglset.c graph2.h

$(LIBGRAPH): graph1.o gbox.o gclear.o gclip.o gellipse.o gget.o ghline.o \
    gline.o gpolygon.o gset.o gtriangl.o gvgapal.o gvline.o gwaitv.o \
    egaclear.o egaget.o egahline.o egaline.o egaset.o egavline.o \
    vglclear.o vglget.o vglhline.o vglline.o vglset.o vglvline.o
	-del $(LIBGRAPH)
	$(AR) r $(LIBGRAPH) *.o
