diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-10-02 03:59:21 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-10-02 03:59:21 +0200 |
| commit | 36c8d24c07ef3c6658f397fd156396f83b35ac27 (patch) | |
| tree | 1b3293264dca677a8d8e1ca44061aa7af191f839 /build.rmk | |
| parent | eff49100e4fca394a23973abd5001a4fde15d6e8 (diff) | |
| download | tabular-master.tar.gz tabular-master.zip | |
Diffstat (limited to 'build.rmk')
| -rw-r--r-- | build.rmk | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/build.rmk b/build.rmk new file mode 100644 index 0000000..f794a51 --- /dev/null +++ b/build.rmk @@ -0,0 +1,43 @@ + + +cflags = -I lib/libdvec/include -I lib/libhmap/include + -I lib/libtabular/include -I lib/liballoc/include + -Wunused-variable -Wunused-function -Wconversion + -O2 + +rule cc + gcc -o $out $in $cflags + +target lib/libdvec/build/libdvec.a + rmk lib/libdvec + +target lib/libhmap/build/libhmap.a + rmk lib/libhmap + +target lib/libtabular/build/libtabular.a + rmk lib/libtabular + +target lib/liballoc/build/liballoc.a + rmk lib/liballoc + +target tabular + cc tabular.c lib/libdvec/build/libdvec.a lib/libhmap/build/libhmap.a + lib/libtabular/build/libtabular.a lib/liballoc/build/liballoc.a + +command clean + rm -f tabular + +command cleanall + rmk clean + rmk -C lib/libtabular clean + rmk -C lib/libhmap clean + rmk -C lib/libdvec clean + +command install + install -m755 tabular -t "/usr/local/bin" + +command uninstall + rm -f "/usr/local/bin/tabular" + +command all + rmk tabular |
