Code

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