Makefile.am 22 KB
Newer Older
1
#
2
# Gnumeric's Makefile.am
3
# Author: Miguel de Icaza (miguel@kernel.org)
4 5 6
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
7
	--add-include-path="${INTROSPECTION_GIRDIR}" \
8 9
	-v --warn-all --accept-unprefixed \
	--identifier-prefix="Gnm"  --identifier-prefix="Gnumeric" \
10
	-I$(top_builddir) \
11
	-DGOFFICE_NAMESPACE_DISABLE
12 13
INTROSPECTION_COMPILER_ARGS = \
	--includedir=$(srcdir) \
14 15
	--includedir=. \
	--includedir="${INTROSPECTION_GIRDIR}"
Arturo Espinosa's avatar
Arturo Espinosa committed
16

17 18
EXTRA_DIST =

19
lib_LTLIBRARIES = libspreadsheet.la
20

Morten Welinder's avatar
Morten Welinder committed
21
bin_PROGRAMS =
Jody Goldberg's avatar
Jody Goldberg committed
22
check_PROGRAMS =
23
noinst_PROGRAMS = sstest
24

25
noinst_HEADERS = dead-kittens.h compilation.h gnm-i18n.h
26

27
if WITH_GTK
28
  bin_PROGRAMS += gnumeric
29 30
endif

31
bin_PROGRAMS += ssconvert ssindex ssgrep ssdiff
Arturo Espinosa's avatar
Arturo Espinosa committed
32

33
AM_CPPFLAGS = 								\
Jody Goldberg's avatar
Jody Goldberg committed
34 35
	-I$(top_srcdir)							\
	-I$(srcdir)							\
36
	-I$(srcdir)/widgets						\
37
	$(GNUMERIC_CFLAGS)
Arturo Espinosa's avatar
Arturo Espinosa committed
38

39
# A hint is needed to build these headers first:
40
BUILT_SOURCES =					\
41
	gnm-marshalers.c			\
Jody Goldberg's avatar
Jody Goldberg committed
42
	gnm-marshalers.h			\
43 44
	gnmresources.c				\
	gnmresources.h				\
45
	gnumeric-paths.h
46

47 48
# These also need to occur in gnm.gresource.xml
resource_ui_files =				\
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
	dialogs/advanced-filter.ui		\
	dialogs/anova-one.ui			\
	dialogs/anova-two.ui			\
	dialogs/autofilter-expression.ui	\
	dialogs/autofilter-top10.ui		\
	dialogs/autoformat.ui			\
	dialogs/autosave.ui			\
	dialogs/cell-comment.ui			\
	dialogs/cell-format-cond.ui		\
	dialogs/cell-format.ui			\
	dialogs/cell-sort.ui			\
	dialogs/chi-squared.ui			\
	dialogs/col-width.ui			\
	dialogs/colrow.ui			\
	dialogs/consolidate.ui			\
	dialogs/correlation.ui			\
	dialogs/covariance.ui			\
	dialogs/dao.ui				\
	dialogs/data-slicer.ui			\
	dialogs/data-table.ui			\
	dialogs/define-name.ui			\
	dialogs/delete-cells.ui			\
	dialogs/descriptive-stats.ui		\
	dialogs/dialog-stf-export.ui		\
	dialogs/dialog-stf.ui			\
	dialogs/dialog-zoom.ui			\
	dialogs/doc-meta-data.ui		\
	dialogs/exp-smoothing.ui		\
	dialogs/fill-series.ui			\
	dialogs/formula-guru.ui			\
	dialogs/fourier-analysis.ui		\
	dialogs/frequency.ui			\
	dialogs/function-select.ui		\
	dialogs/goalseek.ui			\
	dialogs/goto.ui				\
	dialogs/hf-config.ui			\
	dialogs/hf-dt-format.ui			\
	dialogs/histogram.ui			\
	dialogs/hyperlink.ui			\
	dialogs/insert-cells.ui			\
	dialogs/kaplan-meier.ui			\
	dialogs/mean-tests.ui			\
	dialogs/merge.ui			\
	dialogs/moving-averages.ui		\
	dialogs/normality-tests.ui		\
	dialogs/one-mean-test.ui		\
	dialogs/paste-special.ui		\
	dialogs/plugin-manager.ui		\
	dialogs/preferences.ui			\
	dialogs/principal-components.ui		\
	dialogs/print.ui			\
	dialogs/quit.ui				\
	dialogs/random-generation-cor.ui	\
	dialogs/random-generation.ui		\
	dialogs/rank.ui				\
	dialogs/recent.ui			\
	dialogs/regression.ui			\
	dialogs/row-height.ui			\
	dialogs/sampling.ui			\
	dialogs/scenario-add.ui			\
	dialogs/scenario-manager.ui		\
	dialogs/search-replace.ui		\
	dialogs/search.ui			\
	dialogs/sheet-compare.ui		\
	dialogs/sheet-order.ui			\
	dialogs/sheet-rename.ui			\
	dialogs/sheet-resize.ui			\
	dialogs/sheetobject-size.ui		\
	dialogs/shuffle.ui			\
	dialogs/sign-test-two.ui		\
	dialogs/sign-test.ui			\
	dialogs/simulation.ui			\
	dialogs/so-button.ui			\
	dialogs/so-checkbox.ui			\
	dialogs/so-frame.ui			\
	dialogs/so-list.ui			\
	dialogs/so-radiobutton.ui		\
	dialogs/so-scrollbar.ui			\
	dialogs/solver.ui			\
	dialogs/tabulate.ui			\
	dialogs/variance-tests.ui		\
	dialogs/view.ui				\
	dialogs/wbcg.ui				\
	dialogs/wilcoxon-mann-whitney.ui	\
	dialogs/workbook-attr.ui
134

135
dialogs_sources = 						\
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
	dialogs/dao-gui-utils.c					\
	dialogs/dialog-about.c					\
	dialogs/dialog-advanced-filter.c			\
	dialogs/dialog-analysis-tools.c				\
	dialogs/dialog-analysis-tool-chi-squared.c		\
	dialogs/dialog-analysis-tool-frequency.c		\
	dialogs/dialog-analysis-tool-kaplan-meier.c		\
	dialogs/dialog-analysis-tool-normality.c		\
	dialogs/dialog-analysis-tool-one-mean.c			\
	dialogs/dialog-analysis-tool-principal-components.c	\
	dialogs/dialog-analysis-tool-sign-test.c		\
	dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c	\
	dialogs/dialog-autofilter.c				\
	dialogs/dialog-autoformat.c				\
	dialogs/dialog-autosave.c				\
	dialogs/dialog-cell-comment.c				\
	dialogs/dialog-cell-format.c				\
	dialogs/dialog-cell-format-cond.c			\
	dialogs/dialog-cell-sort.c				\
	dialogs/dialog-col-width.c				\
	dialogs/dialog-col-row.c				\
	dialogs/dialog-consolidate.c				\
	dialogs/dialog-data-slicer.c				\
	dialogs/dialog-data-table.c				\
	dialogs/dialog-fill-series.c				\
	dialogs/dialog-function-select.c			\
	dialogs/dialog-formula-guru.c				\
	dialogs/dialog-goal-seek.c				\
	dialogs/dialog-goto-cell.c				\
	dialogs/dialog-hyperlink.c				\
	dialogs/dialog-insert-cells.c				\
	dialogs/dialog-define-names.c				\
	dialogs/dialog-delete-cells.c				\
	dialogs/dialog-merge.c					\
	dialogs/dialog-password.c				\
	dialogs/dialog-paste-special.c				\
	dialogs/dialog-plugin-manager.c				\
	dialogs/dialog-preferences.c				\
	dialogs/dialog-random-generator.c			\
	dialogs/dialog-random-generator-cor.c			\
	dialogs/dialog-recent.c					\
	dialogs/dialog-row-height.c				\
	dialogs/dialog-quit.c					\
	dialogs/dialog-scenarios.c				\
	dialogs/dialog-search.c					\
	dialogs/dialog-search-replace.c				\
	dialogs/dialog-sheet-compare.c				\
	dialogs/dialog-sheet-order.c				\
	dialogs/dialog-sheet-rename.c				\
	dialogs/dialog-sheet-resize.c				\
	dialogs/dialog-sheetobject-size.c			\
	dialogs/dialog-shuffle.c				\
	dialogs/dialog-simulation.c				\
	dialogs/dialog-so-list.c				\
	dialogs/dialog-so-styled.c				\
	dialogs/dialog-solver.c					\
	dialogs/dialog-stf.c					\
	dialogs/dialog-stf-main-page.c				\
	dialogs/dialog-stf-csv-page.c				\
	dialogs/dialog-stf-fixed-page.c				\
	dialogs/dialog-stf-format-page.c			\
	dialogs/dialog-stf-preview.c				\
	dialogs/dialog-stf-export.c				\
	dialogs/dialog-tabulate.c				\
	dialogs/dialog-doc-metadata.c				\
	dialogs/dialog-view.c					\
	dialogs/dialog-workbook-attr.c				\
	dialogs/dialog-zoom.c					\
	dialogs/dialog-printer-setup.c

206
dialogs_headers = \
207 208 209 210 211 212 213 214
	dialogs/help.h						\
	dialogs/dao-gui-utils.h					\
	dialogs/dialog-stf.h					\
	dialogs/dialog-stf-preview.h				\
	dialogs/dialog-stf-export.h				\
	dialogs/dialogs.h					\
	dialogs/tool-dialogs.h

215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
widgets_sources = \
	widgets/gnm-dao.c				\
	widgets/gnm-fontbutton.c			\
	widgets/gnm-format-sel.c			\
	widgets/gnm-notebook.c				\
	widgets/gnm-radiobutton.c			\
	widgets/gnm-cell-combo-view.c			\
	widgets/gnm-filter-combo-view.c			\
	widgets/gnm-validation-combo-view.c		\
	widgets/gnm-sheet-sel.c				\
	widgets/gnm-sheet-slicer-combo-view.c		\
	widgets/gnm-so-anchor-mode-chooser.c		\
	widgets/gnm-workbook-sel.c			\
	widgets/gnumeric-cell-renderer-text.c		\
	widgets/gnumeric-cell-renderer-expr-entry.c	\
	widgets/gnumeric-cell-renderer-toggle.c		\
	widgets/gnumeric-dashed-canvas-line.c		\
	widgets/gnumeric-expr-entry.c			\
	widgets/gnumeric-lazy-list.c			\
	widgets/gnumeric-text-view.c

widgets_headers = \
	widgets/gnm-dao.h				\
	widgets/gnm-fontbutton.h			\
	widgets/gnm-format-sel.h			\
	widgets/gnm-notebook.h				\
	widgets/gnm-radiobutton.h			\
	widgets/gnm-cell-combo-view.h			\
	widgets/gnm-cell-combo-view-impl.h		\
	widgets/gnm-filter-combo-view.h			\
	widgets/gnm-validation-combo-view.h		\
	widgets/gnm-sheet-sel.h				\
	widgets/gnm-sheet-slicer-combo-view.h		\
	widgets/gnm-so-anchor-mode-chooser.h		\
	widgets/gnm-workbook-sel.h			\
	widgets/gnumeric-cell-renderer-text.h		\
	widgets/gnumeric-cell-renderer-expr-entry.h	\
	widgets/gnumeric-cell-renderer-toggle.h		\
	widgets/gnumeric-dashed-canvas-line.h		\
	widgets/gnumeric-expr-entry.h			\
	widgets/gnumeric-lazy-list.h			\
	widgets/gnumeric-text-view.h

258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
tools_sources =	\
	tools/analysis-anova.c			\
	tools/analysis-auto-expression.c	\
	tools/analysis-chi-squared.c		\
	tools/analysis-exp-smoothing.c		\
	tools/analysis-frequency.c		\
	tools/analysis-histogram.c		\
	tools/analysis-kaplan-meier.c		\
	tools/analysis-normality.c		\
	tools/analysis-one-mean-test.c		\
	tools/analysis-principal-components.c	\
	tools/analysis-sign-test.c		\
	tools/analysis-signed-rank-test.c	\
	tools/analysis-tools.c			\
	tools/analysis-wilcoxon-mann-whitney.c	\
	tools/auto-correct.c			\
	tools/dao.c				\
	tools/data-shuffling.c			\
	tools/fill-series.c			\
	tools/filter.c				\
	tools/gnm-solver.c			\
	tools/goal-seek.c			\
	tools/random-generator-cor.c		\
	tools/random-generator.c		\
	tools/scenarios.c			\
	tools/simulation.c			\
	tools/tabulate.c

tools_headers = \
	tools/analysis-anova.h			\
	tools/analysis-auto-expression.h	\
	tools/analysis-chi-squared.h		\
	tools/analysis-exp-smoothing.h		\
	tools/analysis-frequency.h		\
	tools/analysis-histogram.h		\
	tools/analysis-kaplan-meier.h		\
	tools/analysis-normality.h		\
	tools/analysis-one-mean-test.h		\
	tools/analysis-principal-components.h	\
	tools/analysis-sign-test.h		\
	tools/analysis-signed-rank-test.h	\
	tools/analysis-tools.h			\
	tools/analysis-wilcoxon-mann-whitney.h	\
	tools/auto-correct.h			\
	tools/dao.h				\
	tools/data-shuffling.h			\
	tools/fill-series.h			\
	tools/filter.h				\
	tools/gnm-solver.h			\
	tools/goal-seek.h			\
	tools/random-generator-cor.h		\
	tools/random-generator.h		\
	tools/scenarios.h			\
	tools/simulation.h			\
	tools/tabulate.h			\
	tools/tools.h

315

316
# Another hint, see bugs #172211 and #172212:
317
non-intermediate: gnm-marshalers.c gnmresources.c
318 319 320 321 322 323 324 325 326 327

resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir) --generate-dependencies $(srcdir)/gnm.gresource.xml)

gnmresources.h: gnm.gresource.xml
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
		--target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-header --manual-register
gnmresources.c: gnm.gresource.xml $(resource_files) Makefile
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
		--target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-source --manual-register

328

329 330 331
CLEANFILES = $(BUILT_SOURCES)			\
	gnumeric.exe.a

332
libspreadsheet_la_CPPFLAGS = $(AM_CPPFLAGS) -DGNUMERIC_INTERNAL
333 334 335
libspreadsheet_la_LDFLAGS = -release $(VERSION)
libspreadsheet_la_LIBADD = 			\
	$(GNUMERIC_LIBS)			\
336
	$(INTLLIBS)
337

338
libspreadsheet_la_SOURCES =		\
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
	go-val.h			\
	go-val.c			\
	\
	goffice-data.h 			\
	go-data-cache-source.c 		\
	go-data-cache-source.h 		\
	go-data-cache-impl.h 		\
	go-data-cache.h 		\
	go-data-cache.c 		\
	go-data-cache-field-impl.h 	\
	go-data-cache-field.h 		\
	go-data-cache-field.c 		\
	go-data-slicer-impl.h 		\
	go-data-slicer.h 		\
	go-data-slicer.c 		\
	go-data-slicer-field-impl.h 	\
	go-data-slicer-field.h 		\
	go-data-slicer-field.c 		\
	\
	gnm-data-cache-source.h 	\
	gnm-data-cache-source.c 	\
	gnm-sheet-slicer.h 		\
	gnm-sheet-slicer.c 		\
	gnm-sheet-slicer-combo.h	\
	gnm-sheet-slicer-combo.c	\
	\
	gnm-cell-combo.h		\
	gnm-cell-combo.c		\
	\
368
	gnm-marshalers.c			\
369
	application.c				\
Morten Welinder's avatar
Morten Welinder committed
370
	auto-format.c				\
371
	cell-draw.c				\
372
	cell.c					\
373 374
	cellspan.c				\
	clipboard.c				\
Jody Goldberg's avatar
Jody Goldberg committed
375
	cmd-edit.c				\
376
	collect.c				\
377
	colrow.c				\
Stepan Kasal's avatar
Stepan Kasal committed
378
	command-context-stderr.c		\
379
	command-context.c			\
Jody Goldberg's avatar
Jody Goldberg committed
380
	commands.c				\
381
	complete-sheet.c			\
382
	complete.c				\
383
	complex.c				\
Stepan Kasal's avatar
Stepan Kasal committed
384
	consolidate.c				\
385
	criteria.c				\
386
	dependent.c				\
387
	expr-deriv.c				\
388
	expr-name.c				\
389
	expr.c					\
390 391 392
	file-autoft.c				\
	format-template.c			\
	func-builtin.c				\
393
	func.c					\
394
	gnm-commands-slicer.c			\
395
	gnm-datetime.c				\
396
	gnm-format.c				\
397
	gnm-graph-window.c			\
398
	gnm-pane-impl.h				\
399 400
	gnm-pane.c				\
	gnm-plugin.c				\
401
	gnm-random.c				\
402 403 404 405 406
	gnm-so-filled.c				\
	gnm-so-line.c				\
	gnm-so-path.c				\
	gnm-so-polygon.c			\
	gnumeric-conf.c				\
407 408 409 410 411
	gnumeric-simple-canvas.c		\
	graph.c					\
	gui-clipboard.c				\
	gui-file.c				\
	gui-util.c				\
412
	gutils.c				\
413
	history.c				\
414
	hlink.c					\
415 416 417 418 419 420 421 422 423
	input-msg.c				\
	item-bar.c				\
	item-cursor.c				\
	item-edit.c				\
	item-grid.c				\
	libgnumeric.c				\
	mathfunc.c				\
	mstyle.c				\
	number-match.c				\
424
	outoflinedocs.c				\
425
	parse-util.c				\
426
	parser.y				\
427 428
	pattern.c				\
	position.c				\
429
	preview-grid-impl.h			\
430 431
	preview-grid.c				\
	print-cell.c				\
432
	print-info.c				\
433
	print.c					\
434
	rangefunc-strings.c			\
435
	rangefunc.c				\
436 437 438 439 440
	ranges.c				\
	rendered-value.c			\
	search.c				\
	selection.c				\
	session.c				\
441
	sf-bessel.c				\
442
	sf-dpq.c				\
443
	sf-gamma.c				\
444
	sf-trig.c				\
445
	sheet-autofill.c			\
446 447 448
	sheet-control-gui.c			\
	sheet-control.c		  		\
	sheet-diff.c		  		\
449
	sheet-filter.c				\
450
	sheet-merge.c				\
451
	sheet-object-cell-comment.c		\
452
	sheet-object-component.c		\
453 454 455
	sheet-object-graph.c			\
	sheet-object-image.c			\
	sheet-object-widget.c			\
456
	sheet-object.c				\
457
	sheet-style.c				\
458 459 460
	sheet-utils.c				\
	sheet-view.c		  		\
	sheet.c					\
461 462 463
	sort.c					\
	stf-export.c				\
	stf-parse.c				\
464
	stf.c					\
465 466 467
	style-border.c				\
	style-color.c				\
	style-conditions.c			\
468
	style.c					\
469
	undo.c					\
470 471
	validation.c				\
	value-sheet.c				\
472
	value.c					\
473 474
	wbc-gtk-actions.c			\
	wbc-gtk-edit.c				\
475 476 477 478 479
	wbc-gtk.c				\
	workbook-cmd-format.c			\
	workbook-control.c 			\
	workbook-view.c				\
	workbook.c				\
480
	xml-sax-read.c				\
481
	xml-sax-write.c				\
482 483
	$(dialogs_sources)			\
	$(tools_sources)
484 485 486 487 488 489

if WITH_GTK
  libspreadsheet_la_SOURCES += $(widgets_sources)
else
  EXTRA_DIST += $(widgets_sources)
endif
490

491
nodist_libspreadsheet_la_SOURCES = gnmresources.c gnmresources.h
492

493
# When we switch to subversion fix this to nest as
494
# libspreadsheet-ver/spreadsheet/header
495
# doing it now would require massive cvs surgery.
496
libspreadsheet_includedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
497
libspreadsheet_include_HEADERS =		\
498 499 500
	application.h				\
	auto-format.h				\
	cell-draw.h				\
501
	cell.h					\
502 503 504 505 506 507
	cellspan.h				\
	clipboard.h				\
	cmd-edit.h				\
	collect.h				\
	colrow.h				\
	command-context-stderr.h		\
508
	command-context.h			\
509 510
	commands.h				\
	complete-sheet.h			\
511
	complete.h				\
512 513
	complex.h				\
	consolidate.h				\
514
	criteria.h				\
515
	dependent.h				\
516
	expr-deriv.h				\
Jody Goldberg's avatar
Jody Goldberg committed
517
	expr-impl.h				\
518
	expr-name.h				\
519
	expr.h					\
520
	file-autoft.h				\
Stepan Kasal's avatar
Stepan Kasal committed
521
	format-template.h			\
522
	func-builtin.h				\
523
	func.h					\
524 525
	gnm-command-impl.h			\
	gnm-commands-slicer.h			\
526
	gnm-data-cache-source.h			\
527
	gnm-datetime.h				\
528
	gnm-format.h				\
Jody Goldberg's avatar
Jody Goldberg committed
529
	gnm-graph-window.h			\
530
	gnm-pane.h				\
531
	gnm-plugin.h				\
532
	gnm-random.h				\
533
	gnm-sheet-slicer.h			\
534 535 536 537 538
	gnm-so-filled.h				\
	gnm-so-line.h				\
	gnm-so-path.h				\
	gnm-so-polygon.h			\
	gnumeric-conf.h				\
539
	gnumeric-fwd.h				\
540
	gnumeric-simple-canvas.h		\
541
	gnumeric.h				\
542 543 544
	go-data-cache-field.h			\
	go-data-cache-source.h			\
	go-data-cache.h				\
545
	go-data-slicer-field.h			\
546
	go-data-slicer.h			\
547
	go-val.h				\
548
	graph.h					\
549
	gui-clipboard.h				\
550
	gui-file.h				\
551
	gui-util.h				\
552
	gutils.h				\
553
	history.h				\
554 555
	hlink-impl.h				\
	hlink.h					\
556
	input-msg.h				\
557 558 559 560
	item-bar.h				\
	item-cursor.h				\
	item-edit.h				\
	item-grid.h				\
Stepan Kasal's avatar
Stepan Kasal committed
561
	libgnumeric.h				\
562
	mathfunc.h				\
563
	mstyle.h				\
564
	number-match.h				\
Morten Welinder's avatar
Morten Welinder committed
565
	numbers.h				\
566
	parse-util.h				\
Stepan Kasal's avatar
Stepan Kasal committed
567
	pattern.h				\
568
	position.h				\
569
	preview-grid.h				\
570
	print-cell.h				\
571
	print-info.h				\
572
	print.h					\
573
	rangefunc-strings.h			\
574
	rangefunc.h				\
575
	ranges.h				\
576
	regression.h				\
577
	rendered-value.h			\
Stepan Kasal's avatar
Stepan Kasal committed
578
	search.h				\
579
	selection.h				\
580
	session.h				\
581
	sf-bessel.h				\
582
	sf-dpq.h				\
583
	sf-gamma.h				\
584
	sf-trig.h				\
585
	sheet-autofill.h			\
586 587
	sheet-control-gui-priv.h		\
	sheet-control-gui.h			\
588 589 590
	sheet-control-priv.h			\
	sheet-control.h				\
	sheet-diff.h				\
Jody Goldberg's avatar
Jody Goldberg committed
591
	sheet-filter-combo.h			\
592 593
	sheet-filter.h				\
	sheet-merge.h				\
594
	sheet-object-cell-comment.h		\
595
	sheet-object-component.h		\
596
	sheet-object-graph.h			\
Jody Goldberg's avatar
Jody Goldberg committed
597
	sheet-object-image.h			\
598 599
	sheet-object-impl.h			\
	sheet-object-widget-impl.h		\
600
	sheet-object-widget.h			\
601 602
	sheet-object.h				\
	sheet-private.h				\
Jody Goldberg's avatar
Jody Goldberg committed
603
	sheet-style.h				\
604
	sheet-utils.h				\
605
	sheet-view.h				\
606
	sheet.h					\
607
	sort.h					\
608
	stf-export.h				\
609
	stf-parse.h				\
610
	stf.h					\
611
	style-border.h				\
612
	style-color.h				\
613
	style-conditions.h			\
614
	style-font.h				\
615
	style.h					\
616
	undo.h					\
Jody Goldberg's avatar
Jody Goldberg committed
617
	validation-combo.h			\
618
	validation.h				\
619
	value.h					\
620 621
	wbc-gtk-impl.h				\
	wbc-gtk.h				\
622
	workbook-cmd-format.h			\
623 624
	workbook-control-priv.h			\
	workbook-control.h			\
625 626 627
	workbook-priv.h				\
	workbook-view.h				\
	workbook.h				\
Stepan Kasal's avatar
Stepan Kasal committed
628
	xml-io-version.h			\
629
	xml-sax.h				\
630
	$(dialogs_headers)			\
631
	$(tools_headers)			\
632
	$(widgets_headers)
633

634
gnumeric_SOURCES =				\
635 636
	io-context-gtk.c			\
	io-context-gtk.h			\
637
	main-application.c
638

639 640
gnumeric_LDADD =				\
	libspreadsheet.la			\
641
	$(GNUMERIC_LIBS)			\
642
	$(INTLLIBS)
643
gnumeric_LDFLAGS = -export-dynamic
644

645 646 647 648 649 650 651 652
ssconvert_LDADD   = $(gnumeric_LDADD)
ssconvert_LDFLAGS = -export-dynamic
ssconvert_SOURCES =				\
	ssconvert.c
ssindex_LDADD   = $(gnumeric_LDADD)
ssindex_LDFLAGS = -export-dynamic
ssindex_SOURCES =				\
	ssindex.c
653 654 655 656
ssgrep_LDADD   = $(gnumeric_LDADD)
ssgrep_LDFLAGS = -export-dynamic
ssgrep_SOURCES =				\
	ssgrep.c
657 658 659 660
sstest_LDADD   = $(gnumeric_LDADD)
sstest_LDFLAGS = -export-dynamic
sstest_SOURCES =				\
	sstest.c
661 662 663 664
ssdiff_LDADD   = $(gnumeric_LDADD)
ssdiff_LDFLAGS = -export-dynamic
ssdiff_SOURCES =				\
	ssdiff.c
665

666
if WITH_NATIVE_WIN32
667
    gnumeric_LDADD += gnumeric_rc.o
668 669
    gnumeric_LDFLAGS	+= -mwindows -Wl,--stack,0x4000000
    ssconvert_LDFLAGS	+= -mconsole -Wl,--stack,0x4000000
670
    ssindex_LDFLAGS	+= -mconsole
671
    ssgrep_LDFLAGS	+= -mconsole
672 673 674

    libspreadsheet_la_DEPENDENCIES = libspreadsheet.def
    libspreadsheet_la_LDFLAGS += -no-undefined -export-symbols libspreadsheet.def
675
endif
676

677
if WITH_WIN32
Morten Welinder's avatar
Morten Welinder committed
678
libspreadsheet.def: local.def
679 680 681 682 683 684 685
	echo EXPORTS > $@ && \
	cat $^ | sort >> $@

local.def: stamp-local.def
	@true

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/gnumeric-expr-entry.h'; \
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702
	hdrs_list=''; \
	for hdr in $$hdrs; do \
	  if test -f $(srcdir)/$$hdr; then \
	    hdrs_list="$$hdrs_list $(srcdir)/$$hdr"; \
	  else \
	    hdrs_list="$$hdrs_list $$hdr"; \
	  fi; \
	done; \
	cat $(top_builddir)/gnumeric-config.h $$hdrs_list | \
		sed -e 's/^#[ \t]*include[ \t]\+.*$$//g' | \
		$(CPP) $(AM_CPPFLAGS) "-DGNM_VAR_DECL=__declspec(dllexport)" -P - > xgen-localdef.1 && \
	perl $(top_srcdir)/tools/dumpdef.pl \
		xgen-localdef.1 > xgen-localdef.2 \
	&& (cmp -s xgen-localdef.2 local.def || \
		cp xgen-localdef.2 local.def) \
	&& rm -f xgen-localdef.1 xgen-localdef.2 \
Morten Welinder's avatar
Morten Welinder committed
703
	&& echo timestamp > $@
704

705
endif
706

707

708 709 710
# Rules for the marshalers code:
GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=gnm_

711
.list.h:
712 713
	$(GENMARSHAL_COMMAND) --header $< >$@

714
.list.c:
715 716 717
	(echo '/* This file has been automatically generated.  Do not edit. */' && \
	echo '#include "$*.h"' && \
	$(GENMARSHAL_COMMAND) --body $< ) >$@
Jody Goldberg's avatar
Jody Goldberg committed
718

719 720 721 722 723 724 725 726 727
# Depends on this Makefile, because it uses make variables.
gnumeric-paths.h: Makefile
	@echo 'creating $@'
	@( \
	echo '/* This file has been automatically generated.  Do not edit. */'; \
	echo ''; \
	echo '#ifndef GNUMERIC_PATHS_H'; \
	echo '#define GNUMERIC_PATHS_H'; \
	echo ''; \
728 729 730 731 732 733
	echo '#define GNUMERIC_PREFIX		"$(prefix)"'; \
	echo '#define GNUMERIC_SYSCONFDIR	"$(sysconfdir)"'; \
	echo '#define GNUMERIC_DATADIR		"$(gnumeric_datadir)"'; \
	echo '#define GNUMERIC_LIBDIR		"$(gnumeric_libdir)"'; \
	echo '#define GNUMERIC_ICONDIR		"$(gnumeric_icondir)"'; \
	echo '#define GNUMERIC_LOCALEDIR	"$(gnumeric_localedir)"'; \
734
	echo '#define GNUMERIC_EXTERNPLUGINDIR		"$(gnumeric_externplugindir)"'; \
735 736 737
	echo ''; \
	echo '#endif /* GNUMERIC_PATHS_H */'; \
	) >$@
Jean Brefort's avatar
Jean Brefort committed
738

739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759
update-gnumeric-conf:
	make -C ${top_srcdir}/schemas
	rm -f gnumeric-conf.c.tmp
	@PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.c >gnumeric-conf.c.tmp
	@PERL@ ${top_srcdir}/tools/handle-conf-options --cfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.c.tmp
	if cmp gnumeric-conf.c gnumeric-conf.c.tmp; then \
	  rm gnumeric-conf.c.tmp; \
	else \
	  mv gnumeric-conf.c.tmp gnumeric-conf.c; \
	fi
	rm -f gnumeric-conf.h.tmp
	@PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.h >gnumeric-conf.h.tmp
	@PERL@ ${top_srcdir}/tools/handle-conf-options --hfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.h.tmp
	echo '' >>gnumeric-conf.h.tmp
	@PERL@ -ne '$$p=1 if (/AUTOMATICALLY GENERATED CODE ABOVE/); print if $$p;' <gnumeric-conf.h >>gnumeric-conf.h.tmp
	if cmp gnumeric-conf.h gnumeric-conf.h.tmp; then \
	  rm gnumeric-conf.h.tmp; \
	else \
	  mv gnumeric-conf.h.tmp gnumeric-conf.h; \
	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
Jody Goldberg's avatar
Jody Goldberg committed
765 766 767 768
install-exec-hook:
	cd $(DESTDIR)$(bindir) && \
	mv -f gnumeric$(EXEEXT) gnumeric-$(VERSION)$(EXEEXT) && \
	$(LN_S) gnumeric-$(VERSION)$(EXEEXT) gnumeric$(EXEEXT)
769
endif
Jody Goldberg's avatar
Jody Goldberg committed
770

Jody Goldberg's avatar
Jody Goldberg committed
771 772 773 774
uninstall-hook:
	-cd $(DESTDIR)$(bindir) && \
	rm -f gnumeric-$(VERSION)$(EXEEXT)

775 776
# include conditional files to ensure everything gets distributed no matter
# what the build
777
EXTRA_DIST +=						\
778
	gnm.gresource.xml				\
779 780 781 782 783 784 785 786 787 788 789 790 791 792
	pixmaps/line_pattern_dash_dot.png		\
	pixmaps/line_pattern_dash_dot_dot.png		\
	pixmaps/line_pattern_dashed.png			\
	pixmaps/line_pattern_dotted.png			\
	pixmaps/line_pattern_double.png			\
	pixmaps/line_pattern_hair.png			\
	pixmaps/line_pattern_medium.png			\
	pixmaps/line_pattern_medium_dash.png		\
	pixmaps/line_pattern_medium_dash_dot.png	\
	pixmaps/line_pattern_medium_dash_dot_dot.png	\
	pixmaps/line_pattern_slant.png			\
	pixmaps/line_pattern_thick.png			\
	pixmaps/line_pattern_thin.png			\
	pixmaps/right-down.png				\
793 794 795
	pixmaps/down-right.png				\
	pixmaps/gnumeric_splash_1.4.png			\
	pixmaps/unknown_image.png			\
796
	pixmaps/sheet_move_marker.png			\
797
	gnumeric.css					\
798 799 800
	gnm-marshalers.list				\
	README.gnm_float				\
	gnumeric.rc					\
801 802
	GNOME_Gnumeric-gtk.xml				\
	$(resource_ui_files)
803 804 805

if HAVE_INTROSPECTION

806 807 808
INTROSPECTION_GIRS += Gnm-@GNUMERIC_API_VER@.gir

Gnm-@GNUMERIC_API_VER@.gir: $(INTROSPECTION_SCANNER) libspreadsheet.la Makefile
809 810
Gnm_@GNUMERIC_API_VER_@_gir_INCLUDES = GObject-2.0 Gio-2.0 libxml2-2.0 \
									   Gsf-1 GOffice-@GOFFICE_API_VER@
811 812
Gnm_@GNUMERIC_API_VER_@_gir_CFLAGS = $(AM_CPPFLAGS)
Gnm_@GNUMERIC_API_VER_@_gir_LIBS = libspreadsheet.la
813 814
Gnm_@GNUMERIC_API_VER_@_gir_FILES = \
	$(libspreadsheet_la_SOURCES) \
815
	$(libspreadsheet_include_HEADERS)
816 817


818
girdir = $(GIRDIR)
819
gir_DATA = $(INTROSPECTION_GIRS)
820 821

typelibsdir = $(TYPELIBDIR)
822
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
823 824 825 826

CLEANFILES += $(gir_DATA) $(typelibs_DATA)

endif # HAVE_INTROSPECTION