replaced get_rsa_private_key() by rsa_signature() in order restrict the distribution...
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 if USE_INTEGRITY_TEST
4   libstrongswan_la_SOURCES = \
5   fips/fips_canister_start.c \
6   fips/fips.c fips/fips.h
7 else
8   libstrongswan_la_SOURCES =
9 endif
10
11 libstrongswan_la_SOURCES += \
12 credential_store.h \
13 library.c library.h \
14 chunk.c chunk.h \
15 debug.c debug.h \
16 enum.c enum.h \
17 printf_hook.c printf_hook.h \
18 asn1/asn1.c asn1/asn1.h \
19 asn1/oid.c asn1/oid.h \
20 asn1/pem.c asn1/pem.h \
21 asn1/ttodata.c asn1/ttodata.h \
22 crypto/ac.c crypto/ac.h \
23 crypto/ca.c crypto/ca.h \
24 crypto/certinfo.c crypto/certinfo.h \
25 crypto/crl.c crypto/crl.h \
26 crypto/crypters/crypter.c crypto/crypters/crypter.h \
27 crypto/crypters/aes_cbc_crypter.c crypto/crypters/aes_cbc_crypter.h \
28 crypto/crypters/des_crypter.c crypto/crypters/des_crypter.h \
29 crypto/diffie_hellman.c crypto/diffie_hellman.h \
30 crypto/hashers/hasher.h crypto/hashers/hasher.c \
31 crypto/hashers/sha1_hasher.c crypto/hashers/sha1_hasher.h \
32 crypto/hashers/sha2_hasher.c crypto/hashers/sha2_hasher.h \
33 crypto/hashers/md5_hasher.c  crypto/hashers/md5_hasher.h \
34 crypto/hmac.c crypto/hmac.h \
35 crypto/ocsp.c crypto/ocsp.h \
36 crypto/prfs/fips_prf.c crypto/prfs/fips_prf.h \
37 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h \
38 crypto/prfs/prf.c crypto/prfs/prf.h \
39 crypto/prf_plus.h crypto/prf_plus.c \
40 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_private_key.h \
41 crypto/rsa/rsa_public_key.h  crypto/rsa/rsa_public_key.c \
42 crypto/signers/hmac_signer.c crypto/signers/hmac_signer.h \
43 crypto/signers/signer.c crypto/signers/signer.h \
44 crypto/x509.c crypto/x509.h \
45 utils/fetcher.c utils/fetcher.h \
46 utils/host.c utils/host.h \
47 utils/identification.c utils/identification.h \
48 utils/iterator.h \
49 utils/leak_detective.c utils/leak_detective.h \
50 utils/lexparser.c utils/lexparser.h \
51 utils/linked_list.c utils/linked_list.h \
52 utils/randomizer.c utils/randomizer.h
53
54 if USE_INTEGRITY_TEST
55   libstrongswan_la_SOURCES += \
56   fips/fips_canister_end.c
57 endif
58
59 libstrongswan_la_LIBADD = -lgmp -lpthread
60
61 INCLUDES = -I$(top_srcdir)/src/libstrongswan
62
63 if USE_LEAK_DETECTIVE
64   libstrongswan_la_LIBADD += -ldl
65   AM_CFLAGS = -DLEAK_DETECTIVE
66 endif
67
68 if USE_LIBCURL
69   libstrongswan_la_LIBADD += -lcurl
70 endif
71
72 if USE_LIBLDAP
73   libstrongswan_la_LIBADD += -lldap -llber
74 endif
75
76 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
77 BUILT_SOURCES = asn1/oid.c asn1/oid.h
78 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
79
80 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
81                 cd asn1 && $(PERL) oid.pl
82
83 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
84                 cd asn1 && $(PERL) oid.pl
85
86 if USE_INTEGRITY_TEST
87 # build fips_signer which in turn builds fips_signature.h
88 #########################################################
89 noinst_PROGRAMS = fips_signer
90 fips_signer_SOURCES = fips/fips_signer.c
91 fips_signer_LDADD = libstrongswan.la
92
93 BUILT_SOURCES += fips_signature.h
94 CLEANFILES = fips_signature.h fips_signer
95
96 fips_signature.h : fips_signer
97                    ./fips_signer
98 endif