1
0
mirror of https://github.com/sys-fs/tubes synced 2024-11-24 12:25:53 -05:00

Made makefile a little more portable, updated README

This commit is contained in:
Thomas Mannay 2016-09-18 15:52:02 +01:00
parent 69c1db7214
commit e4a2cb9b34
2 changed files with 5 additions and 2 deletions

View File

@ -3,9 +3,11 @@ override CFLAGS+=-Wall -Wpedantic -O2
LDFLAGS=-lcrypto -lssl
PREFIX=/usr/local
MANPREFIX=${PREFIX}/man
#Ubuntu uses the one below
#MANPREFIX=${PREFIX}/share/man
it:
${CC} ${CFLAGS} ${LDFLAGS} tubes.c -o tubes
${CC} tubes.c ${CFLAGS} ${LDFLAGS} -o tubes
install: it
echo installing executable to ${DESTDIR}${PREFIX}/bin

View File

@ -10,6 +10,7 @@ tubes' defaults are configured within tubes.c by changing the values of the
server and port variables at compile time. OpenSSL is a dependency of tubes;
download the devel package from your distro.
To install, cd into the cloned directory and `sudo make install`.
To install, cd into the cloned directory and `sudo make install`. Some
tweaking of the Makefile may be necessary, e.g. the location of local manpages.
Custom compiler flags can be appended to the defaults, e.g. `CFLAGS=-fPIC`.