log_certificates() now shows keyid and availability of matching private key
[strongswan.git] / src / libstrongswan / Makefile.am
index 81681bc..68e5497 100644 (file)
@@ -1,6 +1,7 @@
 lib_LTLIBRARIES = libstrongswan.la
 
 libstrongswan_la_SOURCES = \
+asn1/oid.c asn1/oid.h \
 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_public_key.h crypto/rsa/rsa_private_key.h crypto/rsa/rsa_public_key.c \
 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h crypto/prfs/prf.c crypto/prfs/prf.h crypto/signers/hmac_signer.c \
 crypto/signers/hmac_signer.h crypto/signers/signer.c crypto/signers/signer.h crypto/crypters/aes_cbc_crypter.c \
@@ -11,10 +12,22 @@ crypto/hmac.c crypto/x509.h crypto/hmac.h crypto/diffie_hellman.h utils/identifi
 utils/linked_list.c utils/linked_list.h utils/tester.c utils/leak_detective.c utils/logger_manager.c \
 utils/randomizer.c utils/tester.h utils/leak_detective.h utils/host.c utils/logger_manager.h utils/randomizer.h \
 utils/logger.c utils/host.h utils/logger.h utils/identification.c utils/lexparser.c utils/lexparser.h \
-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 \
+asn1/ttodata.c asn1/ttodata.h asn1/pem.c asn1/asn1.c asn1/pem.h asn1/asn1.h definitions.h types.h \
 definitions.c library.c types.c library.h 
 
 libstrongswan_la_LIBADD = -lgmp -lpthread
 
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
+MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
+
+if USE_LEAK_DETECTIVE
+  libstrongswan_la_LIBADD += -ldl
+  AM_CFLAGS = -DLEAK_DETECTIVE
+endif
+
+asn1/oid.c :   asn1/oid.txt asn1/oid.pl
+               cd asn1 && $(PERL) oid.pl
+
+asn1/oid.h :   asn1/oid.txt asn1/oid.pl
+               cd asn1 && $(PERL) oid.pl