easier testing

master
Avril 6 years ago
parent f57d643333
commit 4506b6a2bc
Signed by: flanchan
GPG Key ID: 284488987C31F630

1
.gitignore vendored

@ -1,4 +1,5 @@
libsipc/sipcli libsipc/sipcli
sipcli
*.o *.o
libsipc/*.so libsipc/*.so
*.socket *.socket

@ -4,9 +4,14 @@ LOCAL_PROJECTS:=$(HOME)/quicklisp/local-projects
ffi: ffi:
cd libsipc && make libsipc-ffi cd libsipc && make libsipc-ffi
utils:
cd libsipc && make all-ffi
ln -sf libsipc/sipcli sipcli
clean: clean:
cd libsipc && make clean cd libsipc && make clean
rm -f *.socket rm -f *.socket
rm -f sipcli
install-ffi: install-ffi:
if [[ $(shell id -u) == 0 ]]; then cp -f libsipc.so /usr/lib/libsipc.so; fi if [[ $(shell id -u) == 0 ]]; then cp -f libsipc.so /usr/lib/libsipc.so; fi

@ -9,7 +9,7 @@ The symlinked libsipc.so will resolve after the ffi library is built and the pac
Additionally you can run `sudo make install-ffi' to make it work system-wide (installed to /usr/lib/libsipc.so) (`sudo make uninstall' to remove it) Additionally you can run `sudo make install-ffi' to make it work system-wide (installed to /usr/lib/libsipc.so) (`sudo make uninstall' to remove it)
Or you can copy/symlink libsipc/libsipc-ffi.so to wherever you need. Or you can copy/symlink libsipc/libsipc-ffi.so to wherever you need.
Additional tools can be built by running `make all-ffi' in the libsipc/ directory. Additional tools can be built by running `make all-ffi' in the libsipc/ directory (or `make utils' in this one).
Functions: Functions:
sipc:bind(file) ;; Bind to socket `file'. Returns the socket descriptor on success and nil on fail (the socket must not already exist) sipc:bind(file) ;; Bind to socket `file'. Returns the socket descriptor on success and nil on fail (the socket must not already exist)

Loading…
Cancel
Save