1 # Note: All source files are listed in Makefile.sources.
3 include $(top_srcdir)/build/Makefile.am.common
4 include $(srcdir)/Makefile.am.features
6 EXTRA_DIST += Makefile.win32 Makefile.win32.features
7 #MAINTAINERCLEANFILES += $(srcdir)/Makefile.win32.features
11 -I$(top_builddir)/src \
15 AM_LDFLAGS = $(CAIRO_LDFLAGS)
18 cxx_boilerplate_lib = libcairoboilerplate_cxx.la
23 EXTRA_LTLIBRARIES += libcairoboilerplate.la $(cxx_boilerplate_lib)
26 libcairoboilerplate_la_SOURCES = \
27 $(enabled_cairo_boilerplate_headers) \
28 $(enabled_cairo_boilerplate_private) \
29 $(enabled_cairo_boilerplate_sources) \
30 cairo-boilerplate-constructors.c \
32 libcairoboilerplate_cxx_la_SOURCES = \
33 $(enabled_cairo_boilerplate_cxx_sources) \
35 libcairoboilerplate_la_LIBADD = $(top_builddir)/src/libcairo.la \
36 $(cxx_boilerplate_lib) \
38 $(CAIROBOILERPLATE_LIBS) \
40 libcairoboilerplate_cxx_la_LIBADD = $(top_builddir)/src/libcairo.la \
42 $(CAIROBOILERPLATE_LIBS) \
44 libcairoboilerplate_la_DEPENDENCIES = \
45 $(cxx_boilerplate_lib) \
49 libcairoboilerplate_la_LIBADD += -ldl
52 if CAIRO_HAS_BEOS_SURFACE
53 # BeOS system headers trigger this warning
54 libcairoboilerplate_cxx_la_CXXFLAGS = -Wno-multichar
57 if CAIRO_HAS_WIN32_SURFACE
58 libcairoboilerplate_la_LIBADD += -lwinspool
61 cairo-boilerplate-constructors.c: Makefile $(enabled_cairo_boilerplate_sources) $(enabled_cairo_boilerplate_cxx_sources) make-cairo-boilerplate-constructors.sh
62 (cd $(srcdir) && sh ./make-cairo-boilerplate-constructors.sh $(enabled_cairo_boilerplate_sources) $(enabled_cairo_boilerplate_cxx_sources)) > $@
64 BUILT_SOURCES += cairo-boilerplate-constructors.c
65 EXTRA_DIST += $(BUILT_SOURCES) make-cairo-boilerplate-constructors.sh
66 CLEANFILES += $(BUILT_SOURCES)
72 TESTS += check-link$(EXEEXT)
75 check_PROGRAMS += check-link
76 check_link_LDADD = libcairoboilerplate.la