Commit 2b4ce206b055f8cab4ef599a55a6ed72b443c410
1 parent
d16e53ac39
Exists in
master
Add Makefile
Showing 1 changed file with 29 additions and 0 deletions Side-by-side Diff
lab3/Makefile
View file @
2b4ce20
1 | +GCC = gcc | |
2 | +CFLAGS = -O3 -fopenmp | |
3 | +OMP_FLAG = -fopenmp | |
4 | +RM = rm -rf | |
5 | + | |
6 | + | |
7 | +EXE = omp_heat2D ser_heat2D | |
8 | + | |
9 | +all : $(EXE) | |
10 | + | |
11 | +#.PHONY: all clean purge | |
12 | + | |
13 | + | |
14 | +pi_ser: ser_heat2D.o | |
15 | + $(GCC) $(CFLAGS) -o $@ $^ | |
16 | + | |
17 | +pi_task: omp_heat2D.o | |
18 | + $(GCC) $(CFLAGS) -o $@ $^ | |
19 | + | |
20 | + | |
21 | +%.o :%.c | |
22 | + $(GCC) $(CFLAGS) -c -o $@ $< | |
23 | + | |
24 | + | |
25 | +clean: | |
26 | + $(RM) *.o *.dat | |
27 | + | |
28 | +purge: clean | |
29 | + $(RM) $(EXE) |