include $(top_srcdir)/Makefile.decl db_lib_LTLIBRARIES = libdb.la db_include_HEADERS = \ db.h \ db-iter.h \ db-calc.h \ db-iterator.h \ db-param.h \ db-request.h \ db-conn.h \ db-result.h \ db-result-set.h \ db-row.h \ db-model.h \ db-model-holder.h \ db-file-loader.h \ db-plugin.h AM_CPPFLAGS = \ -I$(top_srcdir) \ $(DEFINES) \ $(glib_CFLAGS) libdb_la_LIBADD = \ $(glib_LIBS) \ $(top_builddir)/sql/libsql.la libdb_la_SOURCES = \ $(db_include_HEADERS) \ db-iter.c \ db-calc.c \ db-iterator.c \ db-param.c \ db-request.c \ db-conn.c \ db-row.c \ db-result.c \ db-result-set.c \ db-model.c \ db-model-holder.c \ db-file-loader.c \ db-plugin.c if ENABLE_INSTALL DEFINES = \ -D_PLUGIN_DIR=\"$(plugin_libdir)/%s\" else DEFINES = \ -D_PLUGIN_DIR=\"$(plugin_libdir)/%s/.libs\" endif pkgconfig_DATA = db.pc EXTRA_DIST = db.pc.in DISTCLEANFILES = db.pc if ENABLE_VALA if HAVE_INTROSPECTION -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_SCANNER_ARGS = $(GIR_SCANNER_ARGS) INTROSPECTION_COMPILER_ARGS = \ --includedir=$(top_builddir)/gvn \ --includedir=$(top_builddir)/sql introspection_sources = $(filter-out db-row.*,$(libdb_la_SOURCES)) Db-$(VERSION).gir: $(db_lib_LTLIBRARIES) $(top_builddir)/sql/Sql-$(VERSION).gir Db_@uVERSION@_gir_SCANNERFLAGS = \ --include-uninstalled=$(top_builddir)/gvn/Gvn-$(VERSION).gir \ --include-uninstalled=$(top_builddir)/sql/Sql-$(VERSION).gir Db_@uVERSION@_gir_CFLAGS = -I$(top_srcdir) Db_@uVERSION@_gir_LIBS = $(db_lib_LTLIBRARIES) Db_@uVERSION@_gir_FILES = $(introspection_sources) Db_@uVERSION@_gir_EXPORT_PACKAGES = db INTROSPECTION_GIRS = Db-$(VERSION).gir gir_DATA = $(INTROSPECTION_GIRS) typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) CLEANFILES = $(gir_DATA) $(typelib_DATA) $(vapis)/db.vapi: $(INTROSPECTION_GIRS) $(vapidata)/Db-$(VERSION).metadata $(vapigen_v)$(VAPIGEN) -q \ --directory $(vapis) \ --vapidir $(vapis) \ --girdir $(top_builddir)/gvn \ --girdir $(top_builddir)/sql \ --metadatadir $(vapidata) \ --library db \ Db-$(VERSION).gir vapi_DATA = $(vapis)/db.vapi CLEANFILES += $(vapis)/$(vapi_DATA) endif endif