Code

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