CC=gcc -std=gnu99 -Ofast -Wall \
	-I /nfs/home/ejolson/opt/include \
	-L /nfs/home/ejolson/opt/lib -L /usr/lib/gcc/x86_64-linux-gnu/4.6

LAPACKLIB=-llapacke -llapack -lcblas -lf77blas -latlas -lgfortran

all: testAx bench

bench: bench.c solveAx.o tictoc.o
	$(CC) -o bench bench.c solveAx.o tictoc.o $(LAPACKLIB) -lm

testAx: testAx.c solveAx.o
	$(CC) -o testAx testAx.c solveAx.o

tictoc.o: tictoc.c tictoc.h
	$(CC) -c tictoc.c

solveAx.o: solveAx.c solveAx.h
	$(CC) -c solveAx.c

clean:
	rm -f testAx bench *.o
