Code

Set up toolbox so that paint bucket defaults can be reset
[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 event.h      \
71         extract-uri.cpp extract-uri.h   \
72         file.cpp file.h \
73         filter-chemistry.cpp filter-chemistry.h \
74         flood-context.cpp flood-context.h       \
75         fontsize-expansion.cpp fontsize-expansion.h     \
76         forward.h       \
77         geom.cpp geom.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         isnormal.h \
87         knot-enums.h    \
88         knot-holder-entity.h    \
89         knot.cpp knot.h \
90         knotholder.cpp knotholder.h     \
91         layer-fns.cpp layer-fns.h       \
92         layer-manager.cpp layer-manager.h       \
93         macros.h        \
94         main-cmdlineact.cpp main-cmdlineact.h \
95         media.cpp media.h       \
96         message-context.cpp message-context.h \
97         message-stack.cpp message-stack.h \
98         message.h \
99         mod360.cpp mod360.h     \
100         modifier-fns.h  \
101         node-context.cpp node-context.h \
102         nodepath.cpp nodepath.h \
103         object-edit.cpp object-edit.h   \
104         object-hierarchy.cpp object-hierarchy.h \
105         ui/context-menu.cpp \
106         ui/context-menu.h       \
107         path-chemistry.cpp path-chemistry.h     \
108         path-prefix.h   \
109         pen-context.cpp \
110         pen-context.h   \
111         pencil-context.cpp      \
112         pencil-context.h        \
113         preferences.cpp preferences.h \
114         preferences-skeleton.h  \
115         menus-skeleton.h        \
116         prefix.cpp      \
117         prefix.h        \
118         prefs-utils.cpp \
119         prefs-utils.h   \
120         print.cpp print.h       \
121         rect-context.cpp rect-context.h \
122         require-config.h \
123         rubberband.cpp rubberband.h     \
124         satisfied-guide-cns.cpp satisfied-guide-cns.h   \
125         selcue.cpp selcue.h \
126         select-context.cpp select-context.h     \
127         selection-chemistry.cpp selection-chemistry.h   \
128         selection-describer.cpp selection-describer.h   \
129         selection.cpp selection.h       \
130         seltrans-handles.cpp seltrans-handles.h \
131         seltrans.cpp seltrans.h \
132         shape-editor.cpp shape-editor.h \
133         shortcuts.cpp shortcuts.h       \
134         snap.cpp snap.h \
135         snapped-point.cpp snapped-point.h \
136         snapper.cpp snapper.h \
137         line-snapper.cpp line-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 number-opt-number.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         marker.cpp 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         ege-adjustment-action.cpp       \
274         ege-adjustment-action.h \
275         ege-output-action.cpp   \
276         ege-output-action.h     \
277         ege-select-one-action.cpp       \
278         ege-select-one-action.h \
279         fill-or-stroke.h        \
280         filter-chemistry.cpp filter-chemistry.h \
281         fixes.cpp \
282         gc-alloc.h      \
283         gc-anchored.h gc-anchored.cpp   \
284         gc-core.h       \
285         gc-finalized.h gc-finalized.cpp \
286         gc-managed.h    \
287         gc-soft-ptr.h   \
288         gc.cpp  \
289         gradient-chemistry.cpp gradient-chemistry.h     \
290         ink-action.cpp  \
291         ink-action.h    \
292         memeq.h \
293         round.h \
294         streq.h \
295         strneq.h        \
296         composite-undo-stack-observer.h \
297         composite-undo-stack-observer.cpp \
298         undo-stack-observer.h \
299         unit-constants.h        \
300         uri.cpp uri.h
302 inkscape_private_libs = \
303         libinkpre.a             \
304         application/libinkapp.a \
305         ui/dialog/libuidialog.a \
306         dialogs/libspdialogs.a  \
307         ui/cache/libuicache.a   \
308         jabber_whiteboard/libjabber_whiteboard.a \
309         pedro/libpedro.a        \
310         trace/libtrace.a        \
311         svg/libspsvg.a          \
312         widgets/libspwidgets.a  \
313         display/libspdisplay.a  \
314         helper/libspchelp.a     \
315         libcroco/libcroco.a     \
316         libnrtype/libnrtype.a   \
317         libnr/libnr.a           \
318         libavoid/libavoid.a     \
319         livarot/libvarot.a      \
320         ui/view/libuiview.a     \
321         ui/libui.a              \
322         ui/widget/libuiwidget.a \
323         graphlayout/libgraphlayout.a    \
324         removeoverlap/libremoveoverlap.a                \
325         libcola/libcola.a       \
326         libvpsc/libvpsc.a       \
327         extension/libextension.a        \
328         extension/implementation/libimplementation.a    \
329         extension/internal/libinternal.a        \
330         extension/internal/libwpg/libwpg.a      \
331         extension/script/libscript.a    \
332         dom/libdom.a            \
333         xml/libspxml.a          \
334         util/libinkutil.a       \
335         io/libio.a              \
336         $(inkjar_libs)          \
337         libinkpost.a            \
338         debug/libinkdebug.a
340 all_libs =                      \
341         $(inkscape_private_libs)        \
342         $(INKSCAPE_LIBS)        \
343         $(GNOME_PRINT_LIBS)     \
344         $(GNOME_VFS_LIBS)       \
345         $(XFT_LIBS)             \
346         $(FREETYPE_LIBS)        \
347         $(kdeldadd)             \
348         $(win32ldflags)         \
349         $(PERL_LIBS)            \
350         $(PYTHON_LIBS)  \
351         $(INKBOARD_LIBS)
353 desktop.$(OBJEXT): helper/sp-marshal.h
354 document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
355 extension/internal/latex-pstricks.$(OBJEXT): inkscape_version.h
356 extension/internal/ps.$(OBJEXT): inkscape_version.h
357 inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
358 knot.$(OBJEXT): helper/sp-marshal.h
359 main.$(OBJEXT): inkscape_version.h
360 selection.$(OBJEXT): helper/sp-marshal.h
361 sp-object.$(OBJEXT): helper/sp-marshal.h
362 sp-root.$(OBJEXT): inkscape_version.h
363 view.$(OBJEXT): helper/sp-marshal.h
364 help.$(OBJEXT): inkscape_version.h
367 # ################################################
369 #  B I N A R I E S
371 # ################################################
374 inkscape_SOURCES = main.cpp $(win32_sources)
375 inkscape_LDADD = $(all_libs)
376 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
378 inkview_SOURCES = inkview.cpp $(win32_sources)
379 inkview_LDADD = $(all_libs)
381 style_test_SOURCES = style-test.cpp
382 style_test_LDADD = $(all_libs)
384 inkscape_version.h: ../configure.ac
385         echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h
387 test_all_includes = \
388                 $(srcdir)/attributes-test.h     \
389                 $(srcdir)/color-profile-test.h  \
390                 $(srcdir)/MultiPrinter.h  \
391                 $(srcdir)/TRPIFormatter.h \
392                 $(srcdir)/PylogFormatter.h \
393                 $(srcdir)/dir-util-test.h       \
394                 $(srcdir)/extract-uri-test.h    \
395                 $(srcdir)/mod360-test.h \
396                 $(srcdir)/round-test.h  \
397                 $(srcdir)/sp-gradient-test.h    \
398                 $(srcdir)/sp-style-elem-test.h  \
399                 $(srcdir)/style-test.h  \
400                 $(srcdir)/test-helpers.h  \
401                 $(srcdir)/verbs-test.h