summaryrefslogtreecommitdiff
path: root/src/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.sh')
-rwxr-xr-xsrc/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/run.sh b/src/run.sh
new file mode 100755
index 0000000..729b991
--- /dev/null
+++ b/src/run.sh
@@ -0,0 +1,8 @@
+rm *.o *.so *.lib test
+
+gcc -fPIC -c add.c
+gcc -shared -o libadd.so add.o
+gcc -L$(pwd) -Wl,-rpath=$(pwd) -o test main.c -ladd -g
+
+cp add.h ../thirdparty/linux/include/
+cp libadd.so ../thirdparty/linux/lib/x64/