forked from taf2/libebb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.mk
38 lines (31 loc) · 877 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PREFIX = $(HOME)/local/libebb
# libev
EVINC = $(HOME)/local/libev/include
EVLIB = $(HOME)/local/libev/lib
EVLIBS = -L${EVLIB} -lev
# GnuTLS, comment if you don't want it (necessary for HTTPS)
GNUTLSLIB = /usr/lib
GNUTLSINC = /usr/include
GNUTLSLIBS = -L${GNUTLSLIB} -lgnutls
GNUTLSFLAGS = -DHAVE_GNUTLS
# includes and libs
INCS = -I${EVINC} -I${GNUTLSINC}
LIBS = ${EVLIBS} ${GNUTLSLIBS} -lefence
# flags
CPPFLAGS = -DVERSION=\"$(VERSION)\" ${GNUTLSFLAGS}
CFLAGS = -O2 -g -Wall ${INCS} ${CPPFLAGS} -fPIC
LDFLAGS = -s ${LIBS}
LDOPT = -shared
SUFFIX = so
SONAME = -Wl,-soname,$(OUTPUT_LIB)
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"$(VERSION)\" -fPIC
#LDFLAGS = ${LIBS}
#SONAME =
# Darwin
# LDOPT = -dynamiclib
# SUFFIX = dylib
# SONAME = -current_version $(VERSION) -compatibility_version $(VERSION)
# compiler and linker
CC = cc
RANLIB = ranlib