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