DIST_SUBDIRS = language-specs regex SUBDIRS = language-specs REGEX_LIBS = REGEX_CFLAGS = if BUILD_GREGEX REGEX_LIBS += regex/glib/libgregex.la REGEX_CFLAGS += -I$(srcdir)/regex SUBDIRS += regex endif if !USE_SYSTEM_PCRE REGEX_LIBS += regex/pcre/libpcre.la else REGEX_LIBS += $(PCRE_LIBS) REGEX_CFLAGS += $(PCRE_CFLAGS) endif INCLUDES = \ $(REGEX_CFLAGS) \ -DDATADIR=\""$(datadir)"\" \ -DG_LOG_DOMAIN=\"GtkSourceView\"\ -I$(top_srcdir) -I$(srcdir) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(WARN_CFLAGS) \ $(DEP_CFLAGS) BUILT_SOURCES = \ gtksourceview-marshal.c \ gtksourceview-marshal.h \ gtksourceview-typebuiltins.c \ gtksourceview-typebuiltins.h # libs lib_LTLIBRARIES = libgtksourceview-2.0.la libgtksourceview_headers = \ gtksourcebuffer.h \ gtksourceiter.h \ gtksourceview.h \ gtksourcelanguage.h \ gtksourcelanguagemanager.h \ gtksourcestyle.h \ gtksourcestyleschememanager.h \ gtksourcestylescheme.h libgtksourceview_2_0_la_SOURCES = \ gtksourcebuffer.c \ gtksourceiter.c \ gtksourceview.c \ gtksourceundomanager.h \ gtksourceundomanager.c \ gtktextregion.h \ gtktextregion.c \ gtksourcelanguage.c \ gtksourcelanguage-private.h \ gtksourcelanguagemanager.c \ gtksourcelanguage-parser-1.c \ gtksourcelanguage-parser-2.c \ gtksourceview-i18n.h \ gtksourceview-i18n.c \ gtksourceview-utils.h \ gtksourceview-utils.c \ gtksourcestyle-private.h \ gtksourcestyle.c \ gtksourcestyleschememanager.c \ gtksourcestylescheme.c \ gtksourceengine.h \ gtksourceengine.c \ gtksourcecontextengine.h \ gtksourcecontextengine.c \ $(libgtksourceview_headers) # do not distribute generated files nodist_libgtksourceview_2_0_la_SOURCES =\ $(BUILT_SOURCES) libgtksourceview_2_0_la_LIBADD = $(DEP_LIBS) $(REGEX_LIBS) $(GNOMEPRINT_LIBS) libgtksourceview_2_0_la_LDFLAGS = -no-undefined -export-symbols-regex "^gtk_source_.*" libgtksourceview_2_0_includedir = $(includedir)/gtksourceview-2.0/gtksourceview libgtksourceview_2_0_include_HEADERS = \ $(libgtksourceview_headers) \ gtksourceview-typebuiltins.h gtksourceview-marshal.h: gtksourceview-marshal.list $(GLIB_GENMARSHAL) $(GLIB_GENMARSHAL) $< --header --prefix=_gtksourceview_marshal > $@ gtksourceview-marshal.c: gtksourceview-marshal.list $(GLIB_GENMARSHAL) echo "#include \"gtksourceview-marshal.h\"" > $@ && \ $(GLIB_GENMARSHAL) $< --body --prefix=_gtksourceview_marshal >> $@ gtksourceview-typebuiltins.c: stamp-gtksourceview-typebuiltins.c @true stamp-gtksourceview-typebuiltins.c: Makefile.am $(libgtksourceview_headers) (cd $(srcdir) \ && glib-mkenums \ --fhead "#include \n" \ --fhead "#include \"gtksourceview-typebuiltins.h\"\n\n" \ --fprod "\n/* enumerations from \"@filename@\" */" \ --vhead "static const G@Type@Value _@enum_name@_values[] = {" \ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ --vtail " { 0, NULL, NULL }\n};\n\n" \ --vtail "GType\n@enum_name@_get_type (void)\n{\n" \ --vtail " static GType type = 0;\n\n" \ --vtail " if (!type)\n" \ --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \ --vtail " return type;\n}\n\n" \ $(libgtksourceview_headers) ) > xgen-gtbec \ && (cmp -s xgen-gtbec gtksourceview-typebuiltins.c || cp xgen-gtbec gtksourceview-typebuiltins.c) \ && rm -f xgen-gtbec && echo stamp > $(@F) gtksourceview-typebuiltins.h: stamp-gtksourceview-typebuiltins.h @true stamp-gtksourceview-typebuiltins.h: Makefile.am $(libgtksourceview_headers) (cd $(srcdir) \ && glib-mkenums \ --fhead "#ifndef __GTKSOURCEVIEW_TYPEBUILTINS_H__\n" \ --fhead "#define __GTKSOURCEVIEW_TYPEBUILTINS_H__ 1\n\n" \ --ftail "#endif /* __GTKSOURCEVIEW_TYPEBUILTINS_H__ */\n" \ --fprod "#include \n" \ --eprod "G_BEGIN_DECLS\n" \ --eprod "#define GTK_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ --eprod "GType @enum_name@_get_type (void);\n" \ --eprod "G_END_DECLS\n\n" \ $(libgtksourceview_headers) ) > xgen-gth \ && (cmp -s xgen-gth gtksourceview-typebuiltins.h || cp xgen-gth gtksourceview-typebuiltins.h) \ && rm -f xgen-gth && echo stamp > $(@F) EXTRA_DIST = \ gtksourceview-marshal.list CLEANFILES = $(BUILT_SOURCES) stamp-gtksourceview-typebuiltins.h stamp-gtksourceview-typebuiltins.c