Makefile.am 2.9 KB

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