aboutsummaryrefslogtreecommitdiff
path: root/Занимательное программирование/5/2_grey/build.ninja
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-02-13 22:03:01 +0100
committerEugen Wissner <belka@caraus.de>2026-02-13 22:03:01 +0100
commit82ae29cb8a59a1e093190d14f8c5097658545a12 (patch)
tree9ebdb8652b4cdb7a073890d018136fbf868870fd /Занимательное программирование/5/2_grey/build.ninja
parent518590d59512143ff279e98aa16c9b956f4b8699 (diff)
downloadbook-exercises-82ae29cb8a59a1e093190d14f8c5097658545a12.tar.gz
Добавлена вторая задача пятой главы
Diffstat (limited to 'Занимательное программирование/5/2_grey/build.ninja')
-rw-r--r--Занимательное программирование/5/2_grey/build.ninja13
1 files changed, 13 insertions, 0 deletions
diff --git a/Занимательное программирование/5/2_grey/build.ninja b/Занимательное программирование/5/2_grey/build.ninja
new file mode 100644
index 0000000..e3b0b0a
--- /dev/null
+++ b/Занимательное программирование/5/2_grey/build.ninja
@@ -0,0 +1,13 @@
+cxxflags =
+
+rule cxx
+ command = g++ $cxxflags -c -o $out $in
+
+rule ld
+ command = g++ $cxxflags $in -o $out
+
+build build/huffman.o: cxx huffman.cpp | huffman.hpp
+build build/grey.o: cxx grey.cpp | grey.hpp stb_image.h stb_image_write.h
+build build/grey: ld main.cpp build/grey.o build/huffman.o
+
+default build/grey