CC=gcc

CFLAGS=	-Wall -std=gnu99 -O6 -march=pentium3 -fomit-frame-pointer -funroll-loops \
		-fexpensive-optimizations -ffast-math -fno-strict-aliasing \
		-I. -I./glide/headers -I/usr/include/glide \
		-DCVG

LFLAGS=-L./glide/lib -lglide

OBJ=main.o \
	FaultSources.o \
	Utils.o \
	Draw.o \
	Test_Address.o \
	Test_Data.o \
	Test_Data_Huge.o

HEADERS := $(notdir $(wildcard *.h))

%.o: %.c $(HEADERS)
	$(CC) -c -o $@ $< $(CFLAGS)

v2-tmu-memtester : $(OBJ)
	$(CC) -o $@ $(LFLAGS) $^ 

all: v2-tmu-memtester
