KMP-MPI/makefile

19 lines
700 B
Makefile
Raw Normal View History

2021-03-27 11:32:38 +00:00
sequential: src/sequential.c src/util.c src/kmp.c build
2021-03-27 13:30:18 +00:00
gcc -std=c99 src/kmp.c src/util.c src/sequential.c -o build/kmp-s.out
2021-03-27 11:32:38 +00:00
sequential-time: src/sequential.c src/util.c src/kmp.c build
2021-03-27 13:30:18 +00:00
gcc -std=c99 -D TIME src/kmp.c src/util.c src/sequential.c -o build/kmp-st.out
2021-03-27 11:32:38 +00:00
parallel: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-p.out
parallel-time: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 -D TIME src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-p.out
parallel-log: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 -D LOG src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-pl.out
build:
mkdir build