Add tests, fixes for tests, reinstate and type-convert stuff marked "bitrot"
[ccom.git] / n.sh
1 #!/bin/sh
2 ROOT="`pwd |sed -e 's/\/lib\/ccom$//'`"
3 HOSTCC="cc -g -I$ROOT/cross/usr/include -L$ROOT/cross/usr/lib/ -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result"
4 INSTALL="$ROOT/scripts/install.sh --strip-program=/bin/true"
5 MANROFF="nroff -man"
6 mkdir --parents "$ROOT/cross/lib"
7 make CC="$HOSTCC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
8 make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install