2012-08-02 15:31:43 +02:00
|
|
|
|
|
|
|
noinst_LIBRARIES+= src/common/libor.a src/common/libor-crypto.a src/common/libor-event.a
|
|
|
|
|
|
|
|
EXTRA_DIST+= \
|
|
|
|
src/common/common_sha1.i \
|
|
|
|
src/common/Makefile.nmake
|
|
|
|
|
|
|
|
#CFLAGS = -Wall -Wpointer-arith -O2
|
2012-08-27 16:00:22 +02:00
|
|
|
AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common
|
2012-08-02 15:31:43 +02:00
|
|
|
|
|
|
|
if USE_OPENBSD_MALLOC
|
|
|
|
libor_extra_source=src/common/OpenBSD_malloc_Linux.c
|
|
|
|
else
|
|
|
|
libor_extra_source=
|
|
|
|
endif
|
|
|
|
|
|
|
|
src_common_libor_a_SOURCES = \
|
|
|
|
src/common/address.c \
|
|
|
|
src/common/compat.c \
|
|
|
|
src/common/container.c \
|
|
|
|
src/common/di_ops.c \
|
|
|
|
src/common/log.c \
|
|
|
|
src/common/memarea.c \
|
|
|
|
src/common/mempool.c \
|
|
|
|
src/common/procmon.c \
|
|
|
|
src/common/util.c \
|
|
|
|
src/common/util_codedigest.c \
|
|
|
|
$(libor_extra_source)
|
|
|
|
|
|
|
|
src_common_libor_crypto_a_SOURCES = \
|
|
|
|
src/common/aes.c \
|
|
|
|
src/common/crypto.c \
|
|
|
|
src/common/torgzip.c \
|
|
|
|
src/common/tortls.c
|
|
|
|
|
|
|
|
src_common_libor_event_a_SOURCES = src/common/compat_libevent.c
|
|
|
|
|
2012-09-06 15:56:48 +02:00
|
|
|
COMMONHEADERS = \
|
2012-08-02 15:31:43 +02:00
|
|
|
src/common/address.h \
|
|
|
|
src/common/aes.h \
|
|
|
|
src/common/ciphers.inc \
|
|
|
|
src/common/compat.h \
|
|
|
|
src/common/compat_libevent.h \
|
|
|
|
src/common/container.h \
|
|
|
|
src/common/crypto.h \
|
|
|
|
src/common/di_ops.h \
|
|
|
|
src/common/ht.h \
|
|
|
|
src/common/memarea.h \
|
|
|
|
src/common/mempool.h \
|
|
|
|
src/common/procmon.h \
|
|
|
|
src/common/strlcat.c \
|
|
|
|
src/common/strlcpy.c \
|
|
|
|
src/common/torgzip.h \
|
|
|
|
src/common/torint.h \
|
|
|
|
src/common/torlog.h \
|
|
|
|
src/common/tortls.h \
|
|
|
|
src/common/util.h
|
|
|
|
|
2012-09-06 15:56:48 +02:00
|
|
|
noinst_HEADERS+= $(COMMONHEADERS)
|
|
|
|
|
2012-08-03 03:20:52 +02:00
|
|
|
DISTCLEANFILES+= src/common/common_sha1.i
|
|
|
|
|
2012-09-06 15:56:48 +02:00
|
|
|
src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(COMMONHEADERS)
|
2012-08-23 19:14:41 +02:00
|
|
|
$(AM_V_GEN)if test "@SHA1SUM@" != none; then \
|
2012-09-06 15:56:48 +02:00
|
|
|
(cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > $@; \
|
2012-08-02 15:31:43 +02:00
|
|
|
elif test "@OPENSSL@" != none; then \
|
2012-09-06 15:56:48 +02:00
|
|
|
(cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > $@; \
|
2012-08-02 15:31:43 +02:00
|
|
|
else \
|
2012-08-03 03:20:52 +02:00
|
|
|
rm $@; \
|
|
|
|
touch $@; \
|
2012-08-02 15:31:43 +02:00
|
|
|
fi
|
|
|
|
|
2012-08-03 03:20:52 +02:00
|
|
|
src/common/util_codedigest.o: src/common/common_sha1.i
|
2012-09-13 01:25:58 +02:00
|
|
|
|