Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 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. tor_LIBS = -lz -levent -lssl -lcrypto
  13. tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@ \
  14. -lz -levent -lssl -lcrypto
  15. tor_LDADD = ../common/libor.a ../common/libor-crypto.a
  16. test_SOURCES = buffers.c circuitbuild.c circuitlist.c \
  17. circuituse.c command.c config.c \
  18. connection.c connection_edge.c connection_or.c control.c \
  19. cpuworker.c directory.c dirserv.c dns.c hibernate.c main.c \
  20. onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
  21. rendservice.c rephist.c router.c routerlist.c routerparse.c \
  22. eventdns.c \
  23. test.c
  24. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  25. @TOR_LDFLAGS_libevent@ -lz -levent -lssl -lcrypto
  26. test_LDADD = ../common/libor.a ../common/libor-crypto.a
  27. noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
  28. tor_main.o: micro-revision.i
  29. micro-revision.i: FORCE
  30. @if test -d ../../.svn ; then \
  31. svn info ../.. | \
  32. sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.i \
  33. || true; \
  34. else \
  35. if test x`which svk` != x -a -d ~/.svk; then \
  36. location=../..; \
  37. rev=x; \
  38. while test x$$rev = xx; do \
  39. x=`svk info $$location | \
  40. sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \
  41. if test x$$x != x; then \
  42. rev=$$x; \
  43. break; \
  44. else \
  45. loc=`svk info $$location | \
  46. sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
  47. if test x$$loc = x; then \
  48. break; \
  49. else \
  50. location=/$$loc; \
  51. fi; \
  52. fi; \
  53. done; \
  54. if test x$$rev != x; then \
  55. echo \"$$rev\" > micro-revision.i; \
  56. fi; \
  57. fi; \
  58. fi; \
  59. if test ! -f micro-revision.i; then \
  60. echo '""' > micro-revision.i; \
  61. fi
  62. FORCE: