You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.6 KiB
68 lines
1.6 KiB
AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE
|
|
AM_CFLAGS += -I$(top_builddir)/libev
|
|
AM_CFLAGS += -I$(top_builddir)/libasyncns
|
|
AM_CFLAGS += -I$(top_builddir)/libipset/include
|
|
AM_CFLAGS += -I$(top_builddir)/libcork/include
|
|
|
|
AM_LDFLAGS = -static
|
|
|
|
SS_COMMON_LIBS = $(top_builddir)/libev/libev.la \
|
|
$(top_builddir)/libipset/libipset.la \
|
|
$(top_builddir)/libcork/libcork.la \
|
|
$(INET_NTOP_LIB)
|
|
|
|
bin_PROGRAMS = ss-local ss-tunnel
|
|
|
|
if !BUILD_WINCOMPAT
|
|
bin_PROGRAMS += ss-server
|
|
endif
|
|
|
|
ss_local_SOURCES = utils.c \
|
|
jconf.c \
|
|
json.c \
|
|
encrypt.c \
|
|
udprelay.c \
|
|
cache.c \
|
|
acl.c \
|
|
local.c
|
|
|
|
ss_tunnel_SOURCES = utils.c \
|
|
jconf.c \
|
|
json.c \
|
|
encrypt.c \
|
|
udprelay.c \
|
|
cache.c \
|
|
tunnel.c
|
|
|
|
ss_server_SOURCES = utils.c \
|
|
jconf.c \
|
|
json.c \
|
|
encrypt.c \
|
|
udprelay.c \
|
|
cache.c \
|
|
server.c
|
|
|
|
ss_local_LDADD = $(SS_COMMON_LIBS)
|
|
ss_tunnel_LDADD = $(SS_COMMON_LIBS)
|
|
ss_server_LDADD = $(SS_COMMON_LIBS)
|
|
ss_server_LDADD += $(top_builddir)/libasyncns/libasyncns.la
|
|
|
|
ss_local_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_LOCAL
|
|
ss_tunnel_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_LOCAL -DUDPRELAY_TUNNEL
|
|
ss_server_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_REMOTE
|
|
|
|
if BUILD_WINCOMPAT
|
|
ss_local_SOURCES += win32.c
|
|
ss_tunnel_SOURCES += win32.c
|
|
endif
|
|
|
|
if BUILD_REDIRECTOR
|
|
bin_PROGRAMS += ss-redir
|
|
ss_redir_SOURCES = utils.c \
|
|
jconf.c \
|
|
json.c \
|
|
encrypt.c \
|
|
redir.c
|
|
ss_redir_LDADD = $(SS_COMMON_LIBS)
|
|
endif
|
|
|