diff options
author | rupak19 | 2020-04-07 19:23:39 +0530 |
---|---|---|
committer | rupak19 | 2020-04-07 19:23:39 +0530 |
commit | f00676384365fdea0b739ed3107552aa79e49c4b (patch) | |
tree | ea1e81218279c402d63013f6e4c5f0884e0b4a9f /src | |
parent | 5a54dcb6874735aac86df4295d57cf5f9545287e (diff) | |
download | Scilab6-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-x | src/Makefile | 20 | ||||
-rwxr-xr-x | src/testadd (renamed from src/test) | bin | 19344 -> 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 Binary files differ |