[cairo-commit] cairo/test Makefile.am,1.22,1.23

Carl Worth commit at pdx.freedesktop.org
Mon Mar 14 11:14:15 PST 2005


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv14143/test

Modified Files:
	Makefile.am 
Log Message:

        * test/Makefile.am: Fixes to force tests to run against locally
        compiled version (thanks to Manish Singh).


Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Makefile.am	11 Mar 2005 22:29:15 -0000	1.22
+++ Makefile.am	14 Mar 2005 19:14:13 -0000	1.23
@@ -51,11 +51,11 @@
 # not be the most portable approach, but it is pragmatic and I'm
 # willing to do something cleaner as soon as it causes someone a
 # problem.
-INCLUDES = -D_GNU_SOURCE -I$(srcdir) $(CAIRO_CFLAGS) -I$(srcdir)/../src
+INCLUDES = -D_GNU_SOURCE -I$(srcdir) $(CAIRO_CFLAGS) -I$(top_srcdir)/src
 
-AM_LDFLAGS = $(CAIRO_LIBS) ../src/libcairo.la
+noinst_LTLIBRARIES = libcairotest.la
 
-cairo_test_lib =\
+libcairotest_la_SOURCES =\
 buffer_diff.c	\
 buffer_diff.h	\
 cairo_test.c	\
@@ -67,24 +67,26 @@
 xmalloc.c	\
 xmalloc.h
 
+LDADDS = libcairotest.la $(top_builddir)/src/libcairo.la
+
 # ARGH! I have to repeat the list of tests a third time. Maybe it's
 # time to break down and auto-generate the Makefile.am or something
 # from autogen.sh. My, but this is painful...
-clip_twice_SOURCES = clip_twice.c $(cairo_test_lib)
-coverage_SOURCES = coverage.c $(cairo_test_lib)
-fill_rule_SOURCES = fill_rule.c $(cairo_test_lib)
-get_and_set_SOURCES = get_and_set.c $(cairo_test_lib)
-leaky_polygon_SOURCES = leaky_polygon.c $(cairo_test_lib)
-line_width_SOURCES = line_width.c $(cairo_test_lib)
-linear_gradient_SOURCES = linear_gradient.c $(cairo_test_lib)
-move_to_show_surface_SOURCES = move_to_show_surface.c $(cairo_test_lib)
-path_data_SOURCES = path_data.c $(cairo_test_lib)
-pixman_rotate_SOURCES = pixman_rotate.c $(cairo_test_lib)
-text_cache_crash_SOURCES = text_cache_crash.c $(cairo_test_lib)
-text_rotate_SOURCES = text_rotate.c $(cairo_test_lib)
-user_data_SOURCES = user_data.c
+clip_twice_LDADD = $(LDADDS)
+coverage_LDADD = $(LDADDS)
+fill_rule_LDADD = $(LDADDS)
+get_and_set_LDADD = $(LDADDS)
+leaky_polygon_LDADD = $(LDADDS)
+line_width_LDADD = $(LDADDS)
+linear_gradient_LDADD = $(LDADDS)
+move_to_show_surface_LDADD = $(LDADDS)
+path_data_LDADD = $(LDADDS)
+pixman_rotate_LDADD = $(LDADDS)
+text_cache_crash_LDADD = $(LDADDS)
+text_rotate_LDADD = $(LDADDS)
+user_data_LDADD = $(LDADDS)
 
 noinst_PROGRAMS = imagediff
-imagediff_SOURCES = imagediff.c $(cairo_test_lib)
+imagediff_LDADD = $(LDADDS)
 
 CLEANFILES = *-out.png *-diff.png *.log




More information about the cairo-commit mailing list