consolidate all repos to one for archive
This commit is contained in:
25
semester_5/paralelno_racunanje/naloga_2/makefile
Normal file
25
semester_5/paralelno_racunanje/naloga_2/makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
Reference in New Issue
Block a user