libsocket
Building libsocket

It should be rather simple to build and install libsocket.

Targets

  • all (default): Build both shared objects (libsocket.so, libsocket++.so)
  • libsocket: Build only libsocket
  • libsocketpp: Build only libsocket++
  • install: Install shared objects and header files
  • install-headers: Install headers to (default) /usr/include/libsocket/
  • clean: Remove object files and shared libraries from source tree
  • deinstall: Remove all previously installed files (libraries, header files)

Customization

You may specify variables when invoking make: $ make VARIABLE_DECLARATIONS TARGET

Predefined vars are:

LIBPATH=/usr/lib
HEADERPATH=/usr/include/libsocket
CC=gcc
CPP=g++
CFLAGS=

If you want to have errors on STDERR from libsocket, simply say $ make CFLAGS=-DVERBOSE. If you want to install the shared libraries to /usr/local/lib, use $ make LIBPATH=/usr/local/lib.