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