From 2ff0384a6e5e697f97d640c7195dcd52c310b42b Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 4 Apr 2021 19:29:28 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B0?= =?UTF-8?q?=D0=BB=D0=B3=D0=BE=D1=80=D0=B8=D1=82=D0=BC=20=D0=94=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D1=81=D1=82=D1=80=D1=8B=20=D0=B2=20=D0=B0=D0=BB=D0=B3?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D1=82=D0=BC=D0=B0=D1=85=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B3=D1=80=D0=B0=D1=84=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- graphs-algo/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 graphs-algo/Makefile (limited to 'graphs-algo/Makefile') 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 -- cgit v1.2.3