Code

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