aboutsummaryrefslogtreecommitdiff
path: root/Занимательное программирование/5/2_grey/build.ninja
blob: e3b0b0ad12da53af894aac0f5d45066591c82a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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