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

11 years ago
10 years ago
11 years ago
10 years ago
10 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE
  2. AM_CFLAGS += -I$(top_builddir)/libev
  3. AM_CFLAGS += -I$(top_builddir)/libasyncns
  4. AM_CFLAGS += -I$(top_builddir)/libipset/include
  5. AM_CFLAGS += -I$(top_builddir)/libcork/include
  6. AM_LDFLAGS = -static
  7. SS_COMMON_LIBS = $(top_builddir)/libev/libev.la \
  8. $(top_builddir)/libipset/libipset.la \
  9. $(top_builddir)/libcork/libcork.la \
  10. $(INET_NTOP_LIB)
  11. bin_PROGRAMS = ss-local ss-tunnel
  12. if !BUILD_WINCOMPAT
  13. bin_PROGRAMS += ss-server
  14. endif
  15. ss_local_SOURCES = utils.c \
  16. jconf.c \
  17. json.c \
  18. encrypt.c \
  19. udprelay.c \
  20. cache.c \
  21. acl.c \
  22. local.c
  23. ss_tunnel_SOURCES = utils.c \
  24. jconf.c \
  25. json.c \
  26. encrypt.c \
  27. udprelay.c \
  28. cache.c \
  29. tunnel.c
  30. ss_server_SOURCES = utils.c \
  31. jconf.c \
  32. json.c \
  33. encrypt.c \
  34. udprelay.c \
  35. cache.c \
  36. server.c
  37. ss_local_LDADD = $(SS_COMMON_LIBS)
  38. ss_tunnel_LDADD = $(SS_COMMON_LIBS)
  39. ss_server_LDADD = $(SS_COMMON_LIBS)
  40. ss_server_LDADD += $(top_builddir)/libasyncns/libasyncns.la
  41. ss_local_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_LOCAL
  42. ss_tunnel_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_LOCAL -DUDPRELAY_TUNNEL
  43. ss_server_CFLAGS = $(AM_CFLAGS) -DUDPRELAY_REMOTE
  44. if BUILD_WINCOMPAT
  45. ss_local_SOURCES += win32.c
  46. ss_tunnel_SOURCES += win32.c
  47. endif
  48. if BUILD_REDIRECTOR
  49. bin_PROGRAMS += ss-redir
  50. ss_redir_SOURCES = utils.c \
  51. jconf.c \
  52. json.c \
  53. encrypt.c \
  54. redir.c
  55. ss_redir_LDADD = $(SS_COMMON_LIBS)
  56. endif