Code

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