Code

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