Update Spanish translation
[gnumeric.git] / src / Makefile.am
blobf7102082daf598c5188b81019995f5f569f7214e
1 # Gnumeric's Makefile.am
2 # Author: Miguel de Icaza (miguel@kernel.org)
4 AUTOMAKE_OPTIONS = subdir-objects
6 -include $(INTROSPECTION_MAKEFILE)
7 INTROSPECTION_GIRS =
8 INTROSPECTION_SCANNER_ARGS = \
9         --add-include-path="${INTROSPECTION_GIRDIR}" \
10         -v --warn-all --accept-unprefixed \
11         --identifier-prefix="Gnm"  --identifier-prefix="Gnumeric" \
12         -I$(top_builddir) \
13         -DGOFFICE_NAMESPACE_DISABLE
14 INTROSPECTION_COMPILER_ARGS = \
15         --includedir=$(srcdir) \
16         --includedir=. \
17         --includedir="${INTROSPECTION_GIRDIR}"
19 libspreadsheet_includedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
21 EXTRA_DIST =
23 lib_LTLIBRARIES = libspreadsheet.la
25 bin_PROGRAMS =
26 check_PROGRAMS =
27 noinst_PROGRAMS = sstest
29 if WITH_GTK
30   bin_PROGRAMS += gnumeric
31 endif
33 bin_PROGRAMS += ssconvert ssindex ssgrep ssdiff
35 AM_CPPFLAGS =                                                           \
36         -I$(top_srcdir)                                                 \
37         -I$(srcdir)                                                     \
38         $(GNUMERIC_CFLAGS)
40 # A hint is needed to build these headers first:
41 BUILT_SOURCES =                                 \
42         gnm-marshalers.c                        \
43         gnm-marshalers.h                        \
44         gnmresources.c                          \
45         gnmresources.h                          \
46         gnumeric-paths.h
48 # These also need to occur in gnm.gresource.xml
49 resource_ui_files =                             \
50         dialogs/advanced-filter.ui              \
51         dialogs/anova-one.ui                    \
52         dialogs/anova-two.ui                    \
53         dialogs/autofilter-expression.ui        \
54         dialogs/autofilter-top10.ui             \
55         dialogs/autoformat.ui                   \
56         dialogs/autosave.ui                     \
57         dialogs/cell-comment.ui                 \
58         dialogs/cell-format-cond.ui             \
59         dialogs/cell-format.ui                  \
60         dialogs/cell-sort.ui                    \
61         dialogs/chi-squared.ui                  \
62         dialogs/col-width.ui                    \
63         dialogs/colrow.ui                       \
64         dialogs/consolidate.ui                  \
65         dialogs/correlation.ui                  \
66         dialogs/covariance.ui                   \
67         dialogs/dao.ui                          \
68         dialogs/data-slicer.ui                  \
69         dialogs/data-table.ui                   \
70         dialogs/define-name.ui                  \
71         dialogs/delete-cells.ui                 \
72         dialogs/descriptive-stats.ui            \
73         dialogs/dialog-stf-export.ui            \
74         dialogs/dialog-stf.ui                   \
75         dialogs/dialog-zoom.ui                  \
76         dialogs/doc-meta-data.ui                \
77         dialogs/exp-smoothing.ui                \
78         dialogs/fill-series.ui                  \
79         dialogs/formula-guru.ui                 \
80         dialogs/fourier-analysis.ui             \
81         dialogs/frequency.ui                    \
82         dialogs/function-select.ui              \
83         dialogs/goalseek.ui                     \
84         dialogs/goto.ui                         \
85         dialogs/hf-config.ui                    \
86         dialogs/hf-dt-format.ui                 \
87         dialogs/histogram.ui                    \
88         dialogs/hyperlink.ui                    \
89         dialogs/insert-cells.ui                 \
90         dialogs/kaplan-meier.ui                 \
91         dialogs/mean-tests.ui                   \
92         dialogs/merge.ui                        \
93         dialogs/moving-averages.ui              \
94         dialogs/normality-tests.ui              \
95         dialogs/one-mean-test.ui                \
96         dialogs/paste-special.ui                \
97         dialogs/plugin-manager.ui               \
98         dialogs/preferences.ui                  \
99         dialogs/principal-components.ui         \
100         dialogs/print.ui                        \
101         dialogs/quit.ui                         \
102         dialogs/random-generation-cor.ui        \
103         dialogs/random-generation.ui            \
104         dialogs/rank.ui                         \
105         dialogs/recent.ui                       \
106         dialogs/regression.ui                   \
107         dialogs/row-height.ui                   \
108         dialogs/sampling.ui                     \
109         dialogs/scenario-add.ui                 \
110         dialogs/scenario-manager.ui             \
111         dialogs/search-replace.ui               \
112         dialogs/search.ui                       \
113         dialogs/sheet-compare.ui                \
114         dialogs/sheet-order.ui                  \
115         dialogs/sheet-rename.ui                 \
116         dialogs/sheet-resize.ui                 \
117         dialogs/sheetobject-size.ui             \
118         dialogs/shuffle.ui                      \
119         dialogs/sign-test-two.ui                \
120         dialogs/sign-test.ui                    \
121         dialogs/simulation.ui                   \
122         dialogs/so-button.ui                    \
123         dialogs/so-checkbox.ui                  \
124         dialogs/so-frame.ui                     \
125         dialogs/so-list.ui                      \
126         dialogs/so-radiobutton.ui               \
127         dialogs/so-scrollbar.ui                 \
128         dialogs/solver.ui                       \
129         dialogs/tabulate.ui                     \
130         dialogs/variance-tests.ui               \
131         dialogs/view.ui                         \
132         dialogs/wbcg.ui                         \
133         dialogs/wilcoxon-mann-whitney.ui        \
134         dialogs/workbook-attr.ui
136 dialogs_sources =                                               \
137         dialogs/dao-gui-utils.c                                 \
138         dialogs/dialog-about.c                                  \
139         dialogs/dialog-advanced-filter.c                        \
140         dialogs/dialog-analysis-tools.c                         \
141         dialogs/dialog-analysis-tool-chi-squared.c              \
142         dialogs/dialog-analysis-tool-frequency.c                \
143         dialogs/dialog-analysis-tool-kaplan-meier.c             \
144         dialogs/dialog-analysis-tool-normality.c                \
145         dialogs/dialog-analysis-tool-one-mean.c                 \
146         dialogs/dialog-analysis-tool-principal-components.c     \
147         dialogs/dialog-analysis-tool-sign-test.c                \
148         dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c    \
149         dialogs/dialog-autofilter.c                             \
150         dialogs/dialog-autoformat.c                             \
151         dialogs/dialog-autosave.c                               \
152         dialogs/dialog-cell-comment.c                           \
153         dialogs/dialog-cell-format.c                            \
154         dialogs/dialog-cell-format-cond.c                       \
155         dialogs/dialog-cell-sort.c                              \
156         dialogs/dialog-col-width.c                              \
157         dialogs/dialog-col-row.c                                \
158         dialogs/dialog-consolidate.c                            \
159         dialogs/dialog-data-slicer.c                            \
160         dialogs/dialog-data-table.c                             \
161         dialogs/dialog-fill-series.c                            \
162         dialogs/dialog-function-select.c                        \
163         dialogs/dialog-formula-guru.c                           \
164         dialogs/dialog-goal-seek.c                              \
165         dialogs/dialog-goto-cell.c                              \
166         dialogs/dialog-hyperlink.c                              \
167         dialogs/dialog-insert-cells.c                           \
168         dialogs/dialog-define-names.c                           \
169         dialogs/dialog-delete-cells.c                           \
170         dialogs/dialog-merge.c                                  \
171         dialogs/dialog-password.c                               \
172         dialogs/dialog-paste-special.c                          \
173         dialogs/dialog-plugin-manager.c                         \
174         dialogs/dialog-preferences.c                            \
175         dialogs/dialog-random-generator.c                       \
176         dialogs/dialog-random-generator-cor.c                   \
177         dialogs/dialog-recent.c                                 \
178         dialogs/dialog-row-height.c                             \
179         dialogs/dialog-quit.c                                   \
180         dialogs/dialog-scenarios.c                              \
181         dialogs/dialog-search.c                                 \
182         dialogs/dialog-search-replace.c                         \
183         dialogs/dialog-sheet-compare.c                          \
184         dialogs/dialog-sheet-order.c                            \
185         dialogs/dialog-sheet-rename.c                           \
186         dialogs/dialog-sheet-resize.c                           \
187         dialogs/dialog-sheetobject-size.c                       \
188         dialogs/dialog-shuffle.c                                \
189         dialogs/dialog-simulation.c                             \
190         dialogs/dialog-so-list.c                                \
191         dialogs/dialog-so-styled.c                              \
192         dialogs/dialog-solver.c                                 \
193         dialogs/dialog-stf.c                                    \
194         dialogs/dialog-stf-main-page.c                          \
195         dialogs/dialog-stf-csv-page.c                           \
196         dialogs/dialog-stf-fixed-page.c                         \
197         dialogs/dialog-stf-format-page.c                        \
198         dialogs/dialog-stf-preview.c                            \
199         dialogs/dialog-stf-export.c                             \
200         dialogs/dialog-tabulate.c                               \
201         dialogs/dialog-doc-metadata.c                           \
202         dialogs/dialog-view.c                                   \
203         dialogs/dialog-workbook-attr.c                          \
204         dialogs/dialog-zoom.c                                   \
205         dialogs/dialog-printer-setup.c
207 # Not installed
208 dialogs_headers = \
209         dialogs/help.h                                          \
210         dialogs/dao-gui-utils.h                                 \
211         dialogs/dialog-stf.h                                    \
212         dialogs/dialog-stf-preview.h                            \
213         dialogs/dialog-stf-export.h                             \
214         dialogs/dialogs.h                                       \
215         dialogs/tool-dialogs.h
217 widgets_SOURCES = \
218         widgets/gnm-dao.c                               \
219         widgets/gnm-fontbutton.c                        \
220         widgets/gnm-format-sel.c                        \
221         widgets/gnm-notebook.c                          \
222         widgets/gnm-radiobutton.c                       \
223         widgets/gnm-cell-combo-view.c                   \
224         widgets/gnm-filter-combo-view.c                 \
225         widgets/gnm-validation-combo-view.c             \
226         widgets/gnm-sheet-sel.c                         \
227         widgets/gnm-sheet-slicer-combo-view.c           \
228         widgets/gnm-so-anchor-mode-chooser.c            \
229         widgets/gnm-workbook-sel.c                      \
230         widgets/gnm-cell-renderer-text.c                \
231         widgets/gnm-cell-renderer-expr-entry.c  \
232         widgets/gnm-cell-renderer-toggle.c              \
233         widgets/gnm-dashed-canvas-line.c                \
234         widgets/gnm-expr-entry.c                        \
235         widgets/gnm-text-view.c
237 widgetsdir = $(libspreadsheet_includedir)/widgets
238 widgets_HEADERS = \
239         widgets/gnm-dao.h                               \
240         widgets/gnm-fontbutton.h                        \
241         widgets/gnm-format-sel.h                        \
242         widgets/gnm-notebook.h                          \
243         widgets/gnm-radiobutton.h                       \
244         widgets/gnm-cell-combo-view.h                   \
245         widgets/gnm-cell-combo-view-impl.h              \
246         widgets/gnm-filter-combo-view.h                 \
247         widgets/gnm-validation-combo-view.h             \
248         widgets/gnm-sheet-sel.h                         \
249         widgets/gnm-sheet-slicer-combo-view.h           \
250         widgets/gnm-so-anchor-mode-chooser.h            \
251         widgets/gnm-workbook-sel.h                      \
252         widgets/gnm-cell-renderer-text.h                \
253         widgets/gnm-cell-renderer-expr-entry.h  \
254         widgets/gnm-cell-renderer-toggle.h              \
255         widgets/gnm-dashed-canvas-line.h                \
256         widgets/gnm-expr-entry.h                        \
257         widgets/gnm-text-view.h
259 tools_SOURCES = \
260         tools/analysis-anova.c                  \
261         tools/analysis-auto-expression.c        \
262         tools/analysis-chi-squared.c            \
263         tools/analysis-exp-smoothing.c          \
264         tools/analysis-frequency.c              \
265         tools/analysis-histogram.c              \
266         tools/analysis-kaplan-meier.c           \
267         tools/analysis-normality.c              \
268         tools/analysis-one-mean-test.c          \
269         tools/analysis-principal-components.c   \
270         tools/analysis-sign-test.c              \
271         tools/analysis-signed-rank-test.c       \
272         tools/analysis-tools.c                  \
273         tools/analysis-wilcoxon-mann-whitney.c  \
274         tools/auto-correct.c                    \
275         tools/dao.c                             \
276         tools/data-shuffling.c                  \
277         tools/fill-series.c                     \
278         tools/filter.c                          \
279         tools/gnm-solver.c                      \
280         tools/goal-seek.c                       \
281         tools/random-generator-cor.c            \
282         tools/random-generator.c                \
283         tools/scenarios.c                       \
284         tools/simulation.c                      \
285         tools/tabulate.c
287 toolsdir = $(libspreadsheet_includedir)/tools
288 tools_HEADERS = \
289         tools/analysis-anova.h                  \
290         tools/analysis-auto-expression.h        \
291         tools/analysis-chi-squared.h            \
292         tools/analysis-exp-smoothing.h          \
293         tools/analysis-frequency.h              \
294         tools/analysis-histogram.h              \
295         tools/analysis-kaplan-meier.h           \
296         tools/analysis-normality.h              \
297         tools/analysis-one-mean-test.h          \
298         tools/analysis-principal-components.h   \
299         tools/analysis-sign-test.h              \
300         tools/analysis-signed-rank-test.h       \
301         tools/analysis-tools.h                  \
302         tools/analysis-wilcoxon-mann-whitney.h  \
303         tools/auto-correct.h                    \
304         tools/dao.h                             \
305         tools/data-shuffling.h                  \
306         tools/fill-series.h                     \
307         tools/filter.h                          \
308         tools/gnm-solver.h                      \
309         tools/goal-seek.h                       \
310         tools/random-generator-cor.h            \
311         tools/random-generator.h                \
312         tools/scenarios.h                       \
313         tools/simulation.h                      \
314         tools/tabulate.h                        \
315         tools/tools.h
317 noinst_HEADERS = dead-kittens.h compilation.h gnm-i18n.h \
318         $(dialogs_headers)
320 # Another hint, see bugs #172211 and #172212:
321 non-intermediate: gnm-marshalers.c gnmresources.c
323 resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir) --generate-dependencies $(srcdir)/gnm.gresource.xml)
325 gnmresources.h: gnm.gresource.xml
326         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
327                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-header --manual-register
328 gnmresources.c: gnm.gresource.xml $(resource_files) Makefile
329         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
330                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-source --manual-register
333 CLEANFILES = $(BUILT_SOURCES)                   \
334         gnumeric.exe.a
336 libspreadsheet_la_CPPFLAGS = $(AM_CPPFLAGS) -DGNUMERIC_INTERNAL
337 libspreadsheet_la_LDFLAGS = -release $(VERSION)
338 libspreadsheet_la_LIBADD =                      \
339         $(GNUMERIC_LIBS)                        \
340         $(INTLLIBS)
342 libspreadsheet_la_SOURCES =             \
343         go-val.h                        \
344         go-val.c                        \
345         \
346         goffice-data.h                  \
347         go-data-cache-source.c          \
348         go-data-cache-source.h          \
349         go-data-cache-impl.h            \
350         go-data-cache.h                 \
351         go-data-cache.c                 \
352         go-data-cache-field-impl.h      \
353         go-data-cache-field.h           \
354         go-data-cache-field.c           \
355         go-data-slicer-impl.h           \
356         go-data-slicer.h                \
357         go-data-slicer.c                \
358         go-data-slicer-field-impl.h     \
359         go-data-slicer-field.h          \
360         go-data-slicer-field.c          \
361         \
362         gnm-data-cache-source.h         \
363         gnm-data-cache-source.c         \
364         gnm-sheet-slicer.h              \
365         gnm-sheet-slicer.c              \
366         gnm-sheet-slicer-combo.h        \
367         gnm-sheet-slicer-combo.c        \
368         \
369         gnm-cell-combo.h                \
370         gnm-cell-combo.c                \
371         \
372         gnm-marshalers.c                        \
373         application.c                           \
374         auto-format.c                           \
375         cell-draw.c                             \
376         cell.c                                  \
377         cellspan.c                              \
378         clipboard.c                             \
379         cmd-edit.c                              \
380         collect.c                               \
381         colrow.c                                \
382         command-context-stderr.c                \
383         command-context.c                       \
384         commands.c                              \
385         complete-sheet.c                        \
386         complete.c                              \
387         complex.c                               \
388         consolidate.c                           \
389         criteria.c                              \
390         dependent.c                             \
391         expr-deriv.c                            \
392         expr-name.c                             \
393         expr.c                                  \
394         file-autoft.c                           \
395         format-template.c                       \
396         func-builtin.c                          \
397         func.c                                  \
398         gnm-commands-slicer.c                   \
399         gnm-datetime.c                          \
400         gnm-format.c                            \
401         gnm-graph-window.c                      \
402         gnm-pane-impl.h                         \
403         gnm-pane.c                              \
404         gnm-plugin.c                            \
405         gnm-random.c                            \
406         gnm-so-filled.c                         \
407         gnm-so-line.c                           \
408         gnm-so-path.c                           \
409         gnm-so-polygon.c                        \
410         gnumeric-conf.c                         \
411         gnumeric-simple-canvas.c                \
412         graph.c                                 \
413         gui-clipboard.c                         \
414         gui-file.c                              \
415         gui-util.c                              \
416         gutils.c                                \
417         history.c                               \
418         hlink.c                                 \
419         input-msg.c                             \
420         item-bar.c                              \
421         item-cursor.c                           \
422         item-edit.c                             \
423         item-grid.c                             \
424         libgnumeric.c                           \
425         mathfunc.c                              \
426         mstyle.c                                \
427         number-match.c                          \
428         outoflinedocs.c                         \
429         parse-util.c                            \
430         parser.y                                \
431         pattern.c                               \
432         position.c                              \
433         preview-grid-impl.h                     \
434         preview-grid.c                          \
435         print-cell.c                            \
436         print-info.c                            \
437         print.c                                 \
438         rangefunc-strings.c                     \
439         rangefunc.c                             \
440         ranges.c                                \
441         rendered-value.c                        \
442         search.c                                \
443         selection.c                             \
444         session.c                               \
445         sf-bessel.c                             \
446         sf-dpq.c                                \
447         sf-gamma.c                              \
448         sf-trig.c                               \
449         sheet-autofill.c                        \
450         sheet-control-gui.c                     \
451         sheet-control.c                         \
452         sheet-diff.c                            \
453         sheet-filter.c                          \
454         sheet-merge.c                           \
455         sheet-object-cell-comment.c             \
456         sheet-object-component.c                \
457         sheet-object-graph.c                    \
458         sheet-object-image.c                    \
459         sheet-object-widget.c                   \
460         sheet-object.c                          \
461         sheet-style.c                           \
462         sheet-utils.c                           \
463         sheet-view.c                            \
464         sheet.c                                 \
465         sort.c                                  \
466         stf-export.c                            \
467         stf-parse.c                             \
468         stf.c                                   \
469         style-border.c                          \
470         style-color.c                           \
471         style-conditions.c                      \
472         style.c                                 \
473         undo.c                                  \
474         validation.c                            \
475         value-sheet.c                           \
476         value.c                                 \
477         wbc-gtk-actions.c                       \
478         wbc-gtk-edit.c                          \
479         wbc-gtk.c                               \
480         workbook-cmd-format.c                   \
481         workbook-control.c                      \
482         workbook-view.c                         \
483         workbook.c                              \
484         xml-sax-read.c                          \
485         xml-sax-write.c                         \
486         $(dialogs_sources)                      \
487         $(tools_SOURCES)
489 if WITH_GTK
490   libspreadsheet_la_SOURCES += $(widgets_SOURCES)
491 else
492   EXTRA_DIST += $(widgets_SOURCES)
493 endif
495 nodist_libspreadsheet_la_SOURCES = gnmresources.c gnmresources.h
497 # When we switch to subversion fix this to nest as
498 # libspreadsheet-ver/spreadsheet/header
499 # doing it now would require massive cvs surgery.
500 libspreadsheet_include_HEADERS =                \
501         application.h                           \
502         auto-format.h                           \
503         cell-draw.h                             \
504         cell.h                                  \
505         cellspan.h                              \
506         clipboard.h                             \
507         cmd-edit.h                              \
508         collect.h                               \
509         colrow.h                                \
510         command-context-stderr.h                \
511         command-context.h                       \
512         commands.h                              \
513         complete-sheet.h                        \
514         complete.h                              \
515         complex.h                               \
516         consolidate.h                           \
517         criteria.h                              \
518         dependent.h                             \
519         expr-deriv.h                            \
520         expr-impl.h                             \
521         expr-name.h                             \
522         expr.h                                  \
523         file-autoft.h                           \
524         format-template.h                       \
525         func-builtin.h                          \
526         func.h                                  \
527         gnm-command-impl.h                      \
528         gnm-commands-slicer.h                   \
529         gnm-data-cache-source.h                 \
530         gnm-datetime.h                          \
531         gnm-format.h                            \
532         gnm-graph-window.h                      \
533         gnm-pane.h                              \
534         gnm-plugin.h                            \
535         gnm-random.h                            \
536         gnm-sheet-slicer.h                      \
537         gnm-so-filled.h                         \
538         gnm-so-line.h                           \
539         gnm-so-path.h                           \
540         gnm-so-polygon.h                        \
541         gnumeric-conf.h                         \
542         gnumeric-fwd.h                          \
543         gnumeric-simple-canvas.h                \
544         gnumeric.h                              \
545         go-data-cache-field.h                   \
546         go-data-cache-source.h                  \
547         go-data-cache.h                         \
548         go-data-slicer-field.h                  \
549         go-data-slicer.h                        \
550         go-val.h                                \
551         graph.h                                 \
552         gui-clipboard.h                         \
553         gui-file.h                              \
554         gui-util.h                              \
555         gutils.h                                \
556         history.h                               \
557         hlink-impl.h                            \
558         hlink.h                                 \
559         input-msg.h                             \
560         item-bar.h                              \
561         item-cursor.h                           \
562         item-edit.h                             \
563         item-grid.h                             \
564         libgnumeric.h                           \
565         mathfunc.h                              \
566         mstyle.h                                \
567         number-match.h                          \
568         numbers.h                               \
569         parse-util.h                            \
570         pattern.h                               \
571         position.h                              \
572         preview-grid.h                          \
573         print-cell.h                            \
574         print-info.h                            \
575         print.h                                 \
576         rangefunc-strings.h                     \
577         rangefunc.h                             \
578         ranges.h                                \
579         regression.h                            \
580         rendered-value.h                        \
581         search.h                                \
582         selection.h                             \
583         session.h                               \
584         sf-bessel.h                             \
585         sf-dpq.h                                \
586         sf-gamma.h                              \
587         sf-trig.h                               \
588         sheet-autofill.h                        \
589         sheet-control-gui-priv.h                \
590         sheet-control-gui.h                     \
591         sheet-control-priv.h                    \
592         sheet-control.h                         \
593         sheet-diff.h                            \
594         sheet-filter-combo.h                    \
595         sheet-filter.h                          \
596         sheet-merge.h                           \
597         sheet-object-cell-comment.h             \
598         sheet-object-component.h                \
599         sheet-object-graph.h                    \
600         sheet-object-image.h                    \
601         sheet-object-impl.h                     \
602         sheet-object-widget-impl.h              \
603         sheet-object-widget.h                   \
604         sheet-object.h                          \
605         sheet-private.h                         \
606         sheet-style.h                           \
607         sheet-utils.h                           \
608         sheet-view.h                            \
609         sheet.h                                 \
610         sort.h                                  \
611         stf-export.h                            \
612         stf-parse.h                             \
613         stf.h                                   \
614         style-border.h                          \
615         style-color.h                           \
616         style-conditions.h                      \
617         style-font.h                            \
618         style.h                                 \
619         undo.h                                  \
620         validation-combo.h                      \
621         validation.h                            \
622         value.h                                 \
623         wbc-gtk-impl.h                          \
624         wbc-gtk.h                               \
625         workbook-cmd-format.h                   \
626         workbook-control-priv.h                 \
627         workbook-control.h                      \
628         workbook-priv.h                         \
629         workbook-view.h                         \
630         workbook.h                              \
631         xml-io-version.h                        \
632         xml-sax.h
634 gnumeric_SOURCES =                              \
635         io-context-gtk.c                        \
636         io-context-gtk.h                        \
637         main-application.c
639 gnumeric_LDADD =                                \
640         libspreadsheet.la                       \
641         $(GNUMERIC_LIBS)                        \
642         $(INTLLIBS)
643 gnumeric_LDFLAGS = -export-dynamic
645 ssconvert_LDADD   = $(gnumeric_LDADD)
646 ssconvert_LDFLAGS = -export-dynamic
647 ssconvert_SOURCES =                             \
648         ssconvert.c
649 ssindex_LDADD   = $(gnumeric_LDADD)
650 ssindex_LDFLAGS = -export-dynamic
651 ssindex_SOURCES =                               \
652         ssindex.c
653 ssgrep_LDADD   = $(gnumeric_LDADD)
654 ssgrep_LDFLAGS = -export-dynamic
655 ssgrep_SOURCES =                                \
656         ssgrep.c
657 sstest_LDADD   = $(gnumeric_LDADD)
658 sstest_LDFLAGS = -export-dynamic
659 sstest_SOURCES =                                \
660         sstest.c
661 ssdiff_LDADD   = $(gnumeric_LDADD)
662 ssdiff_LDFLAGS = -export-dynamic
663 ssdiff_SOURCES =                                \
664         ssdiff.c
666 if WITH_NATIVE_WIN32
667     gnumeric_LDADD += gnumeric_rc.o
668     gnumeric_LDFLAGS    += -mwindows -Wl,--stack,0x4000000
669     ssconvert_LDFLAGS   += -mconsole -Wl,--stack,0x4000000
670     ssindex_LDFLAGS     += -mconsole
671     ssgrep_LDFLAGS      += -mconsole
673     libspreadsheet_la_DEPENDENCIES = libspreadsheet.def
674     libspreadsheet_la_LDFLAGS += -no-undefined -export-symbols libspreadsheet.def
675 endif
677 if WITH_WIN32
678 libspreadsheet.def: local.def
679         echo EXPORTS > $@ && \
680         cat $^ | sort >> $@
682 local.def: stamp-local.def
683         @true
685 stamp-local.def: $(libspreadsheet_include_HEADERS) Makefile $(top_srcdir)/tools/dumpdef.pl
686         hdrs='$(libspreadsheet_include_HEADERS) dialogs/dialogs.h dialogs/tool-dialogs.h tools/dao.h tools/goal-seek.h tools/analysis-tools.h tools/gnm-solver.h widgets/gnm-expr-entry.h'; \
687         hdrs_list=''; \
688         for hdr in $$hdrs; do \
689           if test -f $(srcdir)/$$hdr; then \
690             hdrs_list="$$hdrs_list $(srcdir)/$$hdr"; \
691           else \
692             hdrs_list="$$hdrs_list $$hdr"; \
693           fi; \
694         done; \
695         cat $(top_builddir)/gnumeric-config.h $$hdrs_list | \
696                 sed -e 's/^#[ \t]*include[ \t]\+.*$$//g' | \
697                 $(CPP) $(AM_CPPFLAGS) "-DGNM_VAR_DECL=__declspec(dllexport)" -P - > xgen-localdef.1 && \
698         perl $(top_srcdir)/tools/dumpdef.pl \
699                 xgen-localdef.1 > xgen-localdef.2 \
700         && (cmp -s xgen-localdef.2 local.def || \
701                 cp xgen-localdef.2 local.def) \
702         && rm -f xgen-localdef.1 xgen-localdef.2 \
703         && echo timestamp > $@
705 endif
708 # Rules for the marshalers code:
709 GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=gnm_
711 .list.h:
712         $(GENMARSHAL_COMMAND) --header $< >$@
714 .list.c:
715         (echo '/* This file has been automatically generated.  Do not edit. */' && \
716         echo '#include <$*.h>' && \
717         $(GENMARSHAL_COMMAND) --body $< ) >$@
719 # Depends on this Makefile, because it uses make variables.
720 gnumeric-paths.h: Makefile
721         @echo 'creating $@'
722         @( \
723         echo '/* This file has been automatically generated.  Do not edit. */'; \
724         echo ''; \
725         echo '#ifndef GNUMERIC_PATHS_H'; \
726         echo '#define GNUMERIC_PATHS_H'; \
727         echo ''; \
728         echo '#define GNUMERIC_PREFIX           "$(prefix)"'; \
729         echo '#define GNUMERIC_SYSCONFDIR       "$(sysconfdir)"'; \
730         echo '#define GNUMERIC_DATADIR          "$(gnumeric_datadir)"'; \
731         echo '#define GNUMERIC_LIBDIR           "$(gnumeric_libdir)"'; \
732         echo '#define GNUMERIC_ICONDIR          "$(gnumeric_icondir)"'; \
733         echo '#define GNUMERIC_LOCALEDIR        "$(gnumeric_localedir)"'; \
734         echo '#define GNUMERIC_EXTERNPLUGINDIR          "$(gnumeric_externplugindir)"'; \
735         echo ''; \
736         echo '#endif /* GNUMERIC_PATHS_H */'; \
737         ) >$@
739 update-gnumeric-conf:
740         make -C ${top_srcdir}/schemas
741         rm -f gnumeric-conf.c.tmp
742         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.c >gnumeric-conf.c.tmp
743         @PERL@ ${top_srcdir}/tools/handle-conf-options --cfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.c.tmp
744         if cmp gnumeric-conf.c gnumeric-conf.c.tmp; then \
745           rm gnumeric-conf.c.tmp; \
746         else \
747           mv gnumeric-conf.c.tmp gnumeric-conf.c; \
748         fi
749         rm -f gnumeric-conf.h.tmp
750         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.h >gnumeric-conf.h.tmp
751         @PERL@ ${top_srcdir}/tools/handle-conf-options --hfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.h.tmp
752         echo '' >>gnumeric-conf.h.tmp
753         @PERL@ -ne '$$p=1 if (/AUTOMATICALLY GENERATED CODE ABOVE/); print if $$p;' <gnumeric-conf.h >>gnumeric-conf.h.tmp
754         if cmp gnumeric-conf.h gnumeric-conf.h.tmp; then \
755           rm gnumeric-conf.h.tmp; \
756         else \
757           mv gnumeric-conf.h.tmp gnumeric-conf.h; \
758         fi
760 if WITH_NATIVE_WIN32
761 gnumeric_rc.o: gnumeric.rc ../gnumeric-config.h
762         $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir) -i $< -o $@
763 install-exec-hook:
764 else
765 install-exec-hook:
766         cd $(DESTDIR)$(bindir) && \
767         mv -f gnumeric$(EXEEXT) gnumeric-$(VERSION)$(EXEEXT) && \
768         $(LN_S) gnumeric-$(VERSION)$(EXEEXT) gnumeric$(EXEEXT)
769 endif
771 uninstall-hook:
772         -cd $(DESTDIR)$(bindir) && \
773         rm -f gnumeric-$(VERSION)$(EXEEXT)
775 # include conditional files to ensure everything gets distributed no matter
776 # what the build
777 EXTRA_DIST +=                                           \
778         gnm.gresource.xml                               \
779         pixmaps/line_pattern_dash_dot.png               \
780         pixmaps/line_pattern_dash_dot_dot.png           \
781         pixmaps/line_pattern_dashed.png                 \
782         pixmaps/line_pattern_dotted.png                 \
783         pixmaps/line_pattern_double.png                 \
784         pixmaps/line_pattern_hair.png                   \
785         pixmaps/line_pattern_medium.png                 \
786         pixmaps/line_pattern_medium_dash.png            \
787         pixmaps/line_pattern_medium_dash_dot.png        \
788         pixmaps/line_pattern_medium_dash_dot_dot.png    \
789         pixmaps/line_pattern_slant.png                  \
790         pixmaps/line_pattern_thick.png                  \
791         pixmaps/line_pattern_thin.png                   \
792         pixmaps/right-down.png                          \
793         pixmaps/down-right.png                          \
794         pixmaps/gnumeric_splash_1.4.png                 \
795         pixmaps/unknown_image.png                       \
796         pixmaps/sheet_move_marker.png                   \
797         gnumeric.css                                    \
798         gnm-marshalers.list                             \
799         README.gnm_float                                \
800         gnumeric.rc                                     \
801         GNOME_Gnumeric-gtk.xml                          \
802         $(resource_ui_files)
804 if HAVE_INTROSPECTION
806 INTROSPECTION_GIRS += Gnm-@GNUMERIC_API_VER@.gir
808 Gnm-@GNUMERIC_API_VER@.gir: $(INTROSPECTION_SCANNER) libspreadsheet.la Makefile
809 Gnm_@GNUMERIC_API_VER_@_gir_INCLUDES = GObject-2.0 Gio-2.0 libxml2-2.0 \
810                                                                            Gsf-1 GOffice-@GOFFICE_API_VER@
811 Gnm_@GNUMERIC_API_VER_@_gir_CFLAGS = $(AM_CPPFLAGS)
812 Gnm_@GNUMERIC_API_VER_@_gir_LIBS = libspreadsheet.la
813 Gnm_@GNUMERIC_API_VER_@_gir_FILES = \
814         $(libspreadsheet_la_SOURCES) \
815         $(libspreadsheet_include_HEADERS)
818 girdir = $(GIRDIR)
819 gir_DATA = $(INTROSPECTION_GIRS)
821 typelibsdir = $(TYPELIBDIR)
822 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
824 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
826 endif # HAVE_INTROSPECTION