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