summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorNick White <git@njw.name>2015-07-28 16:20:28 +0100
committerNick White <git@njw.name>2015-07-28 16:20:28 +0100
commit93d17e32d2c64a187bda4e4c7b0162072ab77c9c (patch)
treefca76e0fe070609572a676866f887eca76cd59a0 /config.mk
parent0e05096f98d957d90a59eff0b5a081d112fd329f (diff)
Add SSL support using OpenSSL, and enable it for getgbook.
This fixes the problem with getgbook not finding any books, and also obviously adds SSL, which is great!
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index d366072..948e8b4 100644
--- a/config.mk
+++ b/config.mk
@@ -6,6 +6,8 @@ RELDATE = 2013-10-13
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
+LIBS = -lssl -lcrypto
+
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Werror -g -D_POSIX_C_SOURCE=200112L \
-DVERSION=\"$(VERSION)\"
@@ -13,16 +15,16 @@ W32TCLKIT = tclkit-8.5.9-win32.upx.exe
# glibc dynamic
CC = cc
-LDFLAGS =
+LDFLAGS = $(LIBS)
# musl static
#CC = musl-gcc
-#LDFLAGS = -static #-s
+#LDFLAGS = $(LIBS) -static #-s
# mingw
#CC = i686-w64-mingw32-gcc
#AR = i686-w64-mingw32-ar
#CFLAGS = -ansi -Wall -DVERSION=\"$(VERSION)\" -DWINVER=0x0501
-#LDFLAGS = -lws2_32
+#LDFLAGS = $(LIBS) -lws2_32
LD = $(CC)