Code

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