Code

Offline work done during weekend:
[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-gaussian-blur.cpp sp-gaussian-blur.h \
209         sp-gaussian-blur-fns.h  \
210         sp-gradient-fns.h       \
211         sp-gradient-reference.cpp       \
212         sp-gradient-reference.h \
213         sp-gradient-spread.h    \
214         sp-gradient-units.h     \
215         sp-gradient-vector.h    \
216         sp-gradient.cpp sp-gradient.h   \
217         sp-guide-attachment.h   \
218         sp-guide-constraint.h   \
219         sp-guide.cpp sp-guide.h \
220         sp-image.cpp sp-image.h \
221         sp-item-group.cpp sp-item-group.h       \
222         sp-item-notify-moveto.cpp sp-item-notify-moveto.h       \
223         sp-item-rm-unsatisfied-cns.cpp sp-item-rm-unsatisfied-cns.h     \
224         sp-item-transform.cpp sp-item-transform.h       \
225         sp-item-update-cns.cpp sp-item-update-cns.h     \
226         sp-item.cpp sp-item.h   \
227         sp-line.cpp sp-line.h   \
228         sp-linear-gradient-fns.h        \
229         sp-linear-gradient.h    \
230         sp-marker-loc.h \
231         marker.cpp marker.h     \
232         sp-mask.cpp sp-mask.h   \
233         sp-metadata.cpp sp-metadata.h   \
234         sp-metric.h     \
235         sp-metrics.cpp sp-metrics.h     \
236         sp-namedview.cpp sp-namedview.h \
237         sp-object-group.cpp sp-object-group.h   \
238         sp-object-repr.cpp sp-object-repr.h     \
239         sp-object.cpp sp-object.h       \
240         sp-offset.cpp sp-offset.h       \
241         sp-paint-server.cpp sp-paint-server.h   \
242         sp-path.cpp sp-path.h   \
243         sp-pattern.cpp sp-pattern.h     \
244         sp-polygon.cpp sp-polygon.h     \
245         sp-polyline.cpp sp-polyline.h   \
246         sp-radial-gradient-fns.h        \
247         sp-radial-gradient.h    \
248         sp-rect.cpp sp-rect.h   \
249         sp-root.cpp sp-root.h   \
250         sp-shape.cpp sp-shape.h \
251         sp-spiral.cpp sp-spiral.h       \
252         sp-star.cpp sp-star.h   \
253         sp-stop-fns.h   \
254         sp-stop.h       \
255         sp-string.cpp sp-string.h       \
256         sp-symbol.cpp sp-symbol.h       \
257         sp-switch.cpp sp-switch.h\
258         sp-text.cpp sp-text.h   \
259         sp-textpath.h   \
260         sp-tref-reference.cpp sp-tref-reference.h \
261         sp-tref.cpp sp-tref.h \
262         sp-tspan.cpp sp-tspan.h \
263         sp-use-reference.cpp sp-use-reference.h \
264         sp-use.cpp sp-use.h     \
265         spiral-context.cpp spiral-context.h     \
266         splivarot.cpp splivarot.h       \
267         star-context.cpp star-context.h \
268         streams-gzip.h streams-gzip.cpp \
269         streams-handles.h streams-handles.cpp   \
270         streams-jar.h streams-jar.cpp   \
271         streams-zlib.h streams-zlib.cpp \
272         style.cpp style.h       \
273         sp-style-elem.cpp sp-style-elem.h       \
274         svg-profile.h \
275         svg-view.cpp svg-view.h \
276         svg-view-widget.cpp svg-view-widget.h   \
277         text-chemistry.cpp text-chemistry.h     \
278         text-context.cpp text-context.h \
279         text-editing.cpp text-editing.h \
280         text-tag-attributes.h   \
281         tools-switch.cpp tools-switch.h\
282         tweak-context.h tweak-context.cpp \
283         uri-references.cpp uri-references.h     \
284         vanishing-point.cpp vanishing-point.h   \
285         verbs.cpp verbs.h       \
286         version.cpp version.h   \
287         zoom-context.cpp zoom-context.h
290 # Force libinkpost.a to be rebuilt if we add files to libinkpost_a_SOURCES.
291 libinkpost_a_DEPENDENCIES = Makefile_insert
293 # libinkpost.a: Any object file that needs to be near the end of the link line.
294 # gradient-chemistry.o is called by some things in display/.
295 libinkpost_a_SOURCES =  \
296         color.cpp color.h       \
297         decimal-round.h \
298         dir-util.cpp dir-util.h \
299         ege-adjustment-action.cpp       \
300         ege-adjustment-action.h \
301         ege-color-prof-tracker.cpp      \
302         ege-color-prof-tracker.h        \
303         ege-output-action.cpp   \
304         ege-output-action.h     \
305         ege-select-one-action.cpp       \
306         ege-select-one-action.h \
307         fill-or-stroke.h        \
308         filter-chemistry.cpp filter-chemistry.h \
309         filter-enums.cpp filter-enums.h \
310         fixes.cpp \
311         gc-alloc.h      \
312         gc-anchored.h gc-anchored.cpp   \
313         gc-core.h       \
314         gc-finalized.h gc-finalized.cpp \
315         gc-managed.h    \
316         gc-soft-ptr.h   \
317         gc.cpp  \
318         gradient-chemistry.cpp gradient-chemistry.h     \
319         ink-action.cpp  \
320         ink-action.h    \
321         memeq.h \
322         round.h \
323         streq.h \
324         strneq.h        \
325         composite-undo-stack-observer.h \
326         composite-undo-stack-observer.cpp \
327         undo-stack-observer.h \
328         unit-constants.h        \
329         uri.cpp uri.h   \
330         helper/pixbuf-ops.cpp   \
331         helper/pixbuf-ops.h
333 inkscape_private_libs = \
334         libinkpre.a             \
335         application/libinkapp.a \
336         ui/dialog/libuidialog.a \
337         dialogs/libspdialogs.a  \
338         ui/cache/libuicache.a   \
339         jabber_whiteboard/libjabber_whiteboard.a \
340         pedro/libpedro.a        \
341         trace/libtrace.a        \
342         svg/libspsvg.a          \
343         widgets/libspwidgets.a  \
344         display/libspdisplay.a  \
345         helper/libspchelp.a     \
346         libcroco/libcroco.a     \
347         libnrtype/libnrtype.a   \
348         libnr/libnr.a           \
349         libavoid/libavoid.a     \
350         livarot/libvarot.a      \
351         live_effects/liblive_effects.a  \
352         live_effects/parameter/liblpeparam.a    \
353         ui/view/libuiview.a     \
354         ui/libui.a              \
355         ui/widget/libuiwidget.a \
356         libgdl/libgdl.a         \
357         graphlayout/libgraphlayout.a    \
358         removeoverlap/libremoveoverlap.a                \
359         libcola/libcola.a       \
360         libvpsc/libvpsc.a       \
361         extension/libextension.a        \
362         extension/implementation/libimplementation.a    \
363         extension/internal/libinternal.a        \
364         extension/script/libscript.a    \
365         dom/libdom.a            \
366         xml/libspxml.a          \
367         2geom/lib2geom.a        \
368         util/libinkutil.a       \
369         io/libio.a              \
370         $(inkjar_libs)          \
371         libinkpost.a            \
372         debug/libinkdebug.a
374 all_libs =                      \
375         $(inkscape_private_libs)        \
376         $(INKSCAPE_LIBS)        \
377         $(GNOME_VFS_LIBS)       \
378         $(XFT_LIBS)             \
379         $(FREETYPE_LIBS)        \
380         $(kdeldadd)             \
381         $(win32ldflags)         \
382         $(CARBON_LDFLAGS)       \
383         $(PERL_LIBS)            \
384         $(PYTHON_LIBS)  \
385         $(INKBOARD_LIBS) \
386         $(LIBWPG_LIBS) \
387         $(IMAGEMAGICK_LIBS)
389 desktop.$(OBJEXT): helper/sp-marshal.h
390 document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
391 extension/internal/latex-pstricks.$(OBJEXT): inkscape_version.h
392 extension/internal/ps.$(OBJEXT): inkscape_version.h
393 inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
394 knot.$(OBJEXT): helper/sp-marshal.h
395 main.$(OBJEXT): inkscape_version.h
396 selection.$(OBJEXT): helper/sp-marshal.h
397 sp-object.$(OBJEXT): helper/sp-marshal.h
398 sp-root.$(OBJEXT): inkscape_version.h
399 view.$(OBJEXT): helper/sp-marshal.h
400 help.$(OBJEXT): inkscape_version.h
403 # ################################################
405 #  B I N A R I E S
407 # ################################################
410 inkscape_SOURCES = main.cpp $(win32_sources)
411 inkscape_LDADD = $(all_libs)
412 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
414 inkview_SOURCES = inkview.cpp $(win32_sources)
415 inkview_LDADD = $(all_libs)
417 style_test_SOURCES = style-test.cpp
418 style_test_LDADD = $(all_libs)
420 inkscape_version.h: ../configure.ac
421         echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h
423 test_all_includes = \
424                 $(srcdir)/attributes-test.h     \
425                 $(srcdir)/color-profile-test.h  \
426                 $(srcdir)/MultiPrinter.h  \
427                 $(srcdir)/TRPIFormatter.h \
428                 $(srcdir)/PylogFormatter.h \
429                 $(srcdir)/dir-util-test.h       \
430                 $(srcdir)/extract-uri-test.h    \
431                 $(srcdir)/mod360-test.h \
432                 $(srcdir)/round-test.h  \
433                 $(srcdir)/sp-gradient-test.h    \
434                 $(srcdir)/sp-style-elem-test.h  \
435                 $(srcdir)/style-test.h  \
436                 $(srcdir)/test-helpers.h  \
437                 $(srcdir)/verbs-test.h