diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..110bed1 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ + + +ffi: + cd libsipc && make libsipc-ffi + +clean: + cd libsipc && make clean + +install: ffi + cp -f libsipc.so /usr/lib/libsipc.so + +uninstall: + rm -f /usr/lib/libsipc.so diff --git a/package.lisp b/package.lisp index e9381ee..9327906 100644 --- a/package.lisp +++ b/package.lisp @@ -2,4 +2,5 @@ (defpackage #:cl-sipc (:use #:cl - #:cffi)) + #:cffi) + (:nicknames :sipc)) diff --git a/test-server b/test-server new file mode 100755 index 0000000..bcd0c4b --- /dev/null +++ b/test-server @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ ! -f "`readlink -f libsipc.so`" ]]; then + echo "[w] have to build first..." + make ffi +fi + +sbcl --load test-server.lisp diff --git a/test.lisp b/test-server.lisp similarity index 95% rename from test.lisp rename to test-server.lisp index cb94c9c..3a573e2 100644 --- a/test.lisp +++ b/test-server.lisp @@ -1,4 +1,4 @@ - +;; Simple sipc server (ql:quickload :cl-sipc)