Code

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