From 2b4ce206b055f8cab4ef599a55a6ed72b443c410 Mon Sep 17 00:00:00 2001 From: kmazouzi Date: Fri, 3 Apr 2015 21:40:36 +0200 Subject: [PATCH] Add Makefile --- lab3/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lab3/Makefile diff --git a/lab3/Makefile b/lab3/Makefile new file mode 100644 index 0000000..7eb3091 --- /dev/null +++ b/lab3/Makefile @@ -0,0 +1,29 @@ +GCC = gcc +CFLAGS = -O3 -fopenmp +OMP_FLAG = -fopenmp +RM = rm -rf + + +EXE = omp_heat2D ser_heat2D + +all : $(EXE) + +#.PHONY: all clean purge + + +pi_ser: ser_heat2D.o + $(GCC) $(CFLAGS) -o $@ $^ + +pi_task: omp_heat2D.o + $(GCC) $(CFLAGS) -o $@ $^ + + +%.o :%.c + $(GCC) $(CFLAGS) -c -o $@ $< + + +clean: + $(RM) *.o *.dat + +purge: clean + $(RM) $(EXE) -- 1.7.10.4