Code

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