diff options
| author | Fuwn <[email protected]> | 2024-06-11 08:07:03 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-11 08:07:03 +0000 |
| commit | 0b5e41a060f818c8d455872062522fb96a20c261 (patch) | |
| tree | fef298ca9945ea46bebff40b27a0f2d9a027fbee /build.ninja | |
| parent | refactor: tighen clang-tidy (diff) | |
| download | maple-0b5e41a060f818c8d455872062522fb96a20c261.tar.xz maple-0b5e41a060f818c8d455872062522fb96a20c261.zip | |
build(docker): add simple build.ninja for Dockerfile
Diffstat (limited to 'build.ninja')
| -rw-r--r-- | build.ninja | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build.ninja b/build.ninja new file mode 100644 index 0000000..8505e2c --- /dev/null +++ b/build.ninja @@ -0,0 +1,20 @@ +cc = clang++ +cxxflags = -std=c++23 -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 |