CC=gcc CFLAGS=-O3 -std=c99 -Wall LDFLAG= -lm OMPFLAG=-fopenmp -D_OMP PGCC=pgcc PGCFLAGS=-acc -ta=nvidia -Minfo NAME=jacobi default: seq omp seq: $(CC) $(CFLAGS) $(NAME).c -o $(NAME).seq.exe $(LDFLAG) omp: $(CC) $(CFLAGS) $(OMPFLAG) $(NAME).c -o $(NAME).omp.exe $(LDFLAG) gpu: $(PGCC) $(PGCFLAGS) $(NAME).c -o $(NAME).pgi.exe clean: rm -f *.exe