aboutsummaryrefslogtreecommitdiff
path: root/build.ninja
blob: 861ce91533d7f36d50e7dd97a548955ba2dd611b (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 = -std=c++20 -Weverything -Wno-padded -Wno-c++98-compat -MMD -Wno-c++98-compat-pedantic
ldflags  = -lssl -lcrypto
outdir   = build
name     = maple
srcdir   = $name

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

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

build $outdir/$name.o:  compile $srcdir/$name.cc
build $outdir/gemini.o: compile $srcdir/gemini.cc
build $outdir/titan.o:  compile $srcdir/titan.cc

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

default $outdir/$name