Makefile.am 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. TESTS = test
  2. noinst_PROGRAMS = test
  3. bin_PROGRAMS = tor
  4. if BUILD_NT_SERVICES
  5. tor_platform_source=ntmain.c
  6. else
  7. tor_platform_source=
  8. endif
  9. EXTRA_DIST=ntmain.c
  10. tor_SOURCES = buffers.c circuitbuild.c circuitlist.c \
  11. circuituse.c command.c config.c \
  12. connection.c connection_edge.c connection_or.c control.c \
  13. cpuworker.c directory.c dirserv.c dirvote.c \
  14. dns.c dnsserv.c hibernate.c main.c $(tor_platform_source) \
  15. networkstatus.c \
  16. onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
  17. rendservice.c rephist.c router.c routerlist.c routerparse.c \
  18. eventdns.c \
  19. tor_main.c
  20. # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
  21. # This seems to matter nowhere but on windows, but I assure you that it
  22. # matters a lot there, and is quite hard to debug if you forget to do it.
  23. tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
  24. tor_LDADD = ../common/libor.a ../common/libor-crypto.a \
  25. -lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
  26. test_SOURCES = buffers.c circuitbuild.c circuitlist.c \
  27. circuituse.c command.c config.c \
  28. connection.c connection_edge.c connection_or.c control.c \
  29. cpuworker.c directory.c dirserv.c dirvote.c \
  30. dns.c dnsserv.c hibernate.c main.c $(tor_platform_source) \
  31. networkstatus.c \
  32. onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
  33. rendservice.c rephist.c router.c routerlist.c routerparse.c \
  34. eventdns.c \
  35. test_data.c test.c
  36. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  37. @TOR_LDFLAGS_libevent@
  38. test_LDADD = ../common/libor.a ../common/libor-crypto.a \
  39. -lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
  40. noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
  41. tor_main.o: micro-revision.i
  42. micro-revision.i: FORCE
  43. @svkdir=$$SVKROOT; \
  44. if test "x$$svkdir" = x ; then \
  45. svkdir=$$HOME/.svk; \
  46. fi; \
  47. if test -d ../../.svn && test -x "`which svn 2>&1;true`" ; then \
  48. svn info ../.. | \
  49. sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \
  50. || true; \
  51. elif test -x "`which svk 2>&1;true`" && test -d $$svkdir/local; then \
  52. location=../..; \
  53. rev=x; \
  54. while test x$$rev = xx; do \
  55. x=`svk info $$location | \
  56. sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \
  57. if test x$$x != x; then \
  58. rev=$$x; \
  59. break; \
  60. else \
  61. loc=`svk info $$location | \
  62. sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
  63. if test x$$loc = x; then \
  64. break; \
  65. else \
  66. location=/$$loc; \
  67. fi; \
  68. fi; \
  69. done; \
  70. if test x$$rev != xx; then \
  71. echo \"$$rev\" > micro-revision.tmp; \
  72. fi; \
  73. fi; \
  74. if test ! -f micro-revision.tmp ; then \
  75. if test ! -f micro-revision.i ; then \
  76. echo '""' > micro-revision.i; \
  77. fi; \
  78. elif test ! -f micro-revision.i || \
  79. test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
  80. mv micro-revision.tmp micro-revision.i; \
  81. fi; true
  82. #Dummy target to ensure that micro-revision.i _always_ gets built.
  83. FORCE: