From 4506b6a2bccc7977b593c25a9644bb72b8e5e737 Mon Sep 17 00:00:00 2001 From: Avril Date: Mon, 13 May 2019 00:25:00 +0100 Subject: [PATCH] easier testing --- .gitignore | 1 + Makefile | 5 +++++ README | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f0c2ae7..a400cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ libsipc/sipcli +sipcli *.o libsipc/*.so *.socket diff --git a/Makefile b/Makefile index d5e7e34..f9533b9 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,14 @@ LOCAL_PROJECTS:=$(HOME)/quicklisp/local-projects ffi: cd libsipc && make libsipc-ffi +utils: + cd libsipc && make all-ffi + ln -sf libsipc/sipcli sipcli + clean: cd libsipc && make clean rm -f *.socket + rm -f sipcli install-ffi: if [[ $(shell id -u) == 0 ]]; then cp -f libsipc.so /usr/lib/libsipc.so; fi diff --git a/README b/README index 53e6f37..1a13247 100644 --- a/README +++ b/README @@ -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) 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: sipc:bind(file) ;; Bind to socket `file'. Returns the socket descriptor on success and nil on fail (the socket must not already exist)