26 lines
385 B
Makefile

CC=mpic++
INCLUDE_DIR= include
SRC_DIR= src
# Get all cpp files from src directory
SRCS := $(wildcard $(SRC_DIR)/*.cpp)
all: main
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 2 ./main
zip:
zip -r main.zip main.cpp makefile *.jpg
clean:
rm main