Use generated enum type for AtkRole to get the role name
[platform/upstream/atk.git] / tests / Makefile.am
index 33d4bb8..3a3d191 100644 (file)
@@ -1,19 +1,23 @@
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+else
+no_undefined =
+endif
 
-lib_LTLIBRARIES = \
-       libteststateset.la      \
-       libtestrelation.la
+libatk = $(top_builddir)/atk/libatk-$(ATK_API_VERSION).la
 
-libatk = $(top_builddir)/atk/libatk.la
-
-INCLUDES = -I$(top_srcdir)     \
-       @DEP_CFLAGS@
+AM_CPPFLAGS = -I$(top_srcdir)  \
+       -DG_DISABLE_DEPRECATED  \
+       $(DEP_CFLAGS)
 DEPS = \
        $(libatk)
 
-libteststateset_la_SOURCES = teststateset.c
-libteststateset_la_LDFLAGS = -avoid-version    \
-       -module
+noinst_PROGRAMS = testrole  \
+                 testrelation  \
+                 teststateset
+
+LDADD = $(libatk) $(DEP_LIBS)
 
-libtestrelation_la_SOURCES = testrelation.c
-libtestrelation_la_LDFLAGS = -avoid-version    \
-       -module
+testrole_SOURCES = testrole.c
+testrelation_SOURCES = testrelation.c
+teststateset_SOURCES = teststateset.c