- fixed build when using --enable-leak-detective
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_public_key.h crypto/rsa/rsa_private_key.h crypto/rsa/rsa_public_key.c \
5 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h crypto/prfs/prf.c crypto/prfs/prf.h crypto/signers/hmac_signer.c \
6 crypto/signers/hmac_signer.h crypto/signers/signer.c crypto/signers/signer.h crypto/crypters/aes_cbc_crypter.c \
7 crypto/crypters/crypter.c crypto/crypters/aes_cbc_crypter.h crypto/crypters/crypter.h crypto/hashers/sha1_hasher.c \
8 crypto/hashers/md5_hasher.c crypto/hashers/hasher.h crypto/hashers/md5_hasher.h crypto/hashers/hasher.c \
9 crypto/hashers/sha1_hasher.h crypto/diffie_hellman.c crypto/prf_plus.h crypto/x509.c crypto/prf_plus.c \
10 crypto/hmac.c crypto/x509.h crypto/hmac.h crypto/diffie_hellman.h utils/identification.h utils/iterator.h \
11 utils/linked_list.c utils/linked_list.h utils/tester.c utils/leak_detective.c utils/logger_manager.c \
12 utils/randomizer.c utils/tester.h utils/leak_detective.h utils/host.c utils/logger_manager.h utils/randomizer.h \
13 utils/logger.c utils/host.h utils/logger.h utils/identification.c utils/lexparser.c utils/lexparser.h \
14 asn1/ttodata.c asn1/oid.h asn1/ttodata.h asn1/pem.c asn1/asn1.c asn1/pem.h asn1/asn1.h asn1/oid.c definitions.h types.h \
15 definitions.c library.c types.c library.h 
16
17 libstrongswan_la_LIBADD = -lgmp -lpthread
18
19 INCLUDES = -I$(top_srcdir)/src/libstrongswan
20 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
21 DISTCLEANFILES = asn1/oid.c asn1/oid.h
22
23 if USE_LEAK_DETECTIVE
24   libstrongswan_la_LIBADD += -ldl
25   AM_CFLAGS = -DLEAK_DETECTIVE
26 endif
27
28
29 # TODO: get perl from ./configure
30 PERL=perl
31
32 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
33                 cd asn1 && $(PERL) oid.pl
34
35 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
36                 cd asn1 && $(PERL) oid.pl
37