mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 14:43:46 +01:00
e802199cb3
We'll still need to tweak it so that it looks for includes and libraries somewhere more sensible than "where we happened to find them on Erinn's system"; so that tests and tools get built too; so that it's a bit documented; and so that we actually try running the output. Work done with Erinn Clark.
69 lines
1.5 KiB
Makefile
69 lines
1.5 KiB
Makefile
|
|
noinst_LIBRARIES = libor.a libor-crypto.a libor-event.a
|
|
|
|
EXTRA_DIST = common_sha1.i sha256.c Makefile.nmake
|
|
|
|
#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 \
|
|
compat.c \
|
|
container.c \
|
|
di_ops.c \
|
|
log.c \
|
|
memarea.c \
|
|
mempool.c \
|
|
procmon.c \
|
|
util.c \
|
|
util_codedigest.c \
|
|
$(libor_extra_source)
|
|
|
|
libor_crypto_a_SOURCES = \
|
|
aes.c \
|
|
crypto.c \
|
|
torgzip.c \
|
|
tortls.c
|
|
|
|
libor_event_a_SOURCES = compat_libevent.c
|
|
|
|
noinst_HEADERS = \
|
|
address.h \
|
|
aes.h \
|
|
ciphers.inc \
|
|
compat.h \
|
|
compat_libevent.h \
|
|
container.h \
|
|
crypto.h \
|
|
di_ops.h \
|
|
ht.h \
|
|
memarea.h \
|
|
mempool.h \
|
|
procmon.h \
|
|
strlcat.c \
|
|
strlcpy.c \
|
|
torgzip.h \
|
|
torint.h \
|
|
torlog.h \
|
|
tortls.h \
|
|
tortls_states.h \
|
|
util.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
|