mirror of
https://github.com/sys-fs/tubes
synced 2024-11-28 05:26:37 -05:00
Made makefile a little more portable, updated README
This commit is contained in:
parent
69c1db7214
commit
e4a2cb9b34
4
Makefile
4
Makefile
@ -3,9 +3,11 @@ override CFLAGS+=-Wall -Wpedantic -O2
|
|||||||
LDFLAGS=-lcrypto -lssl
|
LDFLAGS=-lcrypto -lssl
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
MANPREFIX=${PREFIX}/man
|
MANPREFIX=${PREFIX}/man
|
||||||
|
#Ubuntu uses the one below
|
||||||
|
#MANPREFIX=${PREFIX}/share/man
|
||||||
|
|
||||||
it:
|
it:
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} tubes.c -o tubes
|
${CC} tubes.c ${CFLAGS} ${LDFLAGS} -o tubes
|
||||||
|
|
||||||
install: it
|
install: it
|
||||||
echo installing executable to ${DESTDIR}${PREFIX}/bin
|
echo installing executable to ${DESTDIR}${PREFIX}/bin
|
||||||
|
@ -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;
|
server and port variables at compile time. OpenSSL is a dependency of tubes;
|
||||||
download the devel package from your distro.
|
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`.
|
Custom compiler flags can be appended to the defaults, e.g. `CFLAGS=-fPIC`.
|
||||||
|
Loading…
Reference in New Issue
Block a user