mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
build: minimal adjustments to make out-of-tree build work
This commit is contained in:
parent
5db37bca3d
commit
90d1c85757
@ -16,6 +16,7 @@ TESTS=
|
||||
noinst_PROGRAMS=
|
||||
DISTCLEANFILES=
|
||||
bin_SCRIPTS=
|
||||
AM_CPPFLAGS=
|
||||
include src/include.am
|
||||
include doc/include.am
|
||||
include contrib/include.am
|
||||
|
@ -7,6 +7,7 @@ EXTRA_DIST+= \
|
||||
src/common/Makefile.nmake
|
||||
|
||||
#CFLAGS = -Wall -Wpointer-arith -O2
|
||||
AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common
|
||||
|
||||
if USE_OPENBSD_MALLOC
|
||||
libor_extra_source=src/common/OpenBSD_malloc_Linux.c
|
||||
|
@ -55,18 +55,18 @@ src_or_libtor_a_SOURCES = \
|
||||
src/or/status.c \
|
||||
$(evdns_source) \
|
||||
$(tor_platform_source) \
|
||||
src/or/config_codedigest.c
|
||||
src/or/config_codedigest.c
|
||||
|
||||
#libtor_a_LIBADD = ../common/libor.a ../common/libor-crypto.a \
|
||||
# ../common/libor-event.a
|
||||
|
||||
|
||||
src_or_tor_SOURCES = src/or/tor_main.c
|
||||
src_or_tor_INCLUDES= -Isrc/or/
|
||||
AM_CPPFLAGS += -I$(srcdir)/src/or -Isrc/or
|
||||
|
||||
src/or/tor_main.c: src/or/micro-revision.i
|
||||
src/or/tor_main.c: micro-revision.i
|
||||
|
||||
AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
|
||||
AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\"" \
|
||||
-DLOCALSTATEDIR="\"$(localstatedir)\"" \
|
||||
-DBINDIR="\"$(bindir)\""
|
||||
|
||||
@ -123,24 +123,24 @@ noinst_HEADERS+= \
|
||||
src/or/routerlist.h \
|
||||
src/or/routerparse.h \
|
||||
src/or/status.h \
|
||||
src/or/micro-revision.i
|
||||
micro-revision.i
|
||||
|
||||
src/or/config_codedigest.o: src/or/or_sha1.i
|
||||
|
||||
src/or/micro-revision.i: FORCE
|
||||
@rm -f src/or/micro-revision.tmp; \
|
||||
micro-revision.i: FORCE
|
||||
@rm -f micro-revision.tmp; \
|
||||
if test -d "$(top_srcdir)/.git" && \
|
||||
test -x "`which git 2>&1;true`"; then \
|
||||
HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
|
||||
echo \"$$HASH\" > src/or/micro-revision.tmp; \
|
||||
echo \"$$HASH\" > micro-revision.tmp; \
|
||||
fi; \
|
||||
if test ! -f src/or/micro-revision.tmp ; then \
|
||||
if test ! -f src/or/micro-revision.i ; then \
|
||||
echo '""' > src/or/micro-revision.i; \
|
||||
if test ! -f micro-revision.tmp ; then \
|
||||
if test ! -f micro-revision.i ; then \
|
||||
echo '""' > micro-revision.i; \
|
||||
fi; \
|
||||
elif test ! -f src/or/micro-revision.i || \
|
||||
test x"`cat src/or/micro-revision.tmp`" != x"`cat src/or/micro-revision.i`"; then \
|
||||
mv src/or/micro-revision.tmp src/or/micro-revision.i; \
|
||||
elif test ! -f micro-revision.i || \
|
||||
test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
|
||||
mv micro-revision.tmp micro-revision.i; \
|
||||
fi; true
|
||||
|
||||
src/or/or_sha1.i: $(src_or_tor_SOURCES) $(src_or_libtor_a_SOURCES)
|
||||
@ -155,6 +155,6 @@ src/or/or_sha1.i: $(src_or_tor_SOURCES) $(src_or_libtor_a_SOURCES)
|
||||
touch src/or/or_sha1.i; \
|
||||
fi
|
||||
|
||||
CLEANFILES+= src/or/micro-revision.i
|
||||
CLEANFILES+= micro-revision.i
|
||||
|
||||
FORCE:
|
||||
|
Loading…
Reference in New Issue
Block a user