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