enable building shared library for #128

This commit is contained in:
Max Lv
2014-11-06 10:42:00 +08:00
parent 7adc9037ae
commit 6f64d431b6
25 changed files with 3629 additions and 3116 deletions
+3 -3
View File
@@ -1,3 +1,5 @@
VERSION_INFO = 1:0:0
AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE
AM_CFLAGS += -I$(top_srcdir)/libev
AM_CFLAGS += -I$(top_srcdir)/libasyncns
@@ -66,11 +68,9 @@ ss_redir_SOURCES = utils.c \
ss_redir_LDADD = $(SS_COMMON_LIBS)
endif
if BUILD_LIB
lib_LTLIBRARIES = libshadowsocks.la
libshadowsocks_la_SOURCES = $(ss_local_SOURCES)
libshadowsocks_la_CFLAGS = $(ss_local_CFLAGS) -DLIB_ONLY
libshadowsocks_la_LDFLAGS = -version-info $(VERSION_INFO)
libshadowsocks_la_LIBADD = $(ss_local_LDADD)
include_HEADERS = shadowsocks.h
endif