aboutsummaryrefslogtreecommitdiff
path: root/build.ninja
blob: 56ac2fe2e11d643c42c163fe95379b082e9dd425 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/gemini.o: compile $src_dir/gemini.cc
build $out_dir/titan.o:  compile $src_dir/titan.cc

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

default $out_dir/$name