Code

another canvas repaint optimization: if the new rect and the rect aborted last time...
[inkscape.git] / src / Makefile_insert
1 ## Makefile.am fragment, included by src/Makefile.am.
4 # ################################################
5 #
6 #  E X T R A 
7 #
8 # ################################################
10 if PLATFORM_WIN32
11 win32_sources = winmain.cpp registrytool.cpp registrytool.h
12 win32ldflags = -lcomdlg32
13 endif 
15 if INKJAR
16 inkjar_dir = inkjar
17 inkjar_libs = inkjar/libinkjar.a
18 endif
21 # ################################################
22 #
23 #  I N K S C A P E
24 #
25 # ################################################
27 # libinkpre.a: any object that's sharable between inkscape & inkview,
28 # and isn't needed by object files in subdirectories (i.e. libinkpre.a
29 # comes before subdirectory libraries on the link line).
30 #
31 # Excludes winmain.cpp (a gui wrapper around main): I'm guessing that
32 # it needs to be explicitly listed as a source of each graphical
33 # binary: it isn't (to my knowledge) called by main (whether directly
34 # or indirectly), so I don't think that putting it in a library will
35 # suffice to get it linked in.  Windows devel please confirm.  -- pjrm.
37 libinkpre_a_SOURCES =   \
38         algorithms/find-last-if.h       \
39         algorithms/longest-common-suffix.h      \
40         approx-equal.h remove-last.h    \
41         arc-context.cpp arc-context.h   \
42         attributes.cpp attributes.h     \
43         bad-uri-exception.h     \
44         brokenimage.xpm \
45         color-rgba.h    \
46         color-profile.cpp color-profile.h       \
47         color-profile-fns.h     \
48         conditions.cpp conditions.h\
49         conn-avoid-ref.cpp conn-avoid-ref.h     \
50         connector-context.cpp connector-context.h       \
51         connection-pool.h \
52         console-output-undo-observer.h console-output-undo-observer.cpp \
53         context-fns.cpp context-fns.h \
54         desktop-affine.cpp desktop-affine.h     \
55         desktop-events.cpp desktop-events.h     \
56         desktop-handles.cpp desktop-handles.h   \
57         desktop-style.cpp desktop-style.h       \
58         desktop.cpp desktop.h   \
59         document-undo.cpp       \
60         document.cpp document.h document-private.h      \
61         document-subset.cpp document-subset.h   \
62         doxygen-main.cpp \
63         draw-anchor.cpp \
64         draw-anchor.h   \
65         draw-context.cpp draw-context.h \
66         dropper-context.cpp dropper-context.h   \
67         dyna-draw-context.cpp dyna-draw-context.h       \
68         enums.h \
69         event-context.cpp event-context.h       \
70         event-log.cpp event-log.h       \
71         extract-uri.cpp extract-uri.h   \
72         file.cpp file.h \
73         filter-chemistry.cpp filter-chemistry.h \
74         fontsize-expansion.cpp fontsize-expansion.h     \
75         forward.h       \
76         geom.cpp geom.h \
77         gnuc-attribute.h        \
78         gradient-context.cpp gradient-context.h \
79         gradient-drag.cpp gradient-drag.h \
80         help.cpp help.h \
81         icon-size.h \
82         inkscape-stock.cpp inkscape-stock.h\
83         inkscape.cpp inkscape.h inkscape-private.h      \
84         interface.cpp interface.h       \
85         isnan.h \
86         knot-enums.h    \
87         knot-holder-entity.h    \
88         knot.cpp knot.h \
89         knotholder.cpp knotholder.h     \
90         layer-fns.cpp layer-fns.h       \
91         layer-manager.cpp layer-manager.h       \
92         macros.h        \
93         marker-status.cpp marker-status.h       \
94         media.cpp media.h       \
95         message-context.cpp message-context.h \
96         message-stack.cpp message-stack.h \
97         message.h \
98         mod360.cpp mod360.h     \
99         modifier-fns.h  \
100         node-context.cpp node-context.h \
101         nodepath.cpp nodepath.h \
102         object-edit.cpp object-edit.h   \
103         object-hierarchy.cpp object-hierarchy.h \
104         ui/context-menu.cpp \
105         ui/context-menu.h       \
106         path-chemistry.cpp path-chemistry.h     \
107         path-prefix.h   \
108         pen-context.cpp \
109         pen-context.h   \
110         pencil-context.cpp      \
111         pencil-context.h        \
112         preferences.cpp preferences.h \
113         preferences-skeleton.h  \
114         menus-skeleton.h        \
115         prefix.cpp      \
116         prefix.h        \
117         prefs-utils.cpp \
118         prefs-utils.h   \
119         print.cpp print.h       \
120         rect-context.cpp rect-context.h \
121         require-config.h \
122         rubberband.cpp rubberband.h     \
123         satisfied-guide-cns.cpp satisfied-guide-cns.h   \
124         selcue.cpp selcue.h \
125         select-context.cpp select-context.h     \
126         selection-chemistry.cpp selection-chemistry.h   \
127         selection-describer.cpp selection-describer.h   \
128         selection.cpp selection.h       \
129         seltrans-handles.cpp seltrans-handles.h \
130         seltrans.cpp seltrans.h \
131         shortcuts.cpp shortcuts.h       \
132         slideshow.cpp slideshow.h       \
133         snap.cpp snap.h \
134         snapped-point.cpp snapped-point.h \
135         snapper.cpp snapper.h \
136         line-snapper.cpp line-snapper.h \
137         grid-snapper.cpp grid-snapper.h \
138         guide-snapper.cpp guide-snapper.h \
139         object-snapper.cpp object-snapper.h \
140         sp-anchor.cpp sp-anchor.h       \
141         sp-clippath.cpp sp-clippath.h   \
142         sp-conn-end-pair.cpp sp-conn-end-pair.h \
143         sp-conn-end.cpp sp-conn-end.h   \
144         sp-cursor.cpp sp-cursor.h       \
145         sp-defs.cpp sp-defs.h   \
146         sp-ellipse.cpp sp-ellipse.h     \
147         sp-feblend.cpp sp-feblend.h     \
148         sp-feblend-fns.h        \
149         sp-fecolormatrix.cpp sp-fecolormatrix.h \
150         sp-fecolormatrix-fns.h  \
151         sp-fecomponenttransfer.cpp sp-fecomponenttransfer.h     \
152         sp-fecomponenttransfer-fns.h    \
153         sp-fecomposite.cpp sp-fecomposite.h     \
154         sp-fecomposite-fns.h    \
155         sp-feconvolvematrix.cpp sp-feconvolvematrix.h   \
156         sp-feconvolvematrix-fns.h       \
157         sp-fediffuselighting.cpp sp-fediffuselighting.h \
158         sp-fediffuselighting-fns.h      \
159         sp-fedisplacementmap.cpp sp-fedisplacementmap.h \
160         sp-fedisplacementmap-fns.h      \
161         sp-feflood.cpp sp-feflood.h     \
162         sp-feflood-fns.h        \
163         sp-feimage.cpp sp-feimage.h     \
164         sp-feimage-fns.h        \
165         sp-femerge.cpp sp-femerge.h     \
166         sp-femerge-fns.h        \
167         sp-femorphology.cpp sp-femorphology.h   \
168         sp-femorphology-fns.h   \
169         sp-feoffset.cpp sp-feoffset.h   \
170         sp-feoffset-fns.h       \
171         sp-fespecularlighting.cpp sp-fespecularlighting.h       \
172         sp-fespecularlighting-fns.h     \
173         sp-fetile.cpp sp-fetile.h       \
174         sp-fetile-fns.h \
175         sp-feturbulence.cpp sp-feturbulence.h   \
176         sp-feturbulence-fns.h   \
177         sp-filter-fns.h \
178         sp-filter-primitive.cpp \
179         sp-filter-primitive.h   \
180         sp-filter-reference.cpp \
181         sp-filter-reference.h   \
182         sp-filter-units.h       \
183         sp-filter.cpp sp-filter.h       \
184         sp-flowdiv.h sp-flowdiv.cpp \
185         sp-flowregion.h sp-flowregion.cpp \
186         sp-flowtext.h sp-flowtext.cpp \
187         sp-gaussian-blur.cpp sp-gaussian-blur.h \
188         sp-gaussian-blur-fns.h  \
189         sp-gradient-fns.h       \
190         sp-gradient-reference.cpp       \
191         sp-gradient-reference.h \
192         sp-gradient-spread.h    \
193         sp-gradient-units.h     \
194         sp-gradient-vector.h    \
195         sp-gradient.cpp sp-gradient.h   \
196         sp-guide-attachment.h   \
197         sp-guide-constraint.h   \
198         sp-guide.cpp sp-guide.h \
199         sp-image.cpp sp-image.h \
200         sp-item-group.cpp sp-item-group.h       \
201         sp-item-notify-moveto.cpp sp-item-notify-moveto.h       \
202         sp-item-rm-unsatisfied-cns.cpp sp-item-rm-unsatisfied-cns.h     \
203         sp-item-transform.cpp sp-item-transform.h       \
204         sp-item-update-cns.cpp sp-item-update-cns.h     \
205         sp-item.cpp sp-item.h   \
206         sp-line.cpp sp-line.h   \
207         sp-linear-gradient-fns.h        \
208         sp-linear-gradient.h    \
209         sp-marker-loc.h \
210         sp-marker.cpp sp-marker.h       \
211         sp-mask.cpp sp-mask.h   \
212         sp-metadata.cpp sp-metadata.h   \
213         sp-metric.h     \
214         sp-metrics.cpp sp-metrics.h     \
215         sp-namedview.cpp sp-namedview.h \
216         sp-object-group.cpp sp-object-group.h   \
217         sp-object-repr.cpp sp-object-repr.h     \
218         sp-object.cpp sp-object.h       \
219         sp-offset.cpp sp-offset.h       \
220         sp-paint-server.cpp sp-paint-server.h   \
221         sp-path.cpp sp-path.h   \
222         sp-pattern.cpp sp-pattern.h     \
223         sp-polygon.cpp sp-polygon.h     \
224         sp-polyline.cpp sp-polyline.h   \
225         sp-radial-gradient-fns.h        \
226         sp-radial-gradient.h    \
227         sp-rect.cpp sp-rect.h   \
228         sp-root.cpp sp-root.h   \
229         sp-shape.cpp sp-shape.h \
230         sp-spiral.cpp sp-spiral.h       \
231         sp-star.cpp sp-star.h   \
232         sp-stop-fns.h   \
233         sp-stop.h       \
234         sp-string.cpp sp-string.h       \
235         sp-symbol.cpp sp-symbol.h       \
236         sp-switch.cpp sp-switch.h\
237         sp-text.cpp sp-text.h   \
238         sp-textpath.h   \
239         sp-tspan.cpp sp-tspan.h \
240         sp-use-reference.cpp sp-use-reference.h \
241         sp-use.cpp sp-use.h     \
242         spiral-context.cpp spiral-context.h     \
243         splivarot.cpp splivarot.h       \
244         star-context.cpp star-context.h \
245         streams-gzip.h streams-gzip.cpp \
246         streams-handles.h streams-handles.cpp   \
247         streams-jar.h streams-jar.cpp   \
248         streams-zlib.h streams-zlib.cpp \
249         style.cpp style.h       \
250         sp-style-elem.cpp sp-style-elem.h       \
251         svg-profile.h \
252         svg-view.cpp svg-view.h \
253         svg-view-widget.cpp svg-view-widget.h   \
254         text-chemistry.cpp text-chemistry.h     \
255         text-context.cpp text-context.h \
256         text-editing.cpp text-editing.h \
257         text-tag-attributes.h   \
258         tools-switch.cpp tools-switch.h\
259         uri-references.cpp uri-references.h     \
260         verbs.cpp verbs.h       \
261         version.cpp version.h   \
262         zoom-context.cpp zoom-context.h
264 # Force libinkpost.a to be rebuilt if we add files to libinkpost_a_SOURCES.
265 libinkpost_a_DEPENDENCIES = Makefile_insert
267 # libinkpost.a: Any object file that needs to be near the end of the link line.
268 # gradient-chemistry.o is called by some things in display/.
269 libinkpost_a_SOURCES =  \
270         color.cpp color.h       \
271         decimal-round.h \
272         dir-util.cpp dir-util.h \
273         fill-or-stroke.h        \
274         filter-chemistry.cpp filter-chemistry.h \
275         fixes.cpp \
276         gc-alloc.h      \
277         gc-anchored.h gc-anchored.cpp   \
278         gc-core.h       \
279         gc-finalized.h gc-finalized.cpp \
280         gc-managed.h    \
281         gc-soft-ptr.h   \
282         gc.cpp  \
283         gradient-chemistry.cpp gradient-chemistry.h     \
284         memeq.h \
285         round.h \
286         streq.h \
287         strneq.h        \
288         composite-undo-stack-observer.h \
289         composite-undo-stack-observer.cpp \
290         undo-stack-observer.h \
291         unit-constants.h        \
292         uri.cpp uri.h
294 inkscape_private_libs = \
295         libinkpre.a             \
296         application/libinkapp.a \
297         ui/dialog/libuidialog.a \
298         dialogs/libspdialogs.a  \
299         jabber_whiteboard/libjabber_whiteboard.a \
300         pedro/libpedro.a        \
301         trace/libtrace.a        \
302         svg/libspsvg.a          \
303         widgets/libspwidgets.a  \
304         display/libspdisplay.a  \
305         helper/libspchelp.a     \
306         libcroco/libcroco.a     \
307         libnrtype/libnrtype.a   \
308         libnr/libnr.a           \
309         libavoid/libavoid.a     \
310         livarot/libvarot.a      \
311         ui/view/libuiview.a     \
312         ui/libui.a              \
313         ui/widget/libuiwidget.a \
314         graphlayout/libgraphlayout.a    \
315         removeoverlap/libremoveoverlap.a                \
316         libcola/libcola.a       \
317         libvpsc/libvpsc.a       \
318         extension/libextension.a        \
319         extension/implementation/libimplementation.a    \
320         extension/internal/libinternal.a        \
321         extension/internal/libwpg/libwpg.a      \
322         extension/script/libscript.a    \
323         dom/libdom.a            \
324         xml/libspxml.a          \
325         util/libinkutil.a       \
326         io/libio.a              \
327         $(inkjar_libs)          \
328         libinkpost.a            \
329         debug/libinkdebug.a
331 all_libs =                      \
332         $(inkscape_private_libs)        \
333         $(INKSCAPE_LIBS)        \
334         $(GNOME_PRINT_LIBS)     \
335         $(GNOME_VFS_LIBS)       \
336         $(XFT_LIBS)             \
337         $(FREETYPE_LIBS)        \
338         $(kdeldadd)             \
339         $(win32ldflags)         \
340         $(PERL_LIBS)            \
341         $(PYTHON_LIBS)  \
342         $(LIBLOUDMOUTH_LIBS) \
343         $(INKBOARD_LIBS)
345 desktop.$(OBJEXT): helper/sp-marshal.h
346 document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
347 extension/internal/latex-pstricks.$(OBJEXT): inkscape_version.h
348 extension/internal/ps.$(OBJEXT): inkscape_version.h
349 inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
350 knot.$(OBJEXT): helper/sp-marshal.h
351 main.$(OBJEXT): inkscape_version.h
352 selection.$(OBJEXT): helper/sp-marshal.h
353 sp-object.$(OBJEXT): helper/sp-marshal.h
354 sp-root.$(OBJEXT): inkscape_version.h
355 view.$(OBJEXT): helper/sp-marshal.h
356 help.$(OBJEXT): inkscape_version.h
359 # ################################################
361 #  B I N A R I E S
363 # ################################################
366 inkscape_SOURCES = main.cpp $(win32_sources)
367 inkscape_LDADD = $(all_libs)
368 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
370 inkview_SOURCES = inkview.cpp $(win32_sources)
371 inkview_LDADD = $(all_libs)
373 style_test_SOURCES = style-test.cpp
374 style_test_LDADD = $(all_libs)
376 inkscape_version.h: ../configure.ac
377         echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h
379 test_all_includes = \
380                 $(srcdir)/attributes-test.h     \
381                 $(srcdir)/color-profile-test.h  \
382                 $(srcdir)/MultiPrinter.h  \
383                 $(srcdir)/TRPIFormatter.h \
384                 $(srcdir)/PylogFormatter.h \
385                 $(srcdir)/dir-util-test.h       \
386                 $(srcdir)/extract-uri-test.h    \
387                 $(srcdir)/mod360-test.h \
388                 $(srcdir)/round-test.h  \
389                 $(srcdir)/sp-gradient-test.h    \
390                 $(srcdir)/sp-style-elem-test.h  \
391                 $(srcdir)/style-test.h  \
392                 $(srcdir)/test-helpers.h  \
393                 $(srcdir)/verbs-test.h