include ../../Makefile.conf
renderer_OBJECTS = block.o lines.o misc.o quads.o sprites.o tris.o textures.o amiga.o cache.o
CFLAGS += -I../..  -I../../cpu/${MACHINE}
all: $(renderer_OBJECTS)
	rm -f librenderer.a
	ppc-amigaos-ar cru librenderer.a $(renderer_OBJECTS)
	ppc-amigaos-ranlib librenderer.a
%.o: %.c
	pgcc -V 2.95.2 -warpup -c $(CFLAGS) $< -o $@
clean:
	rm -f *.o
#Dependencies
block.o: block.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
lines.o: lines.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
misc.o: misc.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
quads.o: quads.c minigl.h poly_textured.h poly_simple.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
sprites.o: sprites.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
textures.o: textures.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
  ../../gpu_types.h
tris.o: tris.c minigl.h poly_textured.h poly_simple.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
amiga.o: amiga.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
  ../../gpu_types.h
cache.o: cache.c minigl.h cache.h ../../sope.h ../../sope_defs.h \
 ../../cpu/generic/machine.h ../../cpu/generic/context.h \
 ../../gpu_types.h
