# mpicc path: /usr/lib64/openmpi3/bin # use SHOW to see what it will do # SHOW = #SHOW = --showme:command #SHOW = --showme CC = mpicc $(SHOW) -I../lib -O2 -std=c11 -pedantic -Wall LIB = ../lib/qce.a OBJS = BV.o BV-omp.o EXES = BV BV-omp all: $(EXES) BV.o: BV.c ../lib/qce.h Makefile $(CC) -c -o BV.o BV.c BV-omp.o: BV.c ../lib/qce.h Makefile $(CC) -fopenmp -c -o BV-omp.o BV.c BV: BV.o $(LIB) Makefile $(CC) BV.o $(LIB) -o BV -lm BV-omp: BV-omp.o $(LIB) Makefile $(CC) -fopenmp BV-omp.o $(LIB) -o BV-omp -lm clean: rm -f a.out core $(OBJS) clobber: clean rm -f $(EXES)