build.rmk (855B)
1 2 3cflags = -I lib/libdvec/include -I lib/libhmap/include 4 -I lib/libtabular/include -I lib/liballoc/include 5 -Wunused-variable -Wunused-function -Wconversion 6 -O2 7 8rule cc 9 gcc -o $out $in $cflags 10 11target lib/libdvec/build/libdvec.a 12 rmk lib/libdvec 13 14target lib/libhmap/build/libhmap.a 15 rmk lib/libhmap 16 17target lib/libtabular/build/libtabular.a 18 rmk lib/libtabular 19 20target lib/liballoc/build/liballoc.a 21 rmk lib/liballoc 22 23target tabular 24 cc tabular.c lib/libdvec/build/libdvec.a lib/libhmap/build/libhmap.a 25 lib/libtabular/build/libtabular.a lib/liballoc/build/liballoc.a 26 27command clean 28 rm -f tabular 29 30command cleanall 31 rmk clean 32 rmk -C lib/libtabular clean 33 rmk -C lib/libhmap clean 34 rmk -C lib/libdvec clean 35 36command install 37 install -m755 tabular -t "/usr/local/bin" 38 39command uninstall 40 rm -f "/usr/local/bin/tabular" 41 42command all 43 rmk tabular