26 lines
399 B
Makefile

CC=mpic++
INCLUDE_DIR= include
SRC_DIR= src
# Get all cpp files from src directory
SRCS := $(wildcard $(SRC_DIR)/*.cpp)
all: main run
main: main.cpp $(SRCS)
$(CC) -o3 -I$(INCLUDE_DIR) $(SRCS) main.cpp -o main
debug: main.cpp $(SRCS)
$(CC) -I$(INCLUDE_DIR) $(SRCS) -g main.cpp -o main
run: main
mpirun -n 4 ./main
zip:
zip -r main.zip main.cpp makefile shakespeare.txt
clean:
rm main