1 lib_LTLIBRARIES = libstrongswan.la
4 libstrongswan_la_SOURCES = \
5 fips/fips_canister_start.c \
6 fips/fips.c fips/fips.h
8 libstrongswan_la_SOURCES =
11 libstrongswan_la_SOURCES += \
16 settings.h settings.c \
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/crypters/crypter.c crypto/crypters/crypter.h \
23 crypto/hashers/hasher.h crypto/hashers/hasher.c \
24 crypto/pkcs9.c crypto/pkcs9.h \
25 crypto/prfs/prf.c crypto/prfs/prf.h \
26 crypto/prf_plus.h crypto/prf_plus.c \
27 crypto/signers/signer.c crypto/signers/signer.h \
28 crypto/diffie_hellman.c crypto/diffie_hellman.h \
29 crypto/crypto_factory.c crypto/crypto_factory.h \
30 credentials/credential_factory.c credentials/credential_factory.h \
31 credentials/builder.c credentials/builder.h \
32 credentials/keys/private_key.c credentials/keys/private_key.h \
33 credentials/keys/public_key.c credentials/keys/public_key.h \
34 credentials/keys/shared_key.c credentials/keys/shared_key.h \
35 credentials/certificates/certificate.c credentials/certificates/certificate.h \
36 credentials/certificates/x509.h credentials/certificates/x509.c \
37 credentials/certificates/ac.h \
38 credentials/certificates/crl.h credentials/certificates/crl.c \
39 credentials/certificates/ocsp_request.h \
40 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
41 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
42 database/database.h database/database_factory.h database/database_factory.c \
44 utils/host.c utils/host.h \
45 utils/identification.c utils/identification.h \
47 utils/lexparser.c utils/lexparser.h \
48 utils/linked_list.c utils/linked_list.h \
49 utils/enumerator.c utils/enumerator.h \
50 utils/optionsfrom.c utils/optionsfrom.h \
51 utils/randomizer.c utils/randomizer.h \
52 utils/mutex.c utils/mutex.h \
53 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
55 libstrongswan_la_LIBADD = -lpthread -ldl
57 INCLUDES = -I$(top_srcdir)/src/libstrongswan
58 AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \
59 -DIPSEC_PLUGINDIR=\"${plugindir}\"
62 AM_CFLAGS += -DLEAK_DETECTIVE
63 libstrongswan_la_SOURCES += utils/leak_detective.c utils/leak_detective.h
67 libstrongswan_la_SOURCES += \
68 fips/fips_canister_end.c
71 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
72 BUILT_SOURCES = asn1/oid.c asn1/oid.h
73 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
75 asn1/oid.c : asn1/oid.txt asn1/oid.pl
76 cd asn1 && $(PERL) oid.pl
78 asn1/oid.h : asn1/oid.txt asn1/oid.pl
79 cd asn1 && $(PERL) oid.pl
82 # build plugins with their own Makefile
83 #######################################
88 SUBDIRS += plugins/aes
92 SUBDIRS += plugins/des
96 SUBDIRS += plugins/md5
100 SUBDIRS += plugins/sha1
104 SUBDIRS += plugins/sha2
108 SUBDIRS += plugins/fips_prf
112 SUBDIRS += plugins/gmp
116 SUBDIRS += plugins/hmac
120 SUBDIRS += plugins/x509
124 SUBDIRS += plugins/curl
128 SUBDIRS += plugins/ldap
132 SUBDIRS += plugins/mysql
136 SUBDIRS += plugins/sqlite
140 if USE_INTEGRITY_TEST
141 # build fips_signer which in turn builds fips_signature.h
142 #########################################################
143 noinst_PROGRAMS = fips_signer
144 fips_signer_SOURCES = fips/fips_signer.c
145 fips_signer_LDADD = libstrongswan.la
147 BUILT_SOURCES += fips_signature.h
148 CLEANFILES = fips_signature.h fips_signer
150 fips_signature.h : fips_signer