diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:50:49 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:50:49 +0100 |
commit | fd92de696f7703a82fa0325593c6f804c32df2bb (patch) | |
tree | 484deae73f79d9a6dc221017485d59f90ce66ac9 /ninja | |
parent | Merge remote-tracking branch 'raffa/master' (diff) | |
download | flatland-fd92de696f7703a82fa0325593c6f804c32df2bb.tar.gz flatland-fd92de696f7703a82fa0325593c6f804c32df2bb.zip |
Update configure.py and Ninja rules
Ninja now builds in the directory 'build' instead of 'bin' and,
a static library build rule has been added.
Diffstat (limited to 'ninja')
-rw-r--r-- | ninja/rules.ninja | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ninja/rules.ninja b/ninja/rules.ninja index 2a56923..72cc23f 100644 --- a/ninja/rules.ninja +++ b/ninja/rules.ninja @@ -1,8 +1,8 @@ includes = -I engine/include -cflags = -Wall -pedantic -fPIC -std=c++17 $includes +cflags = -Wall -pedantic -fPIC -std=c++17 -DDEBUG $includes -libs = -lflags = -lSDL2 $libs +libs = -lSDL2 +lflags = $libs flags = -fdiagnostics-color @@ -20,4 +20,8 @@ rule link rule link-shared command = g++ $flags $cflags -shared -o $out $in $lflags - description = linking $out + description = linking shared object $out + +rule link-static + command = ar rvs $out $in + description = creating archive $out |