uninstall-libtool-import-lib:
endif
-lib_LTLIBRARIES = libatk.la
+lib_LTLIBRARIES = libatk-1.0.la
if MS_LIB_AVAILABLE
noinst_DATA = atk.lib
$(OBJECTS): $(atk_built_headers)
-libatk_la_SOURCES = \
+libatk_1_0_la_SOURCES = \
atkaction.c \
atkcomponent.c \
atkdocument.c \
-DG_DISABLE_DEPRECATED \
@DEP_CFLAGS@
-LDFLAGS = \
- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- $(export_symbols) \
- $(no_undefined) \
+LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
+ $(export_symbols) \
+ $(no_undefined) \
@DEP_LIBS@
libatkincludedir=$(includedir)/atk-1.0/atk
$(atk_headers) \
$(atk_built_headers)
-$(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
+$(libatk_1_0_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
@true
&& echo timestamp > $(@F)
-atk.lib: libatk.la atk.def
+atk.lib: libatk-$(ATK_API_VERSION).la atk.def
lib -name:libatk-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@
install-data-local: install-ms-lib install-libtool-import-lib
dnl
dnl ==========================================================================
-GLIB_REQUIRED_VERSION=1.3.12
+GLIB_REQUIRED_VERSION=2.0.0
AC_SUBST(GLIB_REQUIRED_VERSION)
dnl ==========================================================================
+dnl Versioning
+dnl ==========================================================================
+
+dnl Making releases:
+dnl ATK_MICRO_VERSION += 1;
+dnl ATK_INTERFACE_AGE += 1;
+dnl ATK_BINARY_AGE += 1;
+dnl if any functions have been added, set ATK_INTERFACE_AGE to 0.
+dnl if backwards compatibility has been broken,
+dnl set ATK_BINARY_AGE _and_ ATK_INTERFACE_AGE to 0.
-#
-# Making releases:
-# ATK_MICRO_VERSION += 1;
-# ATK_INTERFACE_AGE += 1;
-# ATK_BINARY_AGE += 1;
-# if any functions have been added, set ATK_INTERFACE_AGE to 0.
-# if backwards compatibility has been broken,
-# set ATK_BINARY_AGE and ATK_INTERFACE_AGE to 0.
-#
-
-ATK_MAJOR_VERSION=0
+dnl The triplet
+ATK_MAJOR_VERSION=1
ATK_MINOR_VERSION=0
-ATK_MICRO_VERSION=13
+ATK_MICRO_VERSION=0
+ATK_VERSION=$ATK_MAJOR_VERSION.$ATK_MINOR_VERSION.$ATK_MICRO_VERSION
+
+dnl The X.Y in -latk-X.Y line. This is expected to stay 1.0 until Atk 2.
+ATK_API_VERSION=1.0
+
+dnl Number of releases since we've added interfaces
ATK_INTERFACE_AGE=0
-ATK_BINARY_AGE=0
-## with 1.0 you'd insert MINOR_VERSION in here, i.e. 0.3->1.0.0->1.0.1->1.0.2
-## note that micro version has to go in the libtool stuff below
-ATK_VERSION=$ATK_MAJOR_VERSION.$ATK_MICRO_VERSION
-AM_INIT_AUTOMAKE(atk, $ATK_VERSION)
+
+dnl Number of releases since we've broken binary compatibility. Should equal
+dnl ATK_MICRO_VERSION for a stable release
+# ATK_BINARY_AGE=0
+ATK_BINARY_AGE=$ATK_MICRO_VERSION
AC_SUBST(ATK_MAJOR_VERSION)
AC_SUBST(ATK_MINOR_VERSION)
-AC_SUBST(ATK_MICRO_VERSION)
AC_SUBST(ATK_VERSION)
+AC_SUBST(ATK_API_VERSION)
+AC_SUBST(ATK_MICRO_VERSION)
+AC_SUBST(ATK_INTERFACE_AGE)
+AC_SUBST(ATK_BINARY_AGE)
+
+dnl libtool versioning
+lt_current=`expr $ATK_MICRO_VERSION - $ATK_INTERFACE_AGE`
+lt_revision=$ATK_INTERFACE_AGE
+lt_age=`expr $ATK_BINARY_AGE - $ATK_INTERFACE_AGE`
+LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
+LT_CURRENT_MINUS_AGE=`expr $lt_current - $lt_age`
-# libtool versioning
-LT_RELEASE=$ATK_MAJOR_VERSION.$ATK_MINOR_VERSION
-LT_CURRENT=`expr $ATK_MICRO_VERSION - $ATK_INTERFACE_AGE`
-LT_REVISION=$ATK_INTERFACE_AGE
-LT_AGE=`expr $ATK_BINARY_AGE - $ATK_INTERFACE_AGE`
-LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
-AC_SUBST(LT_RELEASE)
-AC_SUBST(LT_CURRENT)
-AC_SUBST(LT_REVISION)
-AC_SUBST(LT_AGE)
+AC_SUBST(LT_VERSION_INFO)
AC_SUBST(LT_CURRENT_MINUS_AGE)
+dnl ==========================================================================
+
+AM_INIT_AUTOMAKE(atk,$ATK_VERSION)
+
AC_PROG_CC
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL