cairo did notuse gl at all with gles
[platform/upstream/cairo.git] / boilerplate / Makefile.am
1 # Note: All source files are listed in Makefile.sources.
2
3 include $(top_srcdir)/build/Makefile.am.common
4 include $(srcdir)/Makefile.am.features
5
6 EXTRA_DIST += Makefile.win32      Makefile.win32.features
7 #MAINTAINERCLEANFILES += $(srcdir)/Makefile.win32.features
8
9 AM_CPPFLAGS = \
10         -I$(srcdir) \
11         -I$(top_builddir)/src \
12         -I$(top_srcdir)/src \
13         $(CAIRO_CFLAGS) \
14         $(NULL)
15 AM_LDFLAGS = $(CAIRO_LDFLAGS)
16
17 if BUILD_CXX
18 cxx_boilerplate_lib = libcairoboilerplate_cxx.la
19 else
20 cxx_boilerplate_lib =
21 endif
22
23 EXTRA_LTLIBRARIES += libcairoboilerplate.la $(cxx_boilerplate_lib)
24
25
26 libcairoboilerplate_la_SOURCES = \
27         $(enabled_cairo_boilerplate_headers) \
28         $(enabled_cairo_boilerplate_private) \
29         $(enabled_cairo_boilerplate_sources) \
30         cairo-boilerplate-constructors.c \
31         $(NULL)
32 libcairoboilerplate_cxx_la_SOURCES = \
33         $(enabled_cairo_boilerplate_cxx_sources) \
34         $(NULL)
35 libcairoboilerplate_la_LIBADD = $(top_builddir)/src/libcairo.la \
36         $(cxx_boilerplate_lib) \
37         $(CAIRO_LIBS) \
38         $(CAIROBOILERPLATE_LIBS) \
39         $(NULL)
40 libcairoboilerplate_cxx_la_LIBADD = $(top_builddir)/src/libcairo.la \
41         $(CAIRO_LIBS) \
42         $(CAIROBOILERPLATE_LIBS) \
43         $(NULL)
44 libcairoboilerplate_la_DEPENDENCIES = \
45         $(cxx_boilerplate_lib) \
46         $(NULL)
47
48 if CAIRO_HAS_DL
49 libcairoboilerplate_la_LIBADD += -ldl
50 endif
51
52 if CAIRO_HAS_BEOS_SURFACE
53 # BeOS system headers trigger this warning
54 libcairoboilerplate_cxx_la_CXXFLAGS = -Wno-multichar
55 endif
56
57 if CAIRO_HAS_WIN32_SURFACE
58 libcairoboilerplate_la_LIBADD += -lwinspool
59 endif
60
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)) > $@
63
64 BUILT_SOURCES += cairo-boilerplate-constructors.c
65 EXTRA_DIST += $(BUILT_SOURCES) make-cairo-boilerplate-constructors.sh
66 CLEANFILES += $(BUILT_SOURCES)
67
68 test: check
69
70 if CROSS_COMPILING
71 else
72 TESTS += check-link$(EXEEXT)
73 endif
74
75 check_PROGRAMS += check-link
76 check_link_LDADD = libcairoboilerplate.la