diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-15 23:42:51 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-16 03:58:19 -0400 |
commit | 20daa425d8c46b6885653d2433f6027e4990d618 (patch) | |
tree | 472fb0f21fcf4f2425aa0f01987bbb13ed8eb523 /boilerplate/Makefile.am | |
parent | 1a3863688c0c09d047e5ee5b65e87c71c6393e3f (diff) |
[configure.ac] Generate boilerplate/Makefile.am.config
Same scheme as in src/
Diffstat (limited to 'boilerplate/Makefile.am')
-rw-r--r-- | boilerplate/Makefile.am | 87 |
1 files changed, 17 insertions, 70 deletions
diff --git a/boilerplate/Makefile.am b/boilerplate/Makefile.am index a24a6d08..5a5168c5 100644 --- a/boilerplate/Makefile.am +++ b/boilerplate/Makefile.am @@ -1,35 +1,31 @@ +# Note: All source files are listed in Makefile.sources. + include $(top_srcdir)/build/Makefile.am.common +include $(srcdir)/Makefile.am.config + +AM_CPPFLAGS = \ + -I$(srcdir) \ + -I$(top_builddir)/src \ + -I$(top_srcdir)/src \ + $(CAIRO_CFLAGS) \ + $(NULL) EXTRA_DIST += Makefile.win32 EXTRA_LTLIBRARIES += libcairoboilerplate.la -libcairoboilerplate_la_SOURCES = \ - cairo-boilerplate.c \ - cairo-boilerplate.h \ - cairo-boilerplate-getopt.c \ - cairo-boilerplate-getopt.h \ - cairo-boilerplate-scaled-font.h \ - cairo-boilerplate-system.c \ - cairo-boilerplate-system.h \ +libcairoboilerplate_la_SOURCES = \ + $(enabled_cairo_boilerplate_headers) \ + $(enabled_cairo_boilerplate_private) \ + $(enabled_cairo_boilerplate_sources) \ $(NULL) -libcairoboilerplate_la_LIBADD = $(top_builddir)/src/libcairo.la $(CAIRO_LDADD) +libcairoboilerplate_la_LIBADD = $(top_builddir)/src/libcairo.la if CAIRO_HAS_BEOS_SURFACE -#libcairoboilerplate_la_SOURCES += cairo-boilerplate-beos.cpp -libcairoboilerplate_la_SOURCES += cairo-boilerplate-beos-private.h # BeOS system headers trigger this warning -libcairoboilerplate_la_CXXFLAGS = -Wno-multichar +AM_CPPFLAGS += -Wno-multichar endif -if CAIRO_HAS_DIRECTFB_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-directfb.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-directfb-private.h -endif - -if CAIRO_HAS_GLITZ_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-glitz.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-glitz-private.h if CAIRO_CAN_TEST_GLITZ_AGL_SURFACE libcairoboilerplate_la_LIBADD += $(GLITZ_AGL_LIBS) endif @@ -42,65 +38,16 @@ endif if CAIRO_CAN_TEST_GLITZ_WGL_SURFACE libcairoboilerplate_la_LIBADD += $(GLITZ_WGL_LIBS) endif -endif - -if CAIRO_HAS_PDF_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-pdf.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-pdf.h -libcairoboilerplate_la_SOURCES += cairo-boilerplate-pdf-private.h -endif - -if CAIRO_HAS_PS_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-ps.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-ps.h -libcairoboilerplate_la_SOURCES += cairo-boilerplate-ps-private.h -endif - -if CAIRO_HAS_QUARTZ_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-quartz.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-quartz-private.h -endif - -if CAIRO_HAS_SVG_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-svg.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-svg.h -libcairoboilerplate_la_SOURCES += cairo-boilerplate-svg-private.h -endif - -if CAIRO_HAS_TEST_SURFACES -libcairoboilerplate_la_SOURCES += cairo-boilerplate-test-surfaces.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-test-surfaces-private.h -endif if CAIRO_HAS_WIN32_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-win32.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-win32-printing.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-win32-private.h libcairoboilerplate_la_LIBADD += -lwinspool endif -if CAIRO_HAS_XCB_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-xcb.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-xcb-private.h -endif - -if CAIRO_HAS_XLIB_SURFACE -libcairoboilerplate_la_SOURCES += cairo-boilerplate-xlib.c -libcairoboilerplate_la_SOURCES += cairo-boilerplate-xlib.h -libcairoboilerplate_la_SOURCES += cairo-boilerplate-xlib-private.h -endif - -AM_CPPFLAGS = \ - -I$(srcdir) \ - -I$(top_builddir)/src \ - -I$(top_srcdir)/src \ - $(CAIRO_CFLAGS) - test: check if CROSS_COMPILING else -TESTS += check-link +TESTS += check-link$(EXEEXT) endif check_PROGRAMS += check-link |