mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
14bc4dcc22
This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
|
|
noinst_LIBRARIES = libor.a libor-crypto.a libor-event.a
|
|
|
|
EXTRA_DIST = common_sha1.i sha256.c
|
|
|
|
#CFLAGS = -Wall -Wpointer-arith -O2
|
|
|
|
if USE_OPENBSD_MALLOC
|
|
libor_extra_source=OpenBSD_malloc_Linux.c
|
|
else
|
|
libor_extra_source=
|
|
endif
|
|
|
|
libor_a_SOURCES = address.c log.c util.c compat.c container.c mempool.c \
|
|
memarea.c util_codedigest.c $(libor_extra_source)
|
|
libor_crypto_a_SOURCES = crypto.c aes.c tortls.c torgzip.c
|
|
libor_event_a_SOURCES = compat_libevent.c
|
|
|
|
noinst_HEADERS = address.h torlog.h crypto.h util.h compat.h aes.h torint.h tortls.h strlcpy.c strlcat.c torgzip.h container.h ht.h mempool.h memarea.h ciphers.inc compat_libevent.h tortls_states.h
|
|
|
|
common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
|
|
if test "@SHA1SUM@" != none; then \
|
|
@SHA1SUM@ $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > common_sha1.i; \
|
|
elif test "@OPENSSL@" != none; then \
|
|
@OPENSSL@ sha1 $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > common_sha1.i; \
|
|
else \
|
|
rm common_sha1.i; \
|
|
touch common_sha1.i; \
|
|
fi
|
|
|
|
util_codedigest.o: common_sha1.i
|
|
crypto.o: sha256.c
|