csci5451/assignments/03/Makefile

27 lines
521 B
Makefile
Raw Permalink Normal View History

2023-11-25 02:05:20 +00:00
.PHONY: run clean
2023-11-22 07:58:05 +00:00
2023-11-28 01:05:40 +00:00
CFLAGS += -g
2023-11-25 09:18:56 +00:00
# CFLAGS += -DFMT_HEADER_ONLY -g
2023-11-25 07:32:19 +00:00
# LDFLAGS += $(shell pkg-config --libs fmt)
2023-11-25 02:05:20 +00:00
2023-11-25 07:07:20 +00:00
lpa: lpa.cpp Makefile
2023-11-25 07:32:19 +00:00
mpic++ $(CFLAGS) $(LDFLAGS) -o $@ lpa.cpp
2023-11-25 02:05:20 +00:00
2023-11-25 03:18:40 +00:00
lpac: lpa.cpp
mpicc $(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 $< $@
2023-12-10 22:58:28 +00:00
zhan4854.tar.gz: Makefile ASSIGNMENT.md lpa.cpp report.pdf dataset/gen2.py
2023-11-25 02:26:14 +00:00
mkdir -p zhan4854
cp $^ zhan4854
tar -czvf $@ zhan4854
2023-11-25 07:32:19 +00:00
rm -r zhan4854
clean:
rm -f lpa