Compilation: clean up dialog including.
[gnumeric.git] / src / Makefile.am
blobffb19ba3e0360eff281f50243ca1da82a66edc19
2 # Gnumeric's Makefile.am
3 # Author: Miguel de Icaza (miguel@kernel.org)
4 -include $(INTROSPECTION_MAKEFILE)
5 INTROSPECTION_GIRS =
6 INTROSPECTION_SCANNER_ARGS = \
7         --add-include-path="${INTROSPECTION_GIRDIR}" \
8         -v --warn-all --accept-unprefixed \
9         --identifier-prefix="Gnm"  --identifier-prefix="Gnumeric" \
10         -I$(top_builddir) \
11         -DGOFFICE_NAMESPACE_DISABLE
12 INTROSPECTION_COMPILER_ARGS = \
13         --includedir=$(srcdir) \
14         --includedir=. \
15         --includedir="${INTROSPECTION_GIRDIR}"
17 EXTRA_DIST =
19 lib_LTLIBRARIES = libspreadsheet.la
21 bin_PROGRAMS =
22 check_PROGRAMS =
23 noinst_PROGRAMS = sstest
25 noinst_HEADERS = dead-kittens.h compilation.h gnm-i18n.h
27 if WITH_GTK
28   bin_PROGRAMS += gnumeric
29 endif
31 bin_PROGRAMS += ssconvert ssindex ssgrep ssdiff
33 AM_CPPFLAGS =                                                           \
34         -I$(top_srcdir)                                                 \
35         -I$(srcdir)                                                     \
36         -I$(srcdir)/widgets                                             \
37         -I$(srcdir)/tools                                               \
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 dialogs_headers = \
208         dialogs/help.h                                          \
209         dialogs/dao-gui-utils.h                                 \
210         dialogs/dialog-stf.h                                    \
211         dialogs/dialog-stf-preview.h                            \
212         dialogs/dialog-stf-export.h                             \
213         dialogs/dialogs.h                                       \
214         dialogs/tool-dialogs.h
216 widgets_sources = \
217         widgets/gnm-dao.c                               \
218         widgets/gnm-fontbutton.c                        \
219         widgets/gnm-format-sel.c                        \
220         widgets/gnm-notebook.c                          \
221         widgets/gnm-radiobutton.c                       \
222         widgets/gnm-cell-combo-view.c                   \
223         widgets/gnm-filter-combo-view.c                 \
224         widgets/gnm-validation-combo-view.c             \
225         widgets/gnm-sheet-sel.c                         \
226         widgets/gnm-sheet-slicer-combo-view.c           \
227         widgets/gnm-so-anchor-mode-chooser.c            \
228         widgets/gnm-workbook-sel.c                      \
229         widgets/gnumeric-cell-renderer-text.c           \
230         widgets/gnumeric-cell-renderer-expr-entry.c     \
231         widgets/gnumeric-cell-renderer-toggle.c         \
232         widgets/gnumeric-dashed-canvas-line.c           \
233         widgets/gnumeric-expr-entry.c                   \
234         widgets/gnumeric-lazy-list.c                    \
235         widgets/gnumeric-text-view.c
237 widgets_headers = \
238         widgets/gnm-dao.h                               \
239         widgets/gnm-fontbutton.h                        \
240         widgets/gnm-format-sel.h                        \
241         widgets/gnm-notebook.h                          \
242         widgets/gnm-radiobutton.h                       \
243         widgets/gnm-cell-combo-view.h                   \
244         widgets/gnm-cell-combo-view-impl.h              \
245         widgets/gnm-filter-combo-view.h                 \
246         widgets/gnm-validation-combo-view.h             \
247         widgets/gnm-sheet-sel.h                         \
248         widgets/gnm-sheet-slicer-combo-view.h           \
249         widgets/gnm-so-anchor-mode-chooser.h            \
250         widgets/gnm-workbook-sel.h                      \
251         widgets/gnumeric-cell-renderer-text.h           \
252         widgets/gnumeric-cell-renderer-expr-entry.h     \
253         widgets/gnumeric-cell-renderer-toggle.h         \
254         widgets/gnumeric-dashed-canvas-line.h           \
255         widgets/gnumeric-expr-entry.h                   \
256         widgets/gnumeric-lazy-list.h                    \
257         widgets/gnumeric-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 tools_headers = \
288         tools/analysis-anova.h                  \
289         tools/analysis-auto-expression.h        \
290         tools/analysis-chi-squared.h            \
291         tools/analysis-exp-smoothing.h          \
292         tools/analysis-frequency.h              \
293         tools/analysis-histogram.h              \
294         tools/analysis-kaplan-meier.h           \
295         tools/analysis-normality.h              \
296         tools/analysis-one-mean-test.h          \
297         tools/analysis-principal-components.h   \
298         tools/analysis-sign-test.h              \
299         tools/analysis-signed-rank-test.h       \
300         tools/analysis-tools.h                  \
301         tools/analysis-wilcoxon-mann-whitney.h  \
302         tools/auto-correct.h                    \
303         tools/dao.h                             \
304         tools/data-shuffling.h                  \
305         tools/fill-series.h                     \
306         tools/filter.h                          \
307         tools/gnm-solver.h                      \
308         tools/goal-seek.h                       \
309         tools/random-generator-cor.h            \
310         tools/random-generator.h                \
311         tools/scenarios.h                       \
312         tools/simulation.h                      \
313         tools/tabulate.h                        \
314         tools/tools.h
317 # Another hint, see bugs #172211 and #172212:
318 non-intermediate: gnm-marshalers.c gnmresources.c
320 resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir) --generate-dependencies $(srcdir)/gnm.gresource.xml)
322 gnmresources.h: gnm.gresource.xml
323         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
324                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-header --manual-register
325 gnmresources.c: gnm.gresource.xml $(resource_files) Makefile
326         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
327                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-source --manual-register
330 CLEANFILES = $(BUILT_SOURCES)                   \
331         gnumeric.exe.a
333 libspreadsheet_la_CPPFLAGS = $(AM_CPPFLAGS) -DGNUMERIC_INTERNAL
334 libspreadsheet_la_LDFLAGS = -release $(VERSION)
335 libspreadsheet_la_LIBADD =                      \
336         $(GNUMERIC_LIBS)                        \
337         $(INTLLIBS)
339 libspreadsheet_la_SOURCES =             \
340         go-val.h                        \
341         go-val.c                        \
342         \
343         goffice-data.h                  \
344         go-data-cache-source.c          \
345         go-data-cache-source.h          \
346         go-data-cache-impl.h            \
347         go-data-cache.h                 \
348         go-data-cache.c                 \
349         go-data-cache-field-impl.h      \
350         go-data-cache-field.h           \
351         go-data-cache-field.c           \
352         go-data-slicer-impl.h           \
353         go-data-slicer.h                \
354         go-data-slicer.c                \
355         go-data-slicer-field-impl.h     \
356         go-data-slicer-field.h          \
357         go-data-slicer-field.c          \
358         \
359         gnm-data-cache-source.h         \
360         gnm-data-cache-source.c         \
361         gnm-sheet-slicer.h              \
362         gnm-sheet-slicer.c              \
363         gnm-sheet-slicer-combo.h        \
364         gnm-sheet-slicer-combo.c        \
365         \
366         gnm-cell-combo.h                \
367         gnm-cell-combo.c                \
368         \
369         gnm-marshalers.c                        \
370         application.c                           \
371         auto-format.c                           \
372         cell-draw.c                             \
373         cell.c                                  \
374         cellspan.c                              \
375         clipboard.c                             \
376         cmd-edit.c                              \
377         collect.c                               \
378         colrow.c                                \
379         command-context-stderr.c                \
380         command-context.c                       \
381         commands.c                              \
382         complete-sheet.c                        \
383         complete.c                              \
384         complex.c                               \
385         consolidate.c                           \
386         criteria.c                              \
387         dependent.c                             \
388         expr-deriv.c                            \
389         expr-name.c                             \
390         expr.c                                  \
391         file-autoft.c                           \
392         format-template.c                       \
393         func-builtin.c                          \
394         func.c                                  \
395         gnm-commands-slicer.c                   \
396         gnm-datetime.c                          \
397         gnm-format.c                            \
398         gnm-graph-window.c                      \
399         gnm-pane-impl.h                         \
400         gnm-pane.c                              \
401         gnm-plugin.c                            \
402         gnm-random.c                            \
403         gnm-so-filled.c                         \
404         gnm-so-line.c                           \
405         gnm-so-path.c                           \
406         gnm-so-polygon.c                        \
407         gnumeric-conf.c                         \
408         gnumeric-simple-canvas.c                \
409         graph.c                                 \
410         gui-clipboard.c                         \
411         gui-file.c                              \
412         gui-util.c                              \
413         gutils.c                                \
414         history.c                               \
415         hlink.c                                 \
416         input-msg.c                             \
417         item-bar.c                              \
418         item-cursor.c                           \
419         item-edit.c                             \
420         item-grid.c                             \
421         libgnumeric.c                           \
422         mathfunc.c                              \
423         mstyle.c                                \
424         number-match.c                          \
425         outoflinedocs.c                         \
426         parse-util.c                            \
427         parser.y                                \
428         pattern.c                               \
429         position.c                              \
430         preview-grid-impl.h                     \
431         preview-grid.c                          \
432         print-cell.c                            \
433         print-info.c                            \
434         print.c                                 \
435         rangefunc-strings.c                     \
436         rangefunc.c                             \
437         ranges.c                                \
438         rendered-value.c                        \
439         search.c                                \
440         selection.c                             \
441         session.c                               \
442         sf-bessel.c                             \
443         sf-dpq.c                                \
444         sf-gamma.c                              \
445         sf-trig.c                               \
446         sheet-autofill.c                        \
447         sheet-control-gui.c                     \
448         sheet-control.c                         \
449         sheet-diff.c                            \
450         sheet-filter.c                          \
451         sheet-merge.c                           \
452         sheet-object-cell-comment.c             \
453         sheet-object-component.c                \
454         sheet-object-graph.c                    \
455         sheet-object-image.c                    \
456         sheet-object-widget.c                   \
457         sheet-object.c                          \
458         sheet-style.c                           \
459         sheet-utils.c                           \
460         sheet-view.c                            \
461         sheet.c                                 \
462         sort.c                                  \
463         stf-export.c                            \
464         stf-parse.c                             \
465         stf.c                                   \
466         style-border.c                          \
467         style-color.c                           \
468         style-conditions.c                      \
469         style.c                                 \
470         undo.c                                  \
471         validation.c                            \
472         value-sheet.c                           \
473         value.c                                 \
474         wbc-gtk-actions.c                       \
475         wbc-gtk-edit.c                          \
476         wbc-gtk.c                               \
477         workbook-cmd-format.c                   \
478         workbook-control.c                      \
479         workbook-view.c                         \
480         workbook.c                              \
481         xml-sax-read.c                          \
482         xml-sax-write.c                         \
483         $(dialogs_sources)                      \
484         $(tools_sources)
486 if WITH_GTK
487   libspreadsheet_la_SOURCES += $(widgets_sources)
488 else
489   EXTRA_DIST += $(widgets_sources)
490 endif
492 nodist_libspreadsheet_la_SOURCES = gnmresources.c gnmresources.h
494 # When we switch to subversion fix this to nest as
495 # libspreadsheet-ver/spreadsheet/header
496 # doing it now would require massive cvs surgery.
497 libspreadsheet_includedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
498 libspreadsheet_include_HEADERS =                \
499         application.h                           \
500         auto-format.h                           \
501         cell-draw.h                             \
502         cell.h                                  \
503         cellspan.h                              \
504         clipboard.h                             \
505         cmd-edit.h                              \
506         collect.h                               \
507         colrow.h                                \
508         command-context-stderr.h                \
509         command-context.h                       \
510         commands.h                              \
511         complete-sheet.h                        \
512         complete.h                              \
513         complex.h                               \
514         consolidate.h                           \
515         criteria.h                              \
516         dependent.h                             \
517         expr-deriv.h                            \
518         expr-impl.h                             \
519         expr-name.h                             \
520         expr.h                                  \
521         file-autoft.h                           \
522         format-template.h                       \
523         func-builtin.h                          \
524         func.h                                  \
525         gnm-command-impl.h                      \
526         gnm-commands-slicer.h                   \
527         gnm-data-cache-source.h                 \
528         gnm-datetime.h                          \
529         gnm-format.h                            \
530         gnm-graph-window.h                      \
531         gnm-pane.h                              \
532         gnm-plugin.h                            \
533         gnm-random.h                            \
534         gnm-sheet-slicer.h                      \
535         gnm-so-filled.h                         \
536         gnm-so-line.h                           \
537         gnm-so-path.h                           \
538         gnm-so-polygon.h                        \
539         gnumeric-conf.h                         \
540         gnumeric-fwd.h                          \
541         gnumeric-simple-canvas.h                \
542         gnumeric.h                              \
543         go-data-cache-field.h                   \
544         go-data-cache-source.h                  \
545         go-data-cache.h                         \
546         go-data-slicer-field.h                  \
547         go-data-slicer.h                        \
548         go-val.h                                \
549         graph.h                                 \
550         gui-clipboard.h                         \
551         gui-file.h                              \
552         gui-util.h                              \
553         gutils.h                                \
554         history.h                               \
555         hlink-impl.h                            \
556         hlink.h                                 \
557         input-msg.h                             \
558         item-bar.h                              \
559         item-cursor.h                           \
560         item-edit.h                             \
561         item-grid.h                             \
562         libgnumeric.h                           \
563         mathfunc.h                              \
564         mstyle.h                                \
565         number-match.h                          \
566         numbers.h                               \
567         parse-util.h                            \
568         pattern.h                               \
569         position.h                              \
570         preview-grid.h                          \
571         print-cell.h                            \
572         print-info.h                            \
573         print.h                                 \
574         rangefunc-strings.h                     \
575         rangefunc.h                             \
576         ranges.h                                \
577         regression.h                            \
578         rendered-value.h                        \
579         search.h                                \
580         selection.h                             \
581         session.h                               \
582         sf-bessel.h                             \
583         sf-dpq.h                                \
584         sf-gamma.h                              \
585         sf-trig.h                               \
586         sheet-autofill.h                        \
587         sheet-control-gui-priv.h                \
588         sheet-control-gui.h                     \
589         sheet-control-priv.h                    \
590         sheet-control.h                         \
591         sheet-diff.h                            \
592         sheet-filter-combo.h                    \
593         sheet-filter.h                          \
594         sheet-merge.h                           \
595         sheet-object-cell-comment.h             \
596         sheet-object-component.h                \
597         sheet-object-graph.h                    \
598         sheet-object-image.h                    \
599         sheet-object-impl.h                     \
600         sheet-object-widget-impl.h              \
601         sheet-object-widget.h                   \
602         sheet-object.h                          \
603         sheet-private.h                         \
604         sheet-style.h                           \
605         sheet-utils.h                           \
606         sheet-view.h                            \
607         sheet.h                                 \
608         sort.h                                  \
609         stf-export.h                            \
610         stf-parse.h                             \
611         stf.h                                   \
612         style-border.h                          \
613         style-color.h                           \
614         style-conditions.h                      \
615         style-font.h                            \
616         style.h                                 \
617         undo.h                                  \
618         validation-combo.h                      \
619         validation.h                            \
620         value.h                                 \
621         wbc-gtk-impl.h                          \
622         wbc-gtk.h                               \
623         workbook-cmd-format.h                   \
624         workbook-control-priv.h                 \
625         workbook-control.h                      \
626         workbook-priv.h                         \
627         workbook-view.h                         \
628         workbook.h                              \
629         xml-io-version.h                        \
630         xml-sax.h                               \
631         $(dialogs_headers)                      \
632         $(tools_headers)                        \
633         $(widgets_headers)
635 gnumeric_SOURCES =                              \
636         io-context-gtk.c                        \
637         io-context-gtk.h                        \
638         main-application.c
640 gnumeric_LDADD =                                \
641         libspreadsheet.la                       \
642         $(GNUMERIC_LIBS)                        \
643         $(INTLLIBS)
644 gnumeric_LDFLAGS = -export-dynamic
646 ssconvert_LDADD   = $(gnumeric_LDADD)
647 ssconvert_LDFLAGS = -export-dynamic
648 ssconvert_SOURCES =                             \
649         ssconvert.c
650 ssindex_LDADD   = $(gnumeric_LDADD)
651 ssindex_LDFLAGS = -export-dynamic
652 ssindex_SOURCES =                               \
653         ssindex.c
654 ssgrep_LDADD   = $(gnumeric_LDADD)
655 ssgrep_LDFLAGS = -export-dynamic
656 ssgrep_SOURCES =                                \
657         ssgrep.c
658 sstest_LDADD   = $(gnumeric_LDADD)
659 sstest_LDFLAGS = -export-dynamic
660 sstest_SOURCES =                                \
661         sstest.c
662 ssdiff_LDADD   = $(gnumeric_LDADD)
663 ssdiff_LDFLAGS = -export-dynamic
664 ssdiff_SOURCES =                                \
665         ssdiff.c
667 if WITH_NATIVE_WIN32
668     gnumeric_LDADD += gnumeric_rc.o
669     gnumeric_LDFLAGS    += -mwindows -Wl,--stack,0x4000000
670     ssconvert_LDFLAGS   += -mconsole -Wl,--stack,0x4000000
671     ssindex_LDFLAGS     += -mconsole
672     ssgrep_LDFLAGS      += -mconsole
674     libspreadsheet_la_DEPENDENCIES = libspreadsheet.def
675     libspreadsheet_la_LDFLAGS += -no-undefined -export-symbols libspreadsheet.def
676 endif
678 if WITH_WIN32
679 libspreadsheet.def: local.def
680         echo EXPORTS > $@ && \
681         cat $^ | sort >> $@
683 local.def: stamp-local.def
684         @true
686 stamp-local.def: $(libspreadsheet_include_HEADERS) Makefile $(top_srcdir)/tools/dumpdef.pl
687         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/gnumeric-expr-entry.h'; \
688         hdrs_list=''; \
689         for hdr in $$hdrs; do \
690           if test -f $(srcdir)/$$hdr; then \
691             hdrs_list="$$hdrs_list $(srcdir)/$$hdr"; \
692           else \
693             hdrs_list="$$hdrs_list $$hdr"; \
694           fi; \
695         done; \
696         cat $(top_builddir)/gnumeric-config.h $$hdrs_list | \
697                 sed -e 's/^#[ \t]*include[ \t]\+.*$$//g' | \
698                 $(CPP) $(AM_CPPFLAGS) "-DGNM_VAR_DECL=__declspec(dllexport)" -P - > xgen-localdef.1 && \
699         perl $(top_srcdir)/tools/dumpdef.pl \
700                 xgen-localdef.1 > xgen-localdef.2 \
701         && (cmp -s xgen-localdef.2 local.def || \
702                 cp xgen-localdef.2 local.def) \
703         && rm -f xgen-localdef.1 xgen-localdef.2 \
704         && echo timestamp > $@
706 endif
709 # Rules for the marshalers code:
710 GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=gnm_
712 .list.h:
713         $(GENMARSHAL_COMMAND) --header $< >$@
715 .list.c:
716         (echo '/* This file has been automatically generated.  Do not edit. */' && \
717         echo '#include "$*.h"' && \
718         $(GENMARSHAL_COMMAND) --body $< ) >$@
720 # Depends on this Makefile, because it uses make variables.
721 gnumeric-paths.h: Makefile
722         @echo 'creating $@'
723         @( \
724         echo '/* This file has been automatically generated.  Do not edit. */'; \
725         echo ''; \
726         echo '#ifndef GNUMERIC_PATHS_H'; \
727         echo '#define GNUMERIC_PATHS_H'; \
728         echo ''; \
729         echo '#define GNUMERIC_PREFIX           "$(prefix)"'; \
730         echo '#define GNUMERIC_SYSCONFDIR       "$(sysconfdir)"'; \
731         echo '#define GNUMERIC_DATADIR          "$(gnumeric_datadir)"'; \
732         echo '#define GNUMERIC_LIBDIR           "$(gnumeric_libdir)"'; \
733         echo '#define GNUMERIC_ICONDIR          "$(gnumeric_icondir)"'; \
734         echo '#define GNUMERIC_LOCALEDIR        "$(gnumeric_localedir)"'; \
735         echo '#define GNUMERIC_EXTERNPLUGINDIR          "$(gnumeric_externplugindir)"'; \
736         echo ''; \
737         echo '#endif /* GNUMERIC_PATHS_H */'; \
738         ) >$@
740 update-gnumeric-conf:
741         make -C ${top_srcdir}/schemas
742         rm -f gnumeric-conf.c.tmp
743         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.c >gnumeric-conf.c.tmp
744         @PERL@ ${top_srcdir}/tools/handle-conf-options --cfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.c.tmp
745         if cmp gnumeric-conf.c gnumeric-conf.c.tmp; then \
746           rm gnumeric-conf.c.tmp; \
747         else \
748           mv gnumeric-conf.c.tmp gnumeric-conf.c; \
749         fi
750         rm -f gnumeric-conf.h.tmp
751         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.h >gnumeric-conf.h.tmp
752         @PERL@ ${top_srcdir}/tools/handle-conf-options --hfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.h.tmp
753         echo '' >>gnumeric-conf.h.tmp
754         @PERL@ -ne '$$p=1 if (/AUTOMATICALLY GENERATED CODE ABOVE/); print if $$p;' <gnumeric-conf.h >>gnumeric-conf.h.tmp
755         if cmp gnumeric-conf.h gnumeric-conf.h.tmp; then \
756           rm gnumeric-conf.h.tmp; \
757         else \
758           mv gnumeric-conf.h.tmp gnumeric-conf.h; \
759         fi
761 if WITH_NATIVE_WIN32
762 gnumeric_rc.o: gnumeric.rc ../gnumeric-config.h
763         $(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 $@
764 install-exec-hook:
765 else
766 install-exec-hook:
767         cd $(DESTDIR)$(bindir) && \
768         mv -f gnumeric$(EXEEXT) gnumeric-$(VERSION)$(EXEEXT) && \
769         $(LN_S) gnumeric-$(VERSION)$(EXEEXT) gnumeric$(EXEEXT)
770 endif
772 uninstall-hook:
773         -cd $(DESTDIR)$(bindir) && \
774         rm -f gnumeric-$(VERSION)$(EXEEXT)
776 # include conditional files to ensure everything gets distributed no matter
777 # what the build
778 EXTRA_DIST +=                                           \
779         gnm.gresource.xml                               \
780         pixmaps/line_pattern_dash_dot.png               \
781         pixmaps/line_pattern_dash_dot_dot.png           \
782         pixmaps/line_pattern_dashed.png                 \
783         pixmaps/line_pattern_dotted.png                 \
784         pixmaps/line_pattern_double.png                 \
785         pixmaps/line_pattern_hair.png                   \
786         pixmaps/line_pattern_medium.png                 \
787         pixmaps/line_pattern_medium_dash.png            \
788         pixmaps/line_pattern_medium_dash_dot.png        \
789         pixmaps/line_pattern_medium_dash_dot_dot.png    \
790         pixmaps/line_pattern_slant.png                  \
791         pixmaps/line_pattern_thick.png                  \
792         pixmaps/line_pattern_thin.png                   \
793         pixmaps/right-down.png                          \
794         pixmaps/down-right.png                          \
795         pixmaps/gnumeric_splash_1.4.png                 \
796         pixmaps/unknown_image.png                       \
797         pixmaps/sheet_move_marker.png                   \
798         gnumeric.css                                    \
799         gnm-marshalers.list                             \
800         README.gnm_float                                \
801         gnumeric.rc                                     \
802         GNOME_Gnumeric-gtk.xml                          \
803         $(resource_ui_files)
805 if HAVE_INTROSPECTION
807 INTROSPECTION_GIRS += Gnm-@GNUMERIC_API_VER@.gir
809 Gnm-@GNUMERIC_API_VER@.gir: $(INTROSPECTION_SCANNER) libspreadsheet.la Makefile
810 Gnm_@GNUMERIC_API_VER_@_gir_INCLUDES = GObject-2.0 Gio-2.0 libxml2-2.0 \
811                                                                            Gsf-1 GOffice-@GOFFICE_API_VER@
812 Gnm_@GNUMERIC_API_VER_@_gir_CFLAGS = $(AM_CPPFLAGS)
813 Gnm_@GNUMERIC_API_VER_@_gir_LIBS = libspreadsheet.la
814 Gnm_@GNUMERIC_API_VER_@_gir_FILES = \
815         $(libspreadsheet_la_SOURCES) \
816         $(libspreadsheet_include_HEADERS)
819 girdir = $(GIRDIR)
820 gir_DATA = $(INTROSPECTION_GIRS)
822 typelibsdir = $(TYPELIBDIR)
823 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
825 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
827 endif # HAVE_INTROSPECTION