26 lines
505 B
Makefile
26 lines
505 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
|
|
mkdir -p zhan4854
|
|
cp $^ zhan4854
|
|
tar -czvf $@ zhan4854
|
|
rm -r zhan4854
|
|
|
|
clean:
|
|
rm -f lpa
|