Remove forgotten debugging statement in lib/ccom, reinstate n.sh build script
authorNick Downing <downing.nick@gmail.com>
Tue, 7 Feb 2017 12:50:30 +0000 (23:50 +1100)
committerNick Downing <downing.nick@gmail.com>
Tue, 7 Feb 2017 13:27:52 +0000 (00:27 +1100)
lib/ccom/c11.c
lib/ccom/n.sh

index cf903af..56e2f3d 100644 (file)
@@ -1020,7 +1020,6 @@ void getree() {
 #ifdef pdp11
                tp->f.fvalue = atof(s);
 #else
- fprintf(stderr, "%s\n", s);
                tp->f.fvalue = fp_atof(s);
 #endif
                *sp++ = tp;
index b18b15b..5575176 100755 (executable)
@@ -1,2 +1,8 @@
 #!/bin/sh
-make CFLAGS=-g LDC0FLAGS= LDC1FLAGS= "$@"
+ROOT="`pwd |sed -e 's/\/lib\/ccom$//'`"
+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"
+INSTALL="$ROOT/scripts/install.sh --strip-program=/bin/true"
+MANROFF="nroff -man"
+mkdir --parents "$ROOT/cross/lib"
+make CC="$HOSTCC" MANROFF="$MANROFF" LDC0FLAGS= LDC1FLAGS= PURFLAG= && \
+make INSTALL="$INSTALL" DESTDIR="$ROOT/cross" install