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..26383e2
--- /dev/null
+++ b/example/build.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+cc -std=c89 -Wall -Wextra -pedantic -O3 ../bin2c.c -o bin2c
+./bin2c image.tga
+cc -std=c89 -Wall -Wextra -pedantic -O3 example.c -o example
+
+./example