2006-12-03 Dimitris Glezos <dimitris@glezos.com>
[dia.git] / lib / Makefile.am
blob7c58f2747dfcd2d71477e5a89998ae355c7ffb91
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS=pixmaps
5 stdprop_files = \
6         properties.h \
7         properties.c \
8         propinternals.h \
9         propdesc.c \
10         proplist.c \
11         propoffsets.c \
12         propobject.c \
13         prop_basic.c \
14         prop_basic.h \
15         prop_inttypes.c \
16         prop_inttypes.h \
17         prop_geomtypes.c \
18         prop_geomtypes.h \
19         prop_attr.c \
20         prop_attr.h \
21         prop_text.c \
22         prop_text.h \
23         prop_widgets.c \
24         prop_widgets.h \
25         prop_sdarray.c \
26         prop_sdarray.h \
27         propdialogs.c  \
28         propregistry.c 
30 pkglib_LTLIBRARIES =     libdia.la
32 ICON_PNG_PAIRS= \
33         dia_broken_icon $(srcdir)/pixmaps/broken.png \
34         dia_broken_chain_icon $(srcdir)/pixmaps/broken-chain.png \
35         dia_unbroken_chain_icon $(srcdir)/pixmaps/unbroken-chain.png
37 # Note that this doesn't seem to get run automatically.  It should, but
38 # I'm not gonna chase goblins right now.
39 dia-lib-icons.h:
40         gdk-pixbuf-csource --build-list $(ICON_PNG_PAIRS) > dia-lib-icons.h
42 BUILT_SOURCES = dia-lib-icons.h diamarshal.h diamarshal.c
44 libdia_la_SOURCES =  \
45                 diatypes.h \
46                 diavar.h \
47                 diamenu.h \
48                 diagramdata.h \
49                 diagramdata.c \
50                 geometry.h \
51                 geometry.c \
52                 color.h \
53                 color.c \
54                 dia_xml.c \
55                 dia_xml.h \
56                 dia_xml_libxml.h \
57                 attributes.h \
58                 attributes.c \
59                 text.c \
60                 text.h \
61                 textline.c \
62                 textline.h \
63                 font.c \
64                 font.h \
65                 group.c \
66                 group.h \
67                 utils.c \
68                 utils.h \
69                 arrows.c \
70                 arrows.h \
71                 message.c \
72                 message.h \
73                 focus.c \
74                 focus.h \
75                 sheet.c \
76                 sheet.h \
77                 connectionpoint.c \
78                 connectionpoint.h \
79                 handle.h \
80                 object.h \
81                 object.c \
82                 object_defaults.c \
83                 connection.c \
84                 connection.h \
85                 orth_conn.c \
86                 orth_conn.h \
87                 neworth_conn.c \
88                 neworth_conn.h \
89                 poly_conn.c \
90                 poly_conn.h \
91                 bezier_conn.c \
92                 bezier_conn.h \
93                 connection.h \
94                 element.c \
95                 element.h \
96                 polyshape.c \
97                 polyshape.h \
98                 beziershape.c \
99                 beziershape.h \
100                 objchange.c \
101                 objchange.h \
102                 widgets.c \
103                 widgets.h \
104                 dia_image.c \
105                 dia_image.h \
106                 intl.c \
107                 intl.h \
108                 filter.c \
109                 filter.h \
110                 connpoint_line.c \
111                 connpoint_line.h \
112                 $(stdprop_files) \
113                 textattr.h \
114                 dia_dirs.c \
115                 dia_dirs.h \
116                 plug-ins.c \
117                 plug-ins.h \
118                 dummy_dep.h \
119                 paper.c \
120                 paper.h \
121                 ps-utf8.c \
122                 ps-utf8.h \
123                 boundingbox.c \
124                 boundingbox.h \
125                 dynamic_obj.c \
126                 dynamic_obj.h \
127                 create.c \
128                 create.h \
129                 dia-enums.h \
130                 diatransform.h \
131                 diatransform.c \
132                 diarenderer.h \
133                 diarenderer.c \
134                 diainteractiverenderer.c \
135                 diagdkrenderer.h \
136                 diagdkrenderer.c \
137                 diasvgrenderer.h \
138                 diasvgrenderer.c \
139                 dialibartrenderer.h \
140                 dialibartrenderer.c \
141                 dia_svg.h \
142                 dia_svg.c \
143                 diagtkfontsel.c \
144                 diagtkfontsel.h \
145                 autoroute.c \
146                 autoroute.h \
147                 parent.c \
148                 parent.h \
149                 render_pixmap.h \
150                 render_pixmap.c \
151                 diaarrowchooser.h \
152                 diaarrowchooser.c \
153                 dialinechooser.h \
154                 dialinechooser.c \
155                 persistence.c \
156                 persistence.h \
157                 diaerror.c \
158                 diaerror.h \
159                 diamarshal.c \
160                 diamarshal.h \
161                 debug.c \
162                 debug.h \
163                 dia-lib-icons.h
165 #               charconv.c \
166 #               charconv.h 
167 #               render.h \
168 #               render.c 
170 libdia_la_LDFLAGS = -avoid-version
172 AM_CPPFLAGS = \
173         $(LIBART_CFLAGS) \
174         -DDIA_LIBDIR=\"$(libdir)\" \
175         -DDIA_DATADIR=\"$(pkgdatadir)\"
177 sheetdir = $(pkgdatadir)/sheets
179 INCLUDES = -I$(top_srcdir)/intl $(DEBUG_FLAGS) $(GDK_PIXBUF_CFLAGS) \
180   $(XML_CFLAGS) $(GNOME_CFLAGS) $(GTK_CFLAGS) \
181   -DDIA_SHEETDIR=\"$(sheetdir)\" \
182   $(PANGOFT2_CFLAGS) $(LIBART_CFLAGS) $(UNICODE_CFLAGS)
184 libdia_la_extra_sources = diamarshal.list
187 # rules to generate built sources
189 # setup autogeneration dependancies
190 gen_sources = xgen-gwmh xgen-gwmc diamarshal.c diamarshal.h
191 CLEANFILES = $(gen_sources)
193 diamarshal.h: diamarshal.list
194         $(GLIB_GENMARSHAL) --prefix=dia_marshal $(srcdir)/diamarshal.list --header >> xgen-gwmh \
195         && (cmp -s xgen-gwmh $(@F) || cp xgen-gwmh $(@F)) \
196         && rm -f xgen-gwmh xgen-gwmh~
198 diamarshal.c: diamarshal.h
199         echo "#include \"diamarshal.h\"" >> xgen-gwmc \
200         && $(GLIB_GENMARSHAL) --prefix=dia_marshal $(srcdir)/diamarshal.list --body >> xgen-gwmc \
201         && cp xgen-gwmc $(@F) \
202         && rm -f xgen-gwmc xgen-gwmc~
205 EXTRA_DIST = libdia.def makefile.msc diamarshal.list