commit 589549a4df6e679731e0cfba4495f4fb7e80bc67 parent da3524d8c0c51bd61d0db6e0e03ea8ba7e2a7b73 Author: Louis Burda <quent.burda@gmail.com> Date: Mon, 15 May 2023 16:33:27 +0200 Add build.jst Diffstat:
A | build.jst | | | 29 | +++++++++++++++++++++++++++++ |
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/build.jst b/build.jst @@ -0,0 +1,29 @@ +cc = clang + +ldlibs = -lcurses -I lib/libdvec/include -I lib/liballoc/include +cflags = -std=c99 -Wunused-function -Wunused-variable -Wconversion + +rule cc + $cc -o $out $in $cflags $ldlibs + +target lib/liballoc/build/liballoc.a + just lib/liballoc + +target lib/libdvec/build/libdvec.a + just lib/libdvec + +target tquery + cc tquery.c lib/liballoc/build/liballoc.a + lib/libdvec/build/libdvec.a + +command clean + rm -rf build + +command cleanall + just clean + just -C lib/liballoc cleanall + just -C lib/libdvec cleanall + +command all + just tquery +