Code

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