Makefile.am 3.3 KB

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