diff options
| author | Fuwn <[email protected]> | 2022-05-23 23:43:44 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-23 23:43:44 -0700 |
| commit | d3c2e7d9350c25c7edfaa5acf4872c8156b17779 (patch) | |
| tree | 49536012e63e1c9fbda25ee54264e807d1207f50 /build.ninja | |
| download | wk7_platypusproject-d3c2e7d9350c25c7edfaa5acf4872c8156b17779.tar.xz wk7_platypusproject-d3c2e7d9350c25c7edfaa5acf4872c8156b17779.zip | |
feat: initial commit
Diffstat (limited to 'build.ninja')
| -rw-r--r-- | build.ninja | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build.ninja b/build.ninja new file mode 100644 index 0000000..87d0da8 --- /dev/null +++ b/build.ninja @@ -0,0 +1,19 @@ +cc = clang++ +cxxflags = -Ofast -std=c++20 -Weverything -Wno-c++98-compat-pedantic +out_dir = out +name = platypus +src_dir = $name +out_ext = .exe + +rule compile + command = $cc $cxxflags -c $in -o $out + +rule link + command = $cc $in -o $out$out_ext + +build $out_dir/platypus.o: compile $src_dir/platypus.cpp +build $out_dir/testPlatypus.o: compile $src_dir/testPlatypus.cpp + +build $out_dir/$name: link $out_dir/platypus.o $out_dir/testPlatypus.o + +default $out_dir/$name |