Code

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