diff options
Diffstat (limited to 'pkcs11/gkm/Makefile.am')
-rw-r--r-- | pkcs11/gkm/Makefile.am | 251 |
1 files changed, 146 insertions, 105 deletions
diff --git a/pkcs11/gkm/Makefile.am b/pkcs11/gkm/Makefile.am index 45f61b00..20c7d912 100644 --- a/pkcs11/gkm/Makefile.am +++ b/pkcs11/gkm/Makefile.am @@ -1,111 +1,152 @@ -INCLUDES = \ - -I$(top_builddir) \ - -I$(top_srcdir) \ - -I$(top_srcdir)/pkcs11 \ - -DSRCDIR="\"@abs_srcdir@\"" \ - $(GOBJECT_CFLAGS) \ - $(LIBGCRYPT_CFLAGS) \ - $(GLIB_CFLAGS) # ------------------------------------------------------------------------------ # The GKM library -noinst_LTLIBRARIES = \ +noinst_LTLIBRARIES += \ libgkm.la -BUILT_SOURCES = \ +gkm_BUILT = \ gkm-marshal.c gkm-marshal.h -libgkm_la_SOURCES = \ - gkm-aes-key.c gkm-aes-key.h \ - gkm-aes-mechanism.c gkm-aes-mechanism.h \ - gkm-assertion.c gkm-assertion.h \ - gkm-attributes.c gkm-attributes.h \ - gkm-certificate.c gkm-certificate.h \ - gkm-certificate-key.c gkm-certificate-key.h \ - gkm-credential.c gkm-credential.h \ - gkm-crypto.c gkm-crypto.h \ - gkm-data-asn1.c gkm-data-asn1.h \ - gkm-data-der.c gkm-data-der.h \ - gkm-data-types.h \ - gkm-debug.c gkm-debug.h \ - gkm-dh-key.c gkm-dh-key.h \ - gkm-dh-mechanism.c gkm-dh-mechanism.h \ - gkm-dh-private-key.c gkm-dh-private-key.h \ - gkm-dh-public-key.c gkm-dh-public-key.h \ - gkm-dsa-mechanism.c gkm-dsa-mechanism.h \ - gkm-factory.c gkm-factory.h \ - gkm-file-tracker.c gkm-file-tracker.h \ - gkm-generic-key.c gkm-generic-key.h \ - gkm-hkdf-mechanism.c gkm-hkdf-mechanism.h \ - gkm-log.c gkm-log.h \ - gkm-manager.c gkm-manager.h \ - gkm-memory-store.c gkm-memory-store.h \ - gkm-mock.c gkm-mock.h \ - gkm-module.c gkm-module.h gkm-module-ep.h \ - gkm-null-key.c gkm-null-key.h \ - gkm-null-mechanism.c gkm-null-mechanism.h \ - gkm-object.c gkm-object.h \ - gkm-oids.h \ - gkm-private-xsa-key.c gkm-private-xsa-key.h \ - gkm-public-xsa-key.c gkm-public-xsa-key.h \ - gkm-rsa-mechanism.c gkm-rsa-mechanism.h \ - gkm-secret.c gkm-secret.h \ - gkm-secret-key.c gkm-secret-key.h \ - gkm-serializable.c gkm-serializable.h \ - gkm-session.c gkm-session.h \ - gkm-sexp.c gkm-sexp.h \ - gkm-sexp-key.c gkm-sexp-key.h \ - gkm-store.c gkm-store.h \ - gkm-test.c gkm-test.h \ - gkm-timer.c gkm-timer.h \ - gkm-transaction.c gkm-transaction.h \ - gkm-trust.c gkm-trust.h \ - gkm-types.h \ - gkm-util.c gkm-util.h \ - $(BUILT_SOURCES) +BUILT_SOURCES += $(gkm_BUILT) +libgkm_la_SOURCES = \ + pkcs11/gkm/gkm-aes-key.c \ + pkcs11/gkm/gkm-aes-key.h \ + pkcs11/gkm/gkm-aes-mechanism.c \ + pkcs11/gkm/gkm-aes-mechanism.h \ + pkcs11/gkm/gkm-assertion.c \ + pkcs11/gkm/gkm-assertion.h \ + pkcs11/gkm/gkm-attributes.c \ + pkcs11/gkm/gkm-attributes.h \ + pkcs11/gkm/gkm-certificate.c \ + pkcs11/gkm/gkm-certificate.h \ + pkcs11/gkm/gkm-certificate-key.c \ + pkcs11/gkm/gkm-certificate-key.h \ + pkcs11/gkm/gkm-credential.c \ + pkcs11/gkm/gkm-credential.h \ + pkcs11/gkm/gkm-crypto.c \ + pkcs11/gkm/gkm-crypto.h \ + pkcs11/gkm/gkm-data-asn1.c \ + pkcs11/gkm/gkm-data-asn1.h \ + pkcs11/gkm/gkm-data-der.c \ + pkcs11/gkm/gkm-data-der.h \ + pkcs11/gkm/gkm-data-types.h \ + pkcs11/gkm/gkm-debug.c \ + pkcs11/gkm/gkm-debug.h \ + pkcs11/gkm/gkm-dh-key.c \ + pkcs11/gkm/gkm-dh-key.h \ + pkcs11/gkm/gkm-dh-mechanism.c \ + pkcs11/gkm/gkm-dh-mechanism.h \ + pkcs11/gkm/gkm-dh-private-key.c \ + pkcs11/gkm/gkm-dh-private-key.h \ + pkcs11/gkm/gkm-dh-public-key.c \ + pkcs11/gkm/gkm-dh-public-key.h \ + pkcs11/gkm/gkm-dsa-mechanism.c \ + pkcs11/gkm/gkm-dsa-mechanism.h \ + pkcs11/gkm/gkm-factory.c \ + pkcs11/gkm/gkm-factory.h \ + pkcs11/gkm/gkm-file-tracker.c \ + pkcs11/gkm/gkm-file-tracker.h \ + pkcs11/gkm/gkm-generic-key.c \ + pkcs11/gkm/gkm-generic-key.h \ + pkcs11/gkm/gkm-hkdf-mechanism.c \ + pkcs11/gkm/gkm-hkdf-mechanism.h \ + pkcs11/gkm/gkm-log.c \ + pkcs11/gkm/gkm-log.h \ + pkcs11/gkm/gkm-manager.c \ + pkcs11/gkm/gkm-manager.h \ + pkcs11/gkm/gkm-memory-store.c \ + pkcs11/gkm/gkm-memory-store.h \ + pkcs11/gkm/gkm-mock.c \ + pkcs11/gkm/gkm-mock.h \ + pkcs11/gkm/gkm-module.c \ + pkcs11/gkm/gkm-module.h \ + pkcs11/gkm/gkm-module-ep.h \ + pkcs11/gkm/gkm-null-key.c \ + pkcs11/gkm/gkm-null-key.h \ + pkcs11/gkm/gkm-null-mechanism.c \ + pkcs11/gkm/gkm-null-mechanism.h \ + pkcs11/gkm/gkm-object.c \ + pkcs11/gkm/gkm-object.h \ + pkcs11/gkm/gkm-oids.h \ + pkcs11/gkm/gkm-private-xsa-key.c \ + pkcs11/gkm/gkm-private-xsa-key.h \ + pkcs11/gkm/gkm-public-xsa-key.c \ + pkcs11/gkm/gkm-public-xsa-key.h \ + pkcs11/gkm/gkm-rsa-mechanism.c \ + pkcs11/gkm/gkm-rsa-mechanism.h \ + pkcs11/gkm/gkm-secret.c \ + pkcs11/gkm/gkm-secret.h \ + pkcs11/gkm/gkm-secret-key.c \ + pkcs11/gkm/gkm-secret-key.h \ + pkcs11/gkm/gkm-serializable.c \ + pkcs11/gkm/gkm-serializable.h \ + pkcs11/gkm/gkm-session.c \ + pkcs11/gkm/gkm-session.h \ + pkcs11/gkm/gkm-sexp.c \ + pkcs11/gkm/gkm-sexp.h \ + pkcs11/gkm/gkm-sexp-key.c \ + pkcs11/gkm/gkm-sexp-key.h \ + pkcs11/gkm/gkm-store.c \ + pkcs11/gkm/gkm-store.h \ + pkcs11/gkm/gkm-test.c \ + pkcs11/gkm/gkm-test.h \ + pkcs11/gkm/gkm-timer.c \ + pkcs11/gkm/gkm-timer.h \ + pkcs11/gkm/gkm-transaction.c \ + pkcs11/gkm/gkm-transaction.h \ + pkcs11/gkm/gkm-trust.c \ + pkcs11/gkm/gkm-trust.h \ + pkcs11/gkm/gkm-types.h \ + pkcs11/gkm/gkm-util.c \ + pkcs11/gkm/gkm-util.h \ + $(gkm_BUILT) libgkm_la_CFLAGS = \ + -I$(srcdir)/pkcs11 \ -DG_LOG_DOMAIN=\"Gkm\" \ $(GOBJECT_CFLAGS) \ $(LIBGCRYPT_CFLAGS) \ $(LIBTASN1_CFLAGS) \ $(GLIB_CFLAGS) - libgkm_la_LIBADD = \ - $(top_builddir)/egg/libegg.la \ + libegg.la \ $(GOBJECT_LIBS) \ $(LIBGCRYPT_LIBS) \ $(GLIB_LIBS) -gkm-marshal.h: gkm-marshal.list $(GLIB_GENMARSHAL) +gkm-marshal.h: pkcs11/gkm/gkm-marshal.list $(GLIB_GENMARSHAL) $(GLIB_GENMARSHAL) $< --header --prefix=gkm_marshal > $@ - -gkm-marshal.c: gkm-marshal.list $(GLIB_GENMARSHAL) +gkm-marshal.c: pkcs11/gkm/gkm-marshal.list $(GLIB_GENMARSHAL) echo "#include \"gkm-marshal.h\"" > $@ && \ $(GLIB_GENMARSHAL) $< --body --prefix=gkm_marshal >> $@ -EXTRA_DIST = \ - gkm-marshal.list +EXTRA_DIST += \ + pkcs11/gkm/gkm-marshal.list # ------------------------------------------------------------------------------- # TESTS -LDADD = \ - $(top_builddir)/pkcs11/gkm/libgkm.la \ - $(top_builddir)/egg/libegg.la \ - $(GLIB_LIBS) \ - $(GTHREAD_LIBS) \ - $(LIBGCRYPT_LIBS) +EXTRA_DIST += pkcs11/gkm/fixtures -noinst_LIBRARIES = libgkm-mock.a +noinst_LIBRARIES += libgkm-mock.a libgkm_mock_a_SOURCES = \ - mock-module.c mock-module.h \ - mock-locked-object.c mock-locked-object.h \ - test.asn.h + pkcs11/gkm/mock-module.c \ + pkcs11/gkm/mock-module.h \ + pkcs11/gkm/mock-locked-object.c \ + pkcs11/gkm/mock-locked-object.h \ + pkcs11/gkm/test.asn.h -TEST_PROGS = \ +gkm_LIBS = \ + libgkm-mock.a \ + libgkm.la \ + libegg.la \ + $(GLIB_LIBS) \ + $(GTHREAD_LIBS) \ + $(LIBGCRYPT_LIBS) + +TEST_PROGS += \ test-attributes \ test-credential \ test-data-asn1 \ @@ -120,43 +161,43 @@ TEST_PROGS = \ test-timer \ test-transaction -test_credential_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_attributes_SOURCES = pkcs11/gkm/test-attributes.c +test_attributes_LDADD = $(gkm_LIBS) -test_memory_store_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_credential_SOURCES = pkcs11/gkm/test-credential.c +test_credential_LDADD = $(gkm_LIBS) -test_object_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_data_asn1_SOURCES = pkcs11/gkm/test-data-asn1.c +test_data_asn1_LDADD = $(gkm_LIBS) -test_certificate_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_data_der_SOURCES = pkcs11/gkm/test-data-der.c +test_data_der_LDADD = $(gkm_LIBS) -test_store_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_file_tracker_SOURCES = pkcs11/gkm/test-file-tracker.c +test_file_tracker_LDADD = $(gkm_LIBS) -test_timer_LDADD = \ - libgkm-mock.a \ - $(LDADD) +test_memory_store_SOURCES = pkcs11/gkm/test-memory-store.c +test_memory_store_LDADD = $(gkm_LIBS) -check_PROGRAMS = $(TEST_PROGS) +test_object_SOURCES = pkcs11/gkm/test-object.c +test_object_LDADD = $(gkm_LIBS) -test: $(TEST_PROGS) - gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS) +test_certificate_SOURCES = pkcs11/gkm/test-certificate.c +test_certificate_LDADD = $(gkm_LIBS) -check-local: test +test_secret_SOURCES = pkcs11/gkm/test-secret.c +test_secret_LDADD = $(gkm_LIBS) -all-local: $(check_PROGRAMS) +test_sexp_SOURCES = pkcs11/gkm/test-sexp.c +test_sexp_LDADD = $(gkm_LIBS) -EXTRA_DIST += \ - test.asn \ - fixtures +test_store_SOURCES = pkcs11/gkm/test-store.c +test_store_LDADD = $(gkm_LIBS) + +test_timer_SOURCES = pkcs11/gkm/test-timer.c +test_timer_LDADD = $(gkm_LIBS) + +test_transaction_SOURCES = pkcs11/gkm/test-transaction.c +test_transaction_LDADD = $(gkm_LIBS) -asn: - asn1Parser -o test.asn.h test.asn - sed -i 's|#include.*|/* \0 */|' test.asn.h +ASN1_FILES += pkcs11/gkm/test.asn |