csci5451/assignments/03/Makefile
2023-12-10 17:38:53 -06:00

26 lines
521 B
Makefile

.PHONY: run clean
CFLAGS += -g
# CFLAGS += -DFMT_HEADER_ONLY -g
# LDFLAGS += $(shell pkg-config --libs fmt)
lpa: lpa.cpp Makefile
mpic++ $(CFLAGS) $(LDFLAGS) -o $@ lpa.cpp
lpac: lpa.cpp
mpicc $(CFLAGS) $(LDFLAGS) -o $@ $<
run:
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 dataset/gen2.py
mkdir -p zhan4854
cp $^ zhan4854
tar -czvf $@ zhan4854
rm -r zhan4854
clean:
rm -f lpa