Code

Initial cut of eraser tool
[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         axis-manip.cpp axis-manip.h     \
44         bad-uri-exception.h     \
45         box3d.cpp box3d.h \
46         box3d-context.cpp box3d-context.h \
47         box3d-side.cpp box3d-side.h \
48         brokenimage.xpm \
49         color-rgba.h    \
50         color-profile.cpp color-profile.h       \
51         color-profile-fns.h     \
52         conditions.cpp conditions.h\
53         conn-avoid-ref.cpp conn-avoid-ref.h     \
54         connector-context.cpp connector-context.h       \
55         connection-pool.h \
56         console-output-undo-observer.h console-output-undo-observer.cpp \
57         context-fns.cpp context-fns.h \
58         desktop-affine.cpp desktop-affine.h     \
59         desktop-events.cpp desktop-events.h     \
60         desktop-handles.cpp desktop-handles.h   \
61         desktop-style.cpp desktop-style.h       \
62         desktop.cpp desktop.h   \
63         device-manager.cpp      \
64         device-manager.h        \
65         document-undo.cpp       \
66         document.cpp document.h document-private.h      \
67         document-subset.cpp document-subset.h   \
68         doxygen-main.cpp \
69         draw-anchor.cpp \
70         draw-anchor.h   \
71         draw-context.cpp draw-context.h \
72         dropper-context.cpp dropper-context.h   \
73         dyna-draw-context.cpp dyna-draw-context.h       \
74         enums.h \
75         eraser-context.cpp eraser-context.h     \
76         event-context.cpp event-context.h       \
77         event-log.cpp event-log.h event.h      \
78         extract-uri.cpp extract-uri.h   \
79         file.cpp file.h \
80         filter-chemistry.cpp filter-chemistry.h \
81         filter-enums.cpp filter-enums.h \
82         flood-context.cpp flood-context.h       \
83         fontsize-expansion.cpp fontsize-expansion.h     \
84         forward.h       \
85         gradient-context.cpp gradient-context.h \
86         gradient-drag.cpp gradient-drag.h \
87         help.cpp help.h \
88         helper-fns.h \
89         icon-size.h \
90         ige-mac-menu.h ige-mac-menu.c \
91         inkscape-stock.cpp inkscape-stock.h\
92         inkscape.cpp inkscape.h inkscape-private.h      \
93         interface.cpp interface.h       \
94         isnan.h isinf.h \
95         isnormal.h \
96         knot-enums.h    \
97         knot-holder-entity.h    \
98         knot.cpp knot.h \
99         knotholder.cpp knotholder.h     \
100         layer-fns.cpp layer-fns.h       \
101         layer-manager.cpp layer-manager.h       \
102         line-geometry.cpp line-geometry.h       \
103         macros.h        \
104         main-cmdlineact.cpp main-cmdlineact.h \
105         media.cpp media.h       \
106         message-context.cpp message-context.h \
107         message-stack.cpp message-stack.h \
108         message.h \
109         mod360.cpp mod360.h     \
110         modifier-fns.h  \
111         node-context.cpp node-context.h \
112         nodepath.cpp nodepath.h \
113         object-edit.cpp object-edit.h   \
114         object-hierarchy.cpp object-hierarchy.h \
115         ui/context-menu.cpp \
116         ui/context-menu.h       \
117         path-chemistry.cpp path-chemistry.h     \
118         path-prefix.h   \
119         pen-context.cpp \
120         pen-context.h   \
121         pencil-context.cpp      \
122         pencil-context.h        \
123         persp3d.cpp persp3d.h   \
124         persp3d-reference.cpp persp3d-reference.h       \
125         perspective-line.cpp perspective-line.h \
126         preferences.cpp preferences.h \
127         preferences-skeleton.h  \
128         menus-skeleton.h        \
129         prefix.cpp      \
130         prefix.h        \
131         prefs-utils.cpp \
132         prefs-utils.h   \
133         print.cpp print.h       \
134         profile-manager.cpp     \
135         profile-manager.h       \
136         proj_pt.cpp proj_pt.h   \
137         rect-context.cpp rect-context.h \
138         require-config.h \
139         rubberband.cpp rubberband.h     \
140         satisfied-guide-cns.cpp satisfied-guide-cns.h   \
141         selcue.cpp selcue.h \
142         select-context.cpp select-context.h     \
143         selection-chemistry.cpp selection-chemistry.h   \
144         selection-describer.cpp selection-describer.h   \
145         selection.cpp selection.h       \
146         seltrans-handles.cpp seltrans-handles.h \
147         seltrans.cpp seltrans.h \
148         shape-editor.cpp shape-editor.h \
149         shortcuts.cpp shortcuts.h       \
150         snap.cpp snap.h \
151         snapped-line.cpp snapped-line.h \
152         snapped-point.cpp snapped-point.h \
153         snapper.cpp snapper.h \
154         syseq.h \
155         transf_mat_3x4.cpp transf_mat_3x4.h     \
156         line-snapper.cpp line-snapper.h \
157         guide-snapper.cpp guide-snapper.h \
158         object-snapper.cpp object-snapper.h \
159         sp-anchor.cpp sp-anchor.h       \
160         sp-clippath.cpp sp-clippath.h   \
161         sp-conn-end-pair.cpp sp-conn-end-pair.h \
162         sp-conn-end.cpp sp-conn-end.h   \
163         sp-cursor.cpp sp-cursor.h       \
164         sp-defs.cpp sp-defs.h   \
165         sp-ellipse.cpp sp-ellipse.h     \
166         sp-feblend.cpp sp-feblend.h     \
167         sp-feblend-fns.h        \
168         sp-fecolormatrix.cpp sp-fecolormatrix.h \
169         sp-fecolormatrix-fns.h  \
170         sp-fecomponenttransfer.cpp sp-fecomponenttransfer.h     \
171         sp-fecomponenttransfer-funcnode.cpp sp-fecomponenttransfer-funcnode.h   \
172         sp-fecomponenttransfer-fns.h    \
173         sp-fecomposite.cpp sp-fecomposite.h     \
174         sp-fecomposite-fns.h    \
175         sp-feconvolvematrix.cpp sp-feconvolvematrix.h   \
176         sp-feconvolvematrix-fns.h       \
177         sp-fediffuselighting.cpp sp-fediffuselighting.h \
178         sp-fediffuselighting-fns.h      \
179         sp-fedisplacementmap.cpp sp-fedisplacementmap.h \
180         sp-fedisplacementmap-fns.h      \
181         sp-fedistantlight.cpp sp-fedistantlight.h \
182         sp-feflood.cpp sp-feflood.h     \
183         sp-feflood-fns.h        \
184         sp-feimage.cpp sp-feimage.h     \
185         sp-feimage-fns.h        \
186         sp-femerge.cpp sp-femerge.h     \
187         sp-femerge-fns.h        \
188         sp-femergenode.cpp sp-femergenode.h \
189         sp-femorphology.cpp sp-femorphology.h   \
190         sp-femorphology-fns.h   \
191         sp-feoffset.cpp sp-feoffset.h   \
192         sp-feoffset-fns.h       \
193         sp-fepointlight.cpp sp-fepointlight.h \
194         sp-fespecularlighting.cpp sp-fespecularlighting.h       \
195         sp-fespecularlighting-fns.h     \
196         sp-fespotlight.cpp sp-fespotlight.h \
197         sp-fetile.cpp sp-fetile.h       \
198         sp-fetile-fns.h \
199         sp-feturbulence.cpp sp-feturbulence.h   \
200         sp-feturbulence-fns.h   \
201         sp-filter-fns.h \
202         sp-filter-primitive.cpp \
203         sp-filter-primitive.h   \
204         sp-filter-reference.cpp \
205         sp-filter-reference.h   \
206         sp-filter-units.h       \
207         sp-filter.cpp sp-filter.h number-opt-number.h   \
208         sp-flowdiv.h sp-flowdiv.cpp \
209         sp-flowregion.h sp-flowregion.cpp \
210         sp-flowtext.h sp-flowtext.cpp \
211         sp-font.cpp sp-font.h \
212         sp-glyph.cpp sp-glyph.h \
213         sp-missing-glyph.cpp sp-missing-glyph.h \
214         sp-gaussian-blur.cpp sp-gaussian-blur.h \
215         sp-gaussian-blur-fns.h  \
216         sp-gradient-fns.h       \
217         sp-gradient-reference.cpp       \
218         sp-gradient-reference.h \
219         sp-gradient-spread.h    \
220         sp-gradient-units.h     \
221         sp-gradient-vector.h    \
222         sp-gradient.cpp sp-gradient.h   \
223         sp-guide-attachment.h   \
224         sp-guide-constraint.h   \
225         sp-guide.cpp sp-guide.h \
226         sp-image.cpp sp-image.h \
227         sp-item-group.cpp sp-item-group.h       \
228         sp-item-notify-moveto.cpp sp-item-notify-moveto.h       \
229         sp-item-rm-unsatisfied-cns.cpp sp-item-rm-unsatisfied-cns.h     \
230         sp-item-transform.cpp sp-item-transform.h       \
231         sp-item-update-cns.cpp sp-item-update-cns.h     \
232         sp-item.cpp sp-item.h   \
233         sp-line.cpp sp-line.h   \
234         sp-linear-gradient-fns.h        \
235         sp-linear-gradient.h    \
236         sp-lpe-item.cpp sp-lpe-item.h   \
237         sp-marker-loc.h \
238         marker.cpp marker.h     \
239         sp-mask.cpp sp-mask.h   \
240         sp-metadata.cpp sp-metadata.h   \
241         sp-metric.h     \
242         sp-metrics.cpp sp-metrics.h     \
243         sp-namedview.cpp sp-namedview.h \
244         sp-object-group.cpp sp-object-group.h   \
245         sp-object-repr.cpp sp-object-repr.h     \
246         sp-object.cpp sp-object.h       \
247         sp-offset.cpp sp-offset.h       \
248         sp-paint-server.cpp sp-paint-server.h   \
249         sp-path.cpp sp-path.h   \
250         sp-pattern.cpp sp-pattern.h     \
251         sp-polygon.cpp sp-polygon.h     \
252         sp-polyline.cpp sp-polyline.h   \
253         sp-radial-gradient-fns.h        \
254         sp-radial-gradient.h    \
255         sp-rect.cpp sp-rect.h   \
256         sp-root.cpp sp-root.h   \
257         sp-shape.cpp sp-shape.h \
258         sp-spiral.cpp sp-spiral.h       \
259         sp-star.cpp sp-star.h   \
260         sp-stop-fns.h   \
261         sp-stop.h       \
262         sp-string.cpp sp-string.h       \
263         sp-symbol.cpp sp-symbol.h       \
264         sp-switch.cpp sp-switch.h\
265         sp-text.cpp sp-text.h   \
266         sp-textpath.h   \
267         sp-tref-reference.cpp sp-tref-reference.h \
268         sp-tref.cpp sp-tref.h \
269         sp-tspan.cpp sp-tspan.h \
270         sp-use-reference.cpp sp-use-reference.h \
271         sp-use.cpp sp-use.h     \
272         spiral-context.cpp spiral-context.h     \
273         splivarot.cpp splivarot.h       \
274         star-context.cpp star-context.h \
275         streams-gzip.h streams-gzip.cpp \
276         streams-handles.h streams-handles.cpp   \
277         streams-jar.h streams-jar.cpp   \
278         streams-zlib.h streams-zlib.cpp \
279         style.cpp style.h       \
280         sp-style-elem.cpp sp-style-elem.h       \
281         svg-profile.h \
282         svg-view.cpp svg-view.h \
283         svg-view-widget.cpp svg-view-widget.h   \
284         text-chemistry.cpp text-chemistry.h     \
285         text-context.cpp text-context.h \
286         text-editing.cpp text-editing.h \
287         text-tag-attributes.h   \
288         tools-switch.cpp tools-switch.h\
289         tweak-context.h tweak-context.cpp \
290         uri-references.cpp uri-references.h     \
291         vanishing-point.cpp vanishing-point.h   \
292         verbs.cpp verbs.h       \
293         version.cpp version.h   \
294         zoom-context.cpp zoom-context.h
297 # Force libinkpost.a to be rebuilt if we add files to libinkpost_a_SOURCES.
298 libinkpost_a_DEPENDENCIES = Makefile_insert
300 # libinkpost.a: Any object file that needs to be near the end of the link line.
301 # gradient-chemistry.o is called by some things in display/.
302 libinkpost_a_SOURCES =  \
303         color.cpp color.h       \
304         decimal-round.h \
305         dir-util.cpp dir-util.h \
306         ege-adjustment-action.cpp       \
307         ege-adjustment-action.h \
308         ege-color-prof-tracker.cpp      \
309         ege-color-prof-tracker.h        \
310         ege-output-action.cpp   \
311         ege-output-action.h     \
312         ege-select-one-action.cpp       \
313         ege-select-one-action.h \
314         fill-or-stroke.h        \
315         filter-chemistry.cpp filter-chemistry.h \
316         filter-enums.cpp filter-enums.h \
317         fixes.cpp \
318         gc-alloc.h      \
319         gc-anchored.h gc-anchored.cpp   \
320         gc-core.h       \
321         gc-finalized.h gc-finalized.cpp \
322         gc-managed.h    \
323         gc-soft-ptr.h   \
324         gc.cpp  \
325         gradient-chemistry.cpp gradient-chemistry.h     \
326         ink-action.cpp  \
327         ink-action.h    \
328         memeq.h \
329         round.h \
330         streq.h \
331         strneq.h        \
332         composite-undo-stack-observer.h \
333         composite-undo-stack-observer.cpp \
334         undo-stack-observer.h \
335         unit-constants.h        \
336         uri.cpp uri.h   \
337         helper/pixbuf-ops.cpp   \
338         helper/pixbuf-ops.h
340 inkscape_private_libs = \
341         libinkpre.a             \
342         application/libinkapp.a \
343         ui/dialog/libuidialog.a \
344         dialogs/libspdialogs.a  \
345         ui/cache/libuicache.a   \
346         jabber_whiteboard/libjabber_whiteboard.a \
347         pedro/libpedro.a        \
348         trace/libtrace.a        \
349         svg/libspsvg.a          \
350         widgets/libspwidgets.a  \
351         display/libspdisplay.a  \
352         helper/libspchelp.a     \
353         libcroco/libcroco.a     \
354         libnrtype/libnrtype.a   \
355         libnr/libnr.a           \
356         libavoid/libavoid.a     \
357         livarot/libvarot.a      \
358         live_effects/liblive_effects.a  \
359         live_effects/parameter/liblpeparam.a    \
360         ui/view/libuiview.a     \
361         ui/libui.a              \
362         ui/widget/libuiwidget.a \
363         libgdl/libgdl.a         \
364         graphlayout/libgraphlayout.a    \
365         removeoverlap/libremoveoverlap.a                \
366         libcola/libcola.a       \
367         libvpsc/libvpsc.a       \
368         extension/libextension.a        \
369         extension/implementation/libimplementation.a    \
370         extension/internal/libinternal.a        \
371         extension/script/libscript.a    \
372         bind/libbind.a  \
373         dom/libdom.a            \
374         xml/libspxml.a          \
375         2geom/lib2geom.a        \
376         util/libinkutil.a       \
377         io/libio.a              \
378         $(inkjar_libs)          \
379         libinkpost.a            \
380         debug/libinkdebug.a
382 all_libs =                      \
383         $(inkscape_private_libs)        \
384         $(INKSCAPE_LIBS)        \
385         $(GNOME_VFS_LIBS)       \
386         $(XFT_LIBS)             \
387         $(FREETYPE_LIBS)        \
388         $(kdeldadd)             \
389         $(win32ldflags)         \
390         $(CARBON_LDFLAGS)       \
391         $(PERL_LIBS)            \
392         $(PYTHON_LIBS)  \
393         $(INKBOARD_LIBS) \
394         $(LIBWPG_LIBS) \
395         $(IMAGEMAGICK_LIBS)
397 desktop.$(OBJEXT): helper/sp-marshal.h
398 document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
399 extension/internal/latex-pstricks.$(OBJEXT): inkscape_version.h
400 extension/internal/ps.$(OBJEXT): inkscape_version.h
401 inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
402 knot.$(OBJEXT): helper/sp-marshal.h
403 main.$(OBJEXT): inkscape_version.h
404 selection.$(OBJEXT): helper/sp-marshal.h
405 sp-object.$(OBJEXT): helper/sp-marshal.h
406 sp-root.$(OBJEXT): inkscape_version.h
407 view.$(OBJEXT): helper/sp-marshal.h
408 help.$(OBJEXT): inkscape_version.h
411 # ################################################
413 #  B I N A R I E S
415 # ################################################
418 inkscape_SOURCES = main.cpp $(win32_sources)
419 inkscape_LDADD = $(all_libs)
420 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
422 inkview_SOURCES = inkview.cpp $(win32_sources)
423 inkview_LDADD = $(all_libs)
425 style_test_SOURCES = style-test.cpp
426 style_test_LDADD = $(all_libs)
428 inkscape_version.h: ../configure.ac
429         echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h
431 test_all_includes = \
432                 $(srcdir)/attributes-test.h     \
433                 $(srcdir)/color-profile-test.h  \
434                 $(srcdir)/MultiPrinter.h  \
435                 $(srcdir)/TRPIFormatter.h \
436                 $(srcdir)/PylogFormatter.h \
437                 $(srcdir)/dir-util-test.h       \
438                 $(srcdir)/extract-uri-test.h    \
439                 $(srcdir)/mod360-test.h \
440                 $(srcdir)/round-test.h  \
441                 $(srcdir)/sp-gradient-test.h    \
442                 $(srcdir)/sp-style-elem-test.h  \
443                 $(srcdir)/style-test.h  \
444                 $(srcdir)/test-helpers.h  \
445                 $(srcdir)/verbs-test.h