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 \
|
|
|
|
-export-symbols-regex '^gsecret_'
|
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
INCLUDES = \
|
|
|
|
-DGSECRET_COMPILATION
|
|
|
|
|
2011-06-12 20:55:02 +00:00
|
|
|
lib_LTLIBRARIES = libgsecret.la
|
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
HEADER_FILES = \
|
|
|
|
gsecret-collection.h \
|
|
|
|
gsecret-item.h \
|
|
|
|
gsecret-password.h \
|
|
|
|
gsecret-prompt.h \
|
|
|
|
gsecret-service.h \
|
|
|
|
gsecret-value.h
|
|
|
|
|
2011-11-05 19:59:00 +00:00
|
|
|
BUILT_SOURCES = \
|
2012-01-25 13:26:52 +00:00
|
|
|
gsecret-dbus-generated.c gsecret-dbus-generated.h \
|
|
|
|
gsecret-enum-types.c gsecret-enum-types.h
|
2011-11-05 19:59:00 +00:00
|
|
|
|
2011-06-12 20:55:02 +00:00
|
|
|
libgsecret_la_SOURCES = \
|
2012-01-20 14:10:35 +00:00
|
|
|
gsecret-collection.h gsecret-collection.c \
|
2011-09-25 06:22:36 +00:00
|
|
|
gsecret-item.h gsecret-item.c \
|
2012-01-26 14:34:26 +00:00
|
|
|
gsecret-methods.c \
|
2012-01-11 06:44:32 +00:00
|
|
|
gsecret-password.h gsecret-password.c \
|
|
|
|
gsecret-prompt.h gsecret-prompt.c \
|
2011-09-25 06:22:36 +00:00
|
|
|
gsecret-service.h gsecret-service.c \
|
2012-01-23 16:20:18 +00:00
|
|
|
gsecret-session.h gsecret-session.c \
|
2011-09-25 06:22:36 +00:00
|
|
|
gsecret-util.c \
|
2012-01-20 14:10:35 +00:00
|
|
|
gsecret-value.h gsecret-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
|
|
|
|
2011-09-25 08:03:48 +00:00
|
|
|
libgsecret_la_CFLAGS = \
|
|
|
|
$(LIBGCRYPT_CFLAGS)
|
|
|
|
|
2011-06-12 20:55:02 +00:00
|
|
|
libgsecret_la_LIBADD = \
|
|
|
|
$(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
|
|
|
|
|
|
|
|
gsecret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
|
|
|
|
$(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
|
|
|
|
--generate-c-code gsecret-dbus-generated --c-namespace GSecretGen \
|
|
|
|
$(DBUS_XML_DEFINITIONS)
|
|
|
|
$(AM_V_GEN) sed -i -e 's/gsecret_gen_/_gsecret_gen_/g' gsecret-dbus-generated.[ch]
|
2012-01-11 18:56:30 +00:00
|
|
|
$(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' gsecret-dbus-generated.c
|
2011-11-05 19:59:00 +00:00
|
|
|
gsecret-dbus-generated.h: gsecret-dbus-generated.c
|
2011-11-12 07:08:12 +00:00
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
gsecret-enum-types.h: gsecret-enum-types.h.template $(HEADER_FILES)
|
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
|
|
|
gsecret-enum-types.c: gsecret-enum-types.c.template $(HEADER_FILES)
|
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
gsecret-enum-types.h.template \
|
|
|
|
gsecret-enum-types.c.template
|
|
|
|
|
2011-11-12 07:08:12 +00:00
|
|
|
check-memory:
|
|
|
|
make -C tests check-memory
|