Code

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