Code

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