Makefile.am 3.7 KB

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