tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

include.am (1795B)


      1 
      2 #
      3 # Modules are conditionally compiled in tor starting here. We add the C files
      4 # only if the modules has been enabled at configure time. We always add the
      5 # source files of every module to libtor-testing.a so we can build the unit
      6 # tests for everything. See the UNITTESTS_ENABLED branch below.
      7 #
      8 LIBTOR_APP_TESTING_A_SOURCES = $(LIBTOR_APP_A_SOURCES)
      9 
     10 src_core_libtor_app_a_SOURCES = \
     11 	$(LIBTOR_APP_A_SOURCES) \
     12 	$(LIBTOR_APP_A_STUB_SOURCES)
     13 
     14 if UNITTESTS_ENABLED
     15 
     16 # Add the sources of the modules that are needed for tests to work here.
     17 LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_RELAY_SOURCES)
     18 LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_DIRCACHE_SOURCES)
     19 LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
     20 LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_POW_SOURCES)
     21 
     22 src_core_libtor_app_testing_a_SOURCES = $(LIBTOR_APP_TESTING_A_SOURCES)
     23 else
     24 src_core_libtor_app_testing_a_SOURCES =
     25 endif
     26 
     27 AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\""		\
     28 		-DLOCALSTATEDIR="\"$(localstatedir)\""	\
     29 		-DBINDIR="\"$(bindir)\""
     30 
     31 src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
     32 src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
     33 
     34 micro-revision.i: FORCE
     35 	$(AM_V_at)rm -f micro-revision.tmp; \
     36 	if test -r "$(top_srcdir)/.git" && \
     37 			test -x "`which git 2>&1;true`"; then \
     38 		HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
     39 		echo \"$$HASH\" > micro-revision.tmp; \
     40 	fi; \
     41 	if test ! -f micro-revision.tmp; then \
     42 		if test ! -f micro-revision.i; then \
     43 			echo '""' > micro-revision.i; \
     44 		fi; \
     45 	elif test ! -f micro-revision.i || \
     46 			test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
     47 		mv micro-revision.tmp micro-revision.i; \
     48 	fi; \
     49 	rm -f micro-revision.tmp; \
     50 	true
     51 
     52 CLEANFILES+= micro-revision.i micro-revision.tmp
     53 
     54 FORCE: