applied new changes from NATT team
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 definitions.c definitions.h \
5 types.c types.h \
6 library.c library.h \
7 asn1/oid.c asn1/oid.h \
8 asn1/asn1.c asn1/asn1.h \
9 asn1/pem.c asn1/pem.h \
10 asn1/ttodata.c asn1/ttodata.h \
11 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_private_key.h \
12 crypto/rsa/rsa_public_key.h  crypto/rsa/rsa_public_key.c \
13 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h \
14 crypto/prfs/prf.c crypto/prfs/prf.h \
15 crypto/signers/hmac_signer.c crypto/signers/hmac_signer.h \
16 crypto/signers/signer.c crypto/signers/signer.h \
17 crypto/crypters/crypter.c crypto/crypters/crypter.h \
18 crypto/crypters/aes_cbc_crypter.c  crypto/crypters/aes_cbc_crypter.h\
19 crypto/hashers/hasher.h crypto/hashers/hasher.c \
20 crypto/hashers/sha1_hasher.c crypto/hashers/sha1_hasher.h \
21 crypto/hashers/md5_hasher.c  crypto/hashers/md5_hasher.h \
22 crypto/prf_plus.h crypto/prf_plus.c \
23 crypto/hmac.c crypto/hmac.h \
24 crypto/x509.c crypto/x509.h \
25 crypto/crl.c crypto/crl.h \
26 crypto/diffie_hellman.c crypto/diffie_hellman.h \
27 utils/identification.c utils/identification.h \
28 utils/linked_list.c utils/linked_list.h utils/iterator.h\
29 utils/randomizer.c utils/randomizer.h \
30 utils/logger.c utils/logger.h \
31 utils/logger_manager.c utils/logger_manager.h \
32 utils/host.c utils/host.h \
33 utils/lexparser.c utils/lexparser.h \
34 utils/leak_detective.c utils/leak_detective.h \
35 utils/tester.c utils/tester.h
36
37 libstrongswan_la_LIBADD = -lgmp -lpthread
38
39 INCLUDES = -I$(top_srcdir)/src/libstrongswan
40 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
41 BUILT_SOURCES = asn1/oid.c asn1/oid.h
42 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
43
44 if USE_LEAK_DETECTIVE
45   libstrongswan_la_LIBADD += -ldl
46   AM_CFLAGS = -DLEAK_DETECTIVE
47 endif
48
49 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
50                 cd asn1 && $(PERL) oid.pl
51
52 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
53                 cd asn1 && $(PERL) oid.pl