summaryrefslogtreecommitdiff
path: root/list/Makefile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2021-03-02 22:45:12 +0400
committerAndrew <saintruler@gmail.com>2021-03-02 22:45:12 +0400
commite413f3fc478da395fab295671b1ccd9f5bdb5b7e (patch)
tree9e82529349fc7830388e7bf97ea9338c46975ad9 /list/Makefile
parentb3f28bca3da03a81fb7a72f85f563360d4f13b0f (diff)
Добавил решение четвёртой задачи по связным спискам
Diffstat (limited to 'list/Makefile')
-rw-r--r--list/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/list/Makefile b/list/Makefile
new file mode 100644
index 0000000..4a9376f
--- /dev/null
+++ b/list/Makefile
@@ -0,0 +1,24 @@
+CXX=g++
+CFLAGS=-g -Wall
+COMPILE=$(CXX) $(CFLAGS)
+
+task4:
+ $(COMPILE) -o task.out task4.cpp
+test4: task4
+ @printf "9\n5 2 9 1 3 7 9 2 9" | ./task.out
+ @printf "Answer: 5 9 1 3 7 9 9\n"
+
+task7:
+ $(COMPILE) -o task.out task7.cpp
+test7: task7
+ @printf "9\n6\n5 2 9 1 3 7 9 2 9" | ./task.out
+ @printf "Answer: 5 2 1 3 2 9 7 9 9\n"
+
+task15:
+ $(COMPILE) -o task.out task15.cpp
+test15: task15
+ @printf "9\n3\n1 2 3 4 5 6 7 8 9" | ./task.out
+ @printf "Answer: 1\n"
+
+clean:
+ rm task.out