Refactoring build system for more control of inputs

This commit is contained in:
Justin C. Miller
2019-02-03 18:32:45 -08:00
parent 579f6f64e6
commit f2d39f7df8
15 changed files with 263 additions and 115 deletions

View File

@@ -0,0 +1,17 @@
builddir = $builddir/{{ target }}
{% block variables %}
{% endblock %}
{% block binaries %}
cc = clang
cxx = clang++
ld = clang++
ar = ar
nasm = nasm
objcopy = objcopy
{% endblock %}
{% for module in modules %}
subninja {{ module.name }}.ninja
{% endfor %}