diff options
author | Benji Dial <benji@benjidial.net> | 2023-05-30 03:01:25 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2023-05-30 03:01:25 -0400 |
commit | 6678dccccdfffb9c40f64a828fd769c53bb2d29f (patch) | |
tree | 4a7f1c0b849b8bc4cebe5c9c0bc690a0e6e07146 /makefile | |
parent | e39e53f96e0fb75847bd2f5eb40cac7c52e85886 (diff) | |
download | lib94-6678dccccdfffb9c40f64a828fd769c53bb2d29f.tar.gz |
mpi-based tabulator
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,8 +1,12 @@ CPP_ARGS = -std=c++20 -O2 -Wall -Wextra -Iinclude + GTKMM_CPP_ARGS = $(shell pkg-config --cflags gtkmm-4.0) GTKMM_LD_ARGS = $(shell pkg-config --libs gtkmm-4.0) -default: bin/bench bin/score +MPI_CPP_ARGS = $(shell mpic++ --showme:compile) +MPI_LD_ARGS = $(shell mpic++ --showme:link) + +default: bin/bench bin/score bin/tabulator-mpi clean: rm -r obj bin @@ -15,6 +19,10 @@ bin/score: obj/score/main.o obj/lib94.o @mkdir -p $(dir $@) g++ ${CPP_ARGS} $^ -o $@ +bin/tabulator-mpi: obj/tabulator-mpi/main.o obj/tabulator-mpi/head.o obj/tabulator-mpi/worker.o obj/lib94.o + @mkdir -p $(dir $@) + g++ ${CPP_ARGS} $^ ${MPI_LD_ARGS} -o $@ + obj/lib94.o: obj/lib94/core.o obj/lib94/executors.o obj/lib94/warrior.o ld -r $^ -o $@ @@ -22,6 +30,10 @@ obj/bench/%.o: bench/%.cpp @mkdir -p $(dir $@) g++ -c ${CPP_ARGS} ${GTKMM_CPP_ARGS} $^ -o $@ +obj/tabulator-mpi/%.o: tabulator-mpi/%.cpp + @mkdir -p $(dir $@) + g++ -c ${CPP_ARGS} ${MPI_CPP_ARGS} $^ -o $@ + obj/%.o: %.cpp @mkdir -p $(dir $@) g++ -c ${CPP_ARGS} $^ -o $@ |