cpml: protect CpmlPair methods against NULL args
[adg.git] / src / cpml / Makefile.am
bloba6a43ab84e100dcdc75c271f10f79f3a78640606
1 include $(top_srcdir)/build/Makefile.am.common
4 SUBDIRS=                        tests
7 AM_CPPFLAGS=                    -I$(top_srcdir)/src \
8                                 -I$(top_builddir)/src
11 # file groups
12 h_sources=                      cpml-arc.h \
13                                 cpml-curve.h \
14                                 cpml-extents.h \
15                                 cpml-pair.h \
16                                 cpml-primitive.h \
17                                 cpml-segment.h \
18                                 cpml-utils.h
19 built_h_sources=
20 private_h_sources=              cpml-internal.h \
21                                 cpml-primitive-private.h
22 built_private_h_sources=
23 c_sources=                      cpml-arc.c \
24                                 cpml-curve.c \
25                                 cpml-extents.c \
26                                 cpml-line.c \
27                                 cpml-pair.c \
28                                 cpml-primitive.c \
29                                 cpml-segment.c \
30                                 cpml-utils.c
31 built_c_sources=
32 EXTRA_DIST=                     cpml-introspection.h \
33                                 cpml-1.pc.in
35 # targets
36 BUILT_SOURCES=                  $(built_h_sources) \
37                                 $(built_private_h_sources) \
38                                 $(built_c_sources)
39 CLEANFILES=                     $(built_h_sources) \
40                                 $(built_private_h_sources) \
41                                 $(built_c_sources)
43 pkgconfig_DATA=                 cpml-1.pc
45 cpml_includedir=                $(includedir)/adg-1/cpml
46 cpml_include_DATA=              $(h_sources) \
47                                 $(built_h_sources)
49 lib_LTLIBRARIES=                libcpml-1.la
50 libcpml_1_la_SOURCES=           $(h_sources) \
51                                 $(private_h_sources) \
52                                 $(c_sources)
53 nodist_libcpml_1_la_SOURCES=    $(built_h_sources) \
54                                 $(built_private_h_sources) \
55                                 $(built_c_sources)
56 libcpml_1_la_CFLAGS=            $(CPML_CFLAGS)
57 libcpml_1_la_LDFLAGS=           -no-undefined \
58                                 -version-info @CPML_LT_VERSION@
59 libcpml_1_la_LIBADD=            $(CPML_LIBS)
62 ## GObject introspection
64 -include $(INTROSPECTION_MAKEFILE)
65 INTROSPECTION_GIRS=
66 INTROSPECTION_SCANNER_ARGS=
67 INTROSPECTION_COMPILER_ARGS=
69 if HAVE_INTROSPECTION
71 Cpml-1.0.gir: libcpml-1.la
73 INTROSPECTION_GIRS+=            Cpml-1.0.gir
74 Cpml_1_0_gir_LIBS=              libcpml-1.la
75 Cpml_1_0_gir_INCLUDES=          cairo-1.0
76 Cpml_1_0_gir_FILES=             cpml-introspection.h \
77                                 $(h_sources) \
78                                 $(c_sources)
79 Cpml_1_0_gir_SCANNERFLAGS=      $(AM_CPPFLAGS) \
80                                 --c-include="cpml.h" \
81                                 --warn-all
82 girdir=                         $(GIRDIR)
83 dist_gir_DATA=                  $(INTROSPECTION_GIRS)
84 typelibdir=                     $(TYPELIBDIR)
85 typelib_DATA=                   $(INTROSPECTION_GIRS:.gir=.typelib)
86 CLEANFILES+=                    $(dist_gir_DATA) \
87                                 $(typelib_DATA)
89 endif
92 # Although actually GObject wrappers are always compiled,
93 # this feature can be easily made optional if needed.
95 h_sources+=                     cpml-gobject.h
96 c_sources+=                     cpml-gobject.c