csci5451/assignments/03/Makefile

23 lines
440 B
Makefile
Raw Normal View History

2023-11-25 02:05:20 +00:00
.PHONY: run clean
2023-11-22 07:58:05 +00:00
2023-11-25 02:49:11 +00:00
CFLAGS += -O3 -g
# CFLAGS += -DFMT_HEADER_ONLY
# LDFLAGS += $(shell pkg-config --libs fmt)
2023-11-25 02:05:20 +00:00
clean:
2023-11-25 02:26:14 +00:00
rm -f lpa
2023-11-25 02:05:20 +00:00
lpa: lpa.cpp
2023-11-25 02:49:11 +00:00
mpic++ $(CFLAGS) $(LDFLAGS) -o $@ $<
2023-11-22 07:58:05 +00:00
run:
2023-11-25 02:26:14 +00:00
watchexec -c clear 'make lpa && mpirun -n 4 ./lpa dataset/both_1000.txt'
report.pdf: report.typ
typst compile $< $@
zhan4854.tar.gz: Makefile ASSIGNMENT.md lpa.cpp report.pdf
mkdir -p zhan4854
cp $^ zhan4854
tar -czvf $@ zhan4854
rm -r zhan4854