# which are more like other make's VPATH.
GPATH = $(srcdir)
-EXTRA_DIST = atk.def
-if OS_WIN32
-export_symbols = -export-symbols atk.def
-no_undefined = -no-undefined
+include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
-install-libtool-import-lib:
- $(INSTALL) .libs/libatk.dll.a $(DESTDIR)$(libdir)
-uninstall-libtool-import-lib:
- -rm $(DESTDIR)$(libdir)/libatk.dll.a
-else
-install-libtool-import-lib:
-uninstall-libtool-import-lib:
-endif
-
-lib_LTLIBRARIES = libatk.la
-
-if MS_LIB_AVAILABLE
-noinst_DATA = atk.lib
+CLEANFILES =
-install-ms-lib:
- $(INSTALL) atk.lib $(DESTDIR)$(libdir)
-
-uninstall-ms-lib:
- -rm $(DESTDIR)$(libdir)/atk.lib
+if PLATFORM_WIN32
+no_undefined = -no-undefined
else
-install-ms-lib:
-uninstall-ms-lib:
+no_undefined =
endif
-atk_built_headers = atk-enum-types.h
-atk_built_cfiles = atk-enum-types.c
+AM_CPPFLAGS = \
+ -I$(top_srcdir) \
+ -DG_DISABLE_DEPRECATED \
+ -DATK_DISABLE_DEPRECATED \
+ -DATK_COMPILATION \
+ -DATK_LOCALEDIR="\"$(datadir)/locale\"" \
+ $(DEP_CFLAGS)
+
+lib_LTLIBRARIES = libatk-1.0.la
-$(OBJECTS): $(atk_built_headers)
+libatk_1_0_la_LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
+ $(no_undefined)
+libatk_1_0_la_LIBADD = \
+ $(DEP_LIBS) \
+ $(INTLLIBS)
-libatk_la_SOURCES = \
+atk_sources = \
atkaction.c \
atkcomponent.c \
atkdocument.c \
atkeditabletext.c \
atkgobjectaccessible.c \
atkhyperlink.c \
+ atkhyperlinkimpl.c \
atkhypertext.c \
atkimage.c \
atknoopobject.c \
atknoopobjectfactory.c \
atkobject.c \
atkobjectfactory.c \
+ atkplug.c \
+ atkprivate.h \
+ atkprivate.c \
+ atkrange.c \
atkregistry.c \
atkrelation.c \
atkrelationset.c \
atkselection.c \
+ atksocket.c \
atkstate.c \
atkstateset.c \
atkstreamablecontent.c \
atktable.c \
+ atktablecell.c \
atktext.c \
atkutil.c \
- atkvalue.c \
- $(atk_built_cfiles)
-
-EXTRA_DIST += atkmarshal.list
-MAINTAINERCLEANFILES += \
- atkmarshal.c \
- atkmarshal.h \
- stamp-atkmarshal.c \
- stamp-atkmarshal.h
-
-INCLUDES = \
- -I$(top_srcdir) \
- -DG_DISABLE_DEPRECATED \
- @DEP_CFLAGS@
+ atkmisc.c \
+ atkvalue.c \
+ atkversion.c \
+ atkwindow.c
-LDFLAGS = \
- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- $(export_symbols) \
- $(no_undefined) \
- @DEP_LIBS@
+libatk_1_0_la_SOURCES = \
+ $(atk_sources) \
+ atk-enum-types.c
libatkincludedir=$(includedir)/atk-1.0/atk
atk_headers = \
- atk.h \
atkaction.h \
atkcomponent.h \
atkdocument.h \
atkeditabletext.h \
atkgobjectaccessible.h \
atkhyperlink.h \
+ atkhyperlinkimpl.h \
atkhypertext.h \
atknoopobject.h \
atknoopobjectfactory.h \
atkobject.h \
atkobjectfactory.h \
+ atkplug.h \
atkimage.h \
+ atkrange.h \
atkregistry.h \
atkrelation.h \
+ atkrelationtype.h \
atkrelationset.h \
atkselection.h \
+ atksocket.h \
atkstate.h \
atkstateset.h \
atkstreamablecontent.h \
atktable.h \
+ atktablecell.h \
atktext.h \
atkutil.h \
- atkvalue.h
+ atkmisc.h \
+ atkvalue.h \
+ atkwindow.h
libatkinclude_HEADERS = \
+ atk.h \
$(atk_headers) \
- $(atk_built_headers)
+ $(top_builddir)/atk/atkversion.h \
+ atk-enum-types.h
-$(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
-atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
+# ---------- Handle built sources ----------
+
+BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
+
+atkmarshal.h: stamp-atkmarshal.h
@true
-stamp-atkmarshal.h: atkmarshal.list
- case @GLIB_GENMARSHAL@ in \
- .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;; \
- *) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
- esac; \
- $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
- && (cmp -s xgen-gmh $(srcdir)/atkmarshal.h || cp xgen-gmh $(srcdir)/atkmarshal.h) \
- && rm -f xgen-gmh xgen-gmh~ \
+stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
+ $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
+ && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
+ && rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > $(@F)
-atkmarshal.c: @REBUILD@ stamp-atkmarshal.c
+atkmarshal.c: stamp-atkmarshal.c
@true
-stamp-atkmarshal.c: atkmarshal.list
- case @GLIB_GENMARSHAL@ in \
- .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;; \
- *) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
- esac; \
- $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
- && (cmp -s xgen-gmc $(srcdir)/atkmarshal.c || cp xgen-gmc $(srcdir)/atkmarshal.c) \
- && rm -f xgen-gmc xgen-gmc~ \
+stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
+ $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
+ && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
+ && rm -f xgen-gmc xgen-gmc~ \
&& echo timestamp > $(@F)
atk-enum-types.h: s-enum-types-h
@true
-
s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
- ( cd $(srcdir) && glib-mkenums \
- --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
+ $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
+ --fhead "#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)\n#error \"Only <atk/atk.h> can be included directly.\"\n#endif\n\n#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
$(atk_headers) ) > tmp-atk-enum-types.h \
- && (cmp -s tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h || cp tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h ) \
+ && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
&& rm -f tmp-atk-enum-types.h \
&& echo timestamp > $(@F)
atk-enum-types.c: s-enum-types-c
@true
-
s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
- ( cd $(srcdir) && glib-mkenums \
+ $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
--fhead "#include <atk.h>" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
$(atk_headers) ) > tmp-atk-enum-types.c \
- && (cmp -s tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c || cp tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c ) \
+ && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
&& rm -f tmp-atk-enum-types.c \
&& echo timestamp > $(@F)
-atk.lib: libatk.la atk.def
- lib -name:libatk-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@
+if HAVE_INTROSPECTION
+introspection_sources = \
+ $(atk_headers) \
+ $(atk_sources)
+introspection_generated_sources = \
+ $(top_builddir)/atk/atkversion.h \
+ atk-enum-types.c \
+ atk-enum-types.h
+
+Atk-1.0.gir: libatk-1.0.la Makefile
+Atk_1_0_gir_INCLUDES = GObject-2.0
+Atk_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+Atk_1_0_gir_LIBS = libatk-1.0.la
+Atk_1_0_gir_SCANNERFLAGS = --pkg-export atk --warn-all --c-include "atk/atk.h"
+Atk_1_0_gir_FILES = \
+ $(addprefix $(srcdir)/, $(introspection_sources)) \
+ $(introspection_generated_sources)
+INTROSPECTION_GIRS += Atk-1.0.gir
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibsdir = $(libdir)/girepository-1.0
+typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(gir_DATA) $(typelibs_DATA)
+endif
+
+# ---------- Win32 stuff ----------
+
+if OS_WIN32
+libatk_1_0_la_LDFLAGS += -export-symbols atk.def -no-undefined -Wl,atk-win32-res.o
+libatk_1_0_la_DEPENDENCIES = atk-win32-res.o atk.def
+
+install-def-file:
+ $(INSTALL) atk.def $(DESTDIR)$(libdir)/atk-1.0.def
+uninstall-def-file:
+ -rm $(DESTDIR)$(libdir)/atk-1.0.def
+else
+install-def-file:
+uninstall-def-file:
+endif
+
+atk-win32-res.o: atk.rc
+ $(WINDRES) $< $@
+
+if MS_LIB_AVAILABLE
+noinst_DATA = atk-$(ATK_API_VERSION).lib
+
+install-ms-lib:
+ $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
+
+uninstall-ms-lib:
+ -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
+else
+install-ms-lib:
+uninstall-ms-lib:
+endif
+
+atk.def: atk.symbols
+ (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/atk.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > atk.def
+
+atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
+ lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
+
+
+EXTRA_DIST = atk.symbols atk.rc.in atkmarshal.list atk.rc atkversion.h.in
+
+DISTCLEANFILES = \
+ stamp-atkmarshal.h stamp-atkmarshal.c \
+ s-enum-types-h s-enum-types-c
+
+distclean-local:
+ if test $(srcdir) = .; then :; else \
+ rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
+ fi
-install-data-local: install-ms-lib install-libtool-import-lib
+install-data-local: install-ms-lib install-def-file
-uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
+uninstall-local: uninstall-ms-lib uninstall-def-file