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