Blame view

lab3/Makefile 345 Bytes
2b4ce206b   kmazouzi   Add Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)