summaryrefslogtreecommitdiff
path: root/example/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/build.sh')
-rwxr-xr-xexample/build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/build.sh b/example/build.sh
new file mode 100755
index 0000000..172aa69
--- /dev/null
+++ b/example/build.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+CFLAGS='-g -Wall'
+INCLUDE='-I..'
+LIBS='-lm'
+set -x
+#tcc $CFLAGS $INCLUDE $LIBS -o example example.c && ./example
+gcc $CFLAGS $INCLUDE $LIBS -o example example.c && ./example