fixed compilation warnings and errors when not using curl
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 credential_store.h \
5 library.c library.h \
6 chunk.c chunk.h \
7 debug.c debug.h \
8 enum.c enum.h \
9 printf_hook.c printf_hook.h \
10 asn1/asn1.c asn1/asn1.h \
11 asn1/oid.c asn1/oid.h \
12 asn1/pem.c asn1/pem.h \
13 asn1/ttodata.c asn1/ttodata.h \
14 crypto/ca.c crypto/ca.h \
15 crypto/certinfo.c crypto/certinfo.h \
16 crypto/crl.c crypto/crl.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/crypters/des_crypter.c  crypto/crypters/des_crypter.h\
20 crypto/diffie_hellman.c crypto/diffie_hellman.h \
21 crypto/hashers/hasher.h crypto/hashers/hasher.c \
22 crypto/hashers/sha1_hasher.c crypto/hashers/sha1_hasher.h \
23 crypto/hashers/sha2_hasher.c crypto/hashers/sha2_hasher.h \
24 crypto/hashers/md5_hasher.c  crypto/hashers/md5_hasher.h \
25 crypto/hmac.c crypto/hmac.h \
26 crypto/ocsp.c crypto/ocsp.h \
27 crypto/prfs/fips_prf.c crypto/prfs/fips_prf.h \
28 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h \
29 crypto/prfs/prf.c crypto/prfs/prf.h \
30 crypto/prf_plus.h crypto/prf_plus.c \
31 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_private_key.h \
32 crypto/rsa/rsa_public_key.h  crypto/rsa/rsa_public_key.c \
33 crypto/signers/hmac_signer.c crypto/signers/hmac_signer.h \
34 crypto/signers/signer.c crypto/signers/signer.h \
35 crypto/x509.c crypto/x509.h \
36 utils/fetcher.c utils/fetcher.h \
37 utils/host.c utils/host.h \
38 utils/identification.c utils/identification.h \
39 utils/iterator.h \
40 utils/leak_detective.c utils/leak_detective.h \
41 utils/lexparser.c utils/lexparser.h \
42 utils/linked_list.c utils/linked_list.h \
43 utils/randomizer.c utils/randomizer.h
44
45 libstrongswan_la_LIBADD = -lgmp -lpthread
46
47 INCLUDES = -I$(top_srcdir)/src/libstrongswan
48 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
49 BUILT_SOURCES = asn1/oid.c asn1/oid.h
50 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
51
52 if USE_LEAK_DETECTIVE
53   libstrongswan_la_LIBADD += -ldl
54   AM_CFLAGS = -DLEAK_DETECTIVE
55 endif
56
57 if USE_LIBCURL
58   libstrongswan_la_LIBADD += -lcurl
59 endif
60
61 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
62                 cd asn1 && $(PERL) oid.pl
63
64 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
65                 cd asn1 && $(PERL) oid.pl