summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrupak192020-04-07 19:23:39 +0530
committerrupak192020-04-07 19:23:39 +0530
commitf00676384365fdea0b739ed3107552aa79e49c4b (patch)
treeea1e81218279c402d63013f6e4c5f0884e0b4a9f /src
parent5a54dcb6874735aac86df4295d57cf5f9545287e (diff)
downloadScilab6-Test-Toolbox-f00676384365fdea0b739ed3107552aa79e49c4b.tar.gz
Scilab6-Test-Toolbox-f00676384365fdea0b739ed3107552aa79e49c4b.tar.bz2
Scilab6-Test-Toolbox-f00676384365fdea0b739ed3107552aa79e49c4b.zip
added makefile and cleaned builder file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/Makefile20
-rwxr-xr-xsrc/testadd (renamed from src/test)bin19344 -> 19344 bytes
2 files changed, 20 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100755
index 0000000..d4719ac
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,20 @@
+LIBNAME = add
+
+all: lib$(LIBNAME).so test$(LIBNAME)
+
+$(LIBNAME).o: $(LIBNAME).h $(LIBNAME).c
+ gcc -fPIC -c $(LIBNAME).c
+
+lib$(LIBNAME).so: $(LIBNAME).o
+ gcc -shared -o lib$(LIBNAME).so $(LIBNAME).o
+
+test$(LIBNAME): lib$(LIBNAME).so main.c add.h
+ gcc -Wall -L$(PWD) -Wl,-rpath=$(PWD) -o $@ main.c -l$(LIBNAME) -g
+
+install:
+ cp add.h ../thirdparty/linux/include/
+ cp libadd.so ../thirdparty/linux/lib/x64/
+
+.PHONY: clean
+clean:
+ $(RM) -f *.so *.o test
diff --git a/src/test b/src/testadd
index 8990420..8990420 100755
--- a/src/test
+++ b/src/testadd
Binary files differ