aboutsummaryrefslogtreecommitdiff
path: root/build.ninja
blob: b510ec31c28e2c031fae259dbaf235564e6a1185 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cc       = clang++
cxxflags = -Weverything -Wno-c++98-compat -std=c++20
ldflags  = -lssl -lcrypto
out_dir  = out
name     = maple
src_dir  = $name

rule compile
  command = $cc $cxxflags -c $in -o $out

rule link
  command = $cc $ldflags $in -o $out

build $out_dir/$name.o: compile $src_dir/$name.cc

build $out_dir/$name: link $out_dir/$name.o

default $out_dir/$name