ソースを参照

Made makefile a little more portable, updated README

master
Thomas Mannay 7年前
コミット
e4a2cb9b34
2個のファイルの変更5行の追加2行の削除
  1. +3
    -1
      Makefile
  2. +2
    -1
      README.md

+ 3
- 1
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


+ 2
- 1
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`.

読み込み中…
キャンセル
保存