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