[AdgPath] Added adg_path_get_segment()
[adg.git] / adg / Makefile.am
blobf4cae93d48c9f1b00244eb560f8a455a7b747128
1 AM_CFLAGS=                      -I$(top_srcdir) \
2                                 -I$(top_builddir)
3 AM_LDFLAGS=
4 GLIB_MKENUMS=                   `which glib-mkenums` \
5                                         --template $(srcdir)/$@.template \
6                                         $(srcdir)/adg-enums.h
7 PATTERN=
9 # file groups
10 h_sources=                      adg-adim.h \
11                                 adg-arrow-style.h \
12                                 adg-canvas.h \
13                                 adg-container.h \
14                                 adg-context.h \
15                                 adg-dim.h \
16                                 adg-dim-style.h \
17                                 adg-entity.h \
18                                 adg-font-style.h \
19                                 adg-ldim.h \
20                                 adg-line-style.h \
21                                 adg-marker.h \
22                                 adg-matrix.h \
23                                 adg-model.h \
24                                 adg-pair.h \
25                                 adg-path.h \
26                                 adg-pattern.h \
27                                 adg-primitive.h \
28                                 adg-segment.h \
29                                 adg-stroke.h \
30                                 adg-style.h \
31                                 adg-title-block.h \
32                                 adg-toy-text.h \
33                                 adg-util.h
34 built_h_sources=                $(builddir)/adg-type-builtins.h \
35                                 $(builddir)/adg.h
36 private_h_sources=              adg-adim-private.h \
37                                 adg-arrow-style-private.h \
38                                 adg-canvas-private.h \
39                                 adg-container-private.h \
40                                 adg-context-private.h \
41                                 adg-dim-private.h \
42                                 adg-dim-style-private.h \
43                                 adg-entity-private.h \
44                                 adg-enums.h \
45                                 adg-font-style-private.h \
46                                 adg-intl.h \
47                                 adg-ldim-private.h \
48                                 adg-line-style-private.h \
49                                 adg-marker-private.h \
50                                 adg-model-private.h \
51                                 adg-path-private.h \
52                                 adg-stroke-private.h \
53                                 adg-style-private.h \
54                                 adg-title-block-private.h \
55                                 adg-toy-text-private.h
56 built_private_h_sources= 
57 c_sources=                      adg-adim.c \
58                                 adg-arrow-style.c \
59                                 adg-canvas.c \
60                                 adg-container.c \
61                                 adg-context.c \
62                                 adg-dim.c \
63                                 adg-dim-style.c \
64                                 adg-entity.c \
65                                 adg-enums.c \
66                                 adg-font-style.c \
67                                 adg-ldim.c \
68                                 adg-line-style.c \
69                                 adg-marker.c \
70                                 adg-matrix.c \
71                                 adg-model.c \
72                                 adg-pair.c \
73                                 adg-path.c \
74                                 adg-pattern.c \
75                                 adg-primitive.c \
76                                 adg-segment.c \
77                                 adg-stroke.c \
78                                 adg-style.c \
79                                 adg-title-block.c \
80                                 adg-toy-text.c \
81                                 adg-util.c
82 built_c_sources=                $(builddir)/adg-type-builtins.c
83 EXTRA_DIST=                     adg-type-builtins.c.template \
84                                 adg-type-builtins.h.template \
85                                 adg.h.in
86 if HAVE_GTK2
87 AM_CFLAGS+=                     @GTK2_CFLAGS@
88 AM_LDFLAGS+=                    @GTK2_LIBS@
89 h_sources+=                     adg-widget.h
90 private_h_sources+=             adg-widget-private.h
91 c_sources+=                     adg-widget.c
92 PATTERN+=                       /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
94 else
96 AM_CFLAGS+=                     @GOBJECT2_CFLAGS@ \
97                                 @CAIRO_CFLAGS@
98 AM_LDFLAGS+=                    @GOBJECT2_LIBS@ \
99                                 @GTK2_LIBS@
100 PATTERN+=                       /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
102 endif
105 # targets
106 BUILT_SOURCES=                  $(built_h_sources)
107 CLEANFILES=                     $(built_h_sources) \
108                                 $(built_private_h_sources) \
109                                 $(built_c_sources)
111 libadg_includedir=              $(includedir)/adg
112 libadg_include_DATA=            $(h_sources) \
113                                 $(built_h_sources)
115 lib_LTLIBRARIES=                libadg.la
116 libadg_la_LDFLAGS=              -release @PACKAGE_VERSION@
117 libadg_la_SOURCES=              $(h_sources) \
118                                 $(private_h_sources) \
119                                 $(c_sources)
120 nodist_libadg_la_SOURCES=       $(built_h_sources) \
121                                 $(built_private_h_sources) \
122                                 $(built_c_sources)
123 libadg_la_LIBADD=               $(top_builddir)/cpml/libcpml.la
124 libadg_la_DEPENDENCIES=         $(top_builddir)/cpml/libcpml.la
127 adg-type-builtins.c: adg-type-builtins.c.template adg-enums.h
128         $(GLIB_MKENUMS) > $@
130 adg-type-builtins.h: adg-type-builtins.h.template adg-enums.h
131         $(GLIB_MKENUMS) > $@
133 # Regenerate the adg.h header file: forcing a dependency on config.log
134 # is an easy way to invalidate this file whenever a ./configure is recall
135 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
136         rm -f $@.tmp
137         sed -e '$(PATTERN)' $< > $@.tmp
138         mv $@.tmp $@