From e4a2cb9b34c676aa23e1e1eaa085ab6c35c0bf41 Mon Sep 17 00:00:00 2001 From: Thomas Mannay Date: Sun, 18 Sep 2016 15:52:02 +0100 Subject: [PATCH] Made makefile a little more portable, updated README --- Makefile | 4 +++- README.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 62ba1ed..3794748 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 2173f8d..6c6d378 100644 --- a/README.md +++ b/README.md @@ -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`.