summaryrefslogtreecommitdiff
path: root/libc/stdio1/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio1/test.sh')
-rwxr-xr-xlibc/stdio1/test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/stdio1/test.sh b/libc/stdio1/test.sh
new file mode 100755
index 0000000..9d872dc
--- /dev/null
+++ b/libc/stdio1/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+echo 'rm -f *.o test *.a'
+rm -f *.o test *.a
+echo 'make'
+make
+echo 'ar r libnat.a *.o'
+ar r libnat.a *.o
+echo 'ranlib libnat.a'
+ranlib libnat.a
+echo 'gcc test.c -I- -I../include -fno-builtin -o test.o -L./ -lnat'
+gcc test.c -I- -I../include -fno-builtin -o test.o -L./ -lnat