Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. lib_LTLIBRARIES = libtinyNET.la
  2. libtinyNET_la_LIBADD = ../tinySAK/libtinySAK.la
  3. libtinyNET_la_CPPFLAGS = -I../tinySAK/src -I./src
  4. if USE_SSL
  5. libtinyNET_la_LIBADD += ${LIBSSL_LIBADD}
  6. libtinyNET_la_CPPFLAGS += -DHAVE_OPENSSL=1
  7. endif
  8. if USE_RESOLV
  9. libtinyNET_la_LIBADD += ${LIBRESOLV_LIBADD}
  10. endif
  11. libtinyNET_la_SOURCES = \
  12. src/tnet.c\
  13. src/tnet_auth.c\
  14. src/tnet_endianness.c\
  15. src/tnet_nat.c\
  16. src/tnet_proxy_node_socks_plugin.c\
  17. src/tnet_proxy_plugin.c\
  18. src/tnet_proxydetect.c\
  19. src/tnet_poll.c\
  20. src/tnet_socket.c\
  21. src/tnet_transport.c\
  22. src/tnet_transport_poll.c\
  23. src/tnet_utils.c
  24. libtinyNET_la_SOURCES += src/dhcp/tnet_dhcp.c\
  25. src/dhcp/tnet_dhcp_message.c\
  26. src/dhcp/tnet_dhcp_option.c\
  27. src/dhcp/tnet_dhcp_option_sip.c
  28. libtinyNET_la_SOURCES += src/dhcp6/tnet_dhcp6.c\
  29. src/dhcp6/tnet_dhcp6_duid.c\
  30. src/dhcp6/tnet_dhcp6_message.c\
  31. src/dhcp6/tnet_dhcp6_option.c
  32. libtinyNET_la_SOURCES += src/dns/tnet_dns.c\
  33. src/dns/tnet_dns_a.c\
  34. src/dns/tnet_dns_aaaa.c\
  35. src/dns/tnet_dns_cname.c\
  36. src/dns/tnet_dns_message.c\
  37. src/dns/tnet_dns_mx.c\
  38. src/dns/tnet_dns_naptr.c\
  39. src/dns/tnet_dns_ns.c\
  40. src/dns/tnet_dns_opt.c\
  41. src/dns/tnet_dns_ptr.c\
  42. src/dns/tnet_dns_regexp.c\
  43. src/dns/tnet_dns_resolvconf.c\
  44. src/dns/tnet_dns_rr.c\
  45. src/dns/tnet_dns_soa.c\
  46. src/dns/tnet_dns_srv.c\
  47. src/dns/tnet_dns_txt.c
  48. libtinyNET_la_SOURCES += src/ice/tnet_ice_candidate.c\
  49. src/ice/tnet_ice_ctx.c\
  50. src/ice/tnet_ice_event.c\
  51. src/ice/tnet_ice_pair.c\
  52. src/ice/tnet_ice_utils.c
  53. libtinyNET_la_SOURCES += src/stun/tnet_stun.c\
  54. src/stun/tnet_stun_attr.c\
  55. src/stun/tnet_stun_binding.c\
  56. src/stun/tnet_stun_pkt.c\
  57. src/stun/tnet_stun_utils.c\
  58. \
  59. src/stun/tnet_stun_attribute.c\
  60. src/stun/tnet_stun_message.c
  61. libtinyNET_la_SOURCES += src/tls/tnet_tls.c\
  62. src/tls/tnet_dtls.c
  63. libtinyNET_la_SOURCES += src/turn/tnet_turn.c\
  64. src/turn/tnet_turn_session.c\
  65. \
  66. src/turn/tnet_turn_attribute.c\
  67. src/turn/tnet_turn_message.c
  68. libtinyNET_la_LDFLAGS = $LDFLAGS -no-undefined
  69. if TARGET_OS_IS_ANDROID
  70. libtinyNET_la_LDFLAGS += -static
  71. endif
  72. src_includedir = $(includedir)/tinynet
  73. src_include_HEADERS = src/*.h
  74. dhcp_includedir = $(includedir)/tinynet/dhcp
  75. dhcp_include_HEADERS = src/dhcp/*.h
  76. dhcp6_includedir = $(includedir)/tinynet/dhcp6
  77. dhcp6_include_HEADERS = src/dhcp6/*.h
  78. dns_includedir = $(includedir)/tinynet/dns
  79. dns_include_HEADERS = src/dns/*.h
  80. ice_includedir = $(includedir)/tinynet/ice
  81. ice_include_HEADERS = src/ice/*.h
  82. stun_includedir = $(includedir)/tinynet/stun
  83. stun_include_HEADERS = src/stun/*.h
  84. tls_includedir = $(includedir)/tinynet/tls
  85. tls_include_HEADERS = src/tls/*.h
  86. turn_includedir = $(includedir)/tinynet/turn
  87. turn_include_HEADERS = src/turn/*.h
  88. pkgconfigdir = $(libdir)/pkgconfig
  89. pkgconfig_DATA = tinyNET.pc