summaryrefslogtreecommitdiff
path: root/graphs-algo/Makefile
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-04-04 19:29:28 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-04-04 19:29:28 +0400
commit2ff0384a6e5e697f97d640c7195dcd52c310b42b (patch)
treeb2166391eeea9c41bb2d8bceae544d0f2c247a39 /graphs-algo/Makefile
parentd56cbb5c36c61fcb3a898363c5b9c2a7062b092e (diff)
Добавил алгоритм Дейкстры в алгоритмах на графах
Diffstat (limited to 'graphs-algo/Makefile')
-rw-r--r--graphs-algo/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphs-algo/Makefile b/graphs-algo/Makefile
new file mode 100644
index 0000000..7cdaf2a
--- /dev/null
+++ b/graphs-algo/Makefile
@@ -0,0 +1,23 @@
+CXX=g++
+CFLAGS=-g -Wall
+COMPILE=$(CXX) $(CFLAGS)
+
+task1:
+ $(COMPILE) -o task.out task1.cpp
+test1: task1
+ @printf "4\n4\n1 2 1\n2 3 1\n3 4 1\n4 1 1\n4\n2" | ./task.out
+ @printf "Answer: \n"
+ @printf "4\n4\n1 2 1\n2 3 5\n3 4 1\n4 1 2\n2\n3" | ./task.out
+ @printf "Answer: \n"
+
+task2:
+ $(COMPILE) -o task.out task2.cpp
+test2: task2
+ @printf "" | ./task.out
+ @printf "Answer: \n"
+
+clean:
+ rm -f task.out *.zip
+
+archive: clean
+ zip archive.zip *.cpp *.h