Code

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