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