2011-06-12 20:55:02 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
SUBDIRS = . tests
|
2011-06-12 20:55:02 +00:00
|
|
|
|
|
|
|
module_flags = \
|
|
|
|
-export_dynamic \
|
|
|
|
-avoid-version \
|
|
|
|
-module \
|
|
|
|
-no-undefined \
|
2012-02-01 12:34:08 +00:00
|
|
|
-export-symbols-regex '^secret_'
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
INCLUDES = \
|
2012-02-01 12:34:08 +00:00
|
|
|
-DSECRET_COMPILATION
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
lib_LTLIBRARIES = libsecret.la
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
HEADER_FILES = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-collection.h \
|
|
|
|
secret-item.h \
|
|
|
|
secret-password.h \
|
|
|
|
secret-prompt.h \
|
|
|
|
secret-service.h \
|
|
|
|
secret-value.h
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2011-11-05 19:59:00 +00:00
|
|
|
BUILT_SOURCES = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-dbus-generated.c secret-dbus-generated.h \
|
|
|
|
secret-enum-types.c secret-enum-types.h
|
2011-11-05 19:59:00 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
libsecret_la_SOURCES = \
|
|
|
|
secret-collection.h secret-collection.c \
|
|
|
|
secret-item.h secret-item.c \
|
|
|
|
secret-methods.c \
|
|
|
|
secret-password.h secret-password.c \
|
|
|
|
secret-prompt.h secret-prompt.c \
|
|
|
|
secret-service.h secret-service.c \
|
|
|
|
secret-session.h secret-session.c \
|
|
|
|
secret-util.c \
|
|
|
|
secret-value.h secret-value.c \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(BUILT_SOURCES) \
|
2011-09-25 06:22:36 +00:00
|
|
|
$(NULL)
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
libsecret_la_CFLAGS = \
|
2011-09-25 08:03:48 +00:00
|
|
|
$(LIBGCRYPT_CFLAGS)
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
libsecret_la_LIBADD = \
|
2011-06-12 20:55:02 +00:00
|
|
|
$(top_builddir)/egg/libegg.la \
|
2011-09-25 08:03:48 +00:00
|
|
|
$(LIBGCRYPT_LIBS) \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(LIBS)
|
|
|
|
|
|
|
|
DBUS_XML_DEFINITIONS = \
|
|
|
|
org.freedesktop.Secrets.xml
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
|
2011-11-05 19:59:00 +00:00
|
|
|
$(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
|
2012-02-01 12:34:08 +00:00
|
|
|
--generate-c-code secret-dbus-generated --c-namespace SecretGen \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(DBUS_XML_DEFINITIONS)
|
2012-02-01 12:34:08 +00:00
|
|
|
$(AM_V_GEN) sed -i -e 's/secret_gen_/_secret_gen_/g' secret-dbus-generated.[ch]
|
|
|
|
$(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' secret-dbus-generated.c
|
|
|
|
secret-dbus-generated.h: secret-dbus-generated.c
|
2011-11-12 07:08:12 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.h: secret-enum-types.h.template $(HEADER_FILES)
|
2012-01-25 13:26:52 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.c: secret-enum-types.c.template $(HEADER_FILES)
|
2012-01-25 13:26:52 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.h.template \
|
|
|
|
secret-enum-types.c.template
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2011-11-12 07:08:12 +00:00
|
|
|
check-memory:
|
|
|
|
make -C tests check-memory
|