2002-06-29 01:26:42 +02:00
|
|
|
|
2009-06-04 07:05:23 +02:00
|
|
|
noinst_LIBRARIES = libor.a libor-crypto.a libor-event.a
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2009-08-20 07:47:13 +02:00
|
|
|
EXTRA_DIST = common_sha1.i sha256.c
|
2009-01-04 03:43:05 +01:00
|
|
|
|
2002-06-29 01:26:42 +02:00
|
|
|
#CFLAGS = -Wall -Wpointer-arith -O2
|
|
|
|
|
2008-02-17 20:03:49 +01:00
|
|
|
if USE_OPENBSD_MALLOC
|
2008-02-18 19:14:32 +01:00
|
|
|
libor_extra_source=OpenBSD_malloc_Linux.c
|
|
|
|
else
|
|
|
|
libor_extra_source=
|
2008-02-17 20:03:49 +01:00
|
|
|
endif
|
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
libor_a_SOURCES = \
|
|
|
|
address.c \
|
|
|
|
compat.c \
|
|
|
|
container.c \
|
|
|
|
log.c \
|
|
|
|
memarea.c \
|
|
|
|
mempool.c \
|
|
|
|
util.c \
|
|
|
|
util_codedigest.c \
|
|
|
|
$(libor_extra_source)
|
|
|
|
|
|
|
|
libor_crypto_a_SOURCES = \
|
|
|
|
aes.c \
|
|
|
|
crypto.c \
|
|
|
|
torgzip.c \
|
|
|
|
tortls.c
|
|
|
|
|
2009-06-04 07:05:23 +02:00
|
|
|
libor_event_a_SOURCES = compat_libevent.c
|
2008-02-18 19:14:32 +01:00
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
noinst_HEADERS = \
|
|
|
|
address.h \
|
|
|
|
aes.h \
|
|
|
|
ciphers.inc \
|
|
|
|
compat.h \
|
|
|
|
compat_libevent.h \
|
|
|
|
container.h \
|
|
|
|
crypto.h \
|
|
|
|
ht.h \
|
|
|
|
memarea.h \
|
|
|
|
mempool.h \
|
|
|
|
strlcat.c \
|
|
|
|
strlcpy.c \
|
|
|
|
torgzip.h \
|
|
|
|
torint.h \
|
|
|
|
torlog.h \
|
|
|
|
tortls.h \
|
|
|
|
tortls_states.h \
|
|
|
|
util.h
|
2009-01-04 03:43:05 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-05-08 18:35:36 +02:00
|
|
|
util_codedigest.o: common_sha1.i
|
2009-08-20 07:47:13 +02:00
|
|
|
crypto.o: sha256.c
|