summaryrefslogtreecommitdiff
path: root/graphs-algo/Makefile
diff options
context:
space:
mode:
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