Makefile.am 6.03 KB
Newer Older
1 2 3
#
# Gnumeric's Makefile.
# Author: Miguel de Icaza (miguel@kernel.org)
Arturo Espinosa's avatar
Arturo Espinosa committed
4

5
SUBDIRS = dialogs functions widgets
6

7
bin_PROGRAMS = gnumeric
8
#noinst_PROGRAMS = number-match
Arturo Espinosa's avatar
Arturo Espinosa committed
9

10 11 12 13 14 15 16
INCLUDES = 								\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 			\
	-DGNUMERIC_DATADIR=\""$(gnumeric_datadir)"\"			\
	-DGNUMERIC_LIBDIR=\""$(gnumeric_libdir)"\"			\
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps"\"			\
	-DGNOME_DATADIR=\""$(datadir)"\"	 			\
	-I$(includedir)				 			\
Jody Goldberg's avatar
Jody Goldberg committed
17 18
	-I$(top_srcdir)							\
	-I$(srcdir)							\
19 20 21 22
	-I$(srcdir)/widgets						\
	-I$(srcdir)/functions						\
	-I$(srcdir)/dialogs						\
	$(EXTRA_GNOME_CFLAGS)						\
Mark Probst's avatar
Mark Probst committed
23
	$(GUILE_INCS)
Arturo Espinosa's avatar
Arturo Espinosa committed
24

25
GNUMERIC_BASE_SOURCES =				\
26
	analysis-tools.c			\
27
	analysis-tools.h			\
28 29
	application.c				\
	application.h				\
Morten Welinder's avatar
Morten Welinder committed
30 31
	auto-format.c				\
	auto-format.h				\
32 33
	cell.h					\
	cell.c					\
34
	cell-draw.c				\
35
	cell-draw.h				\
36
	cellspan.c				\
37
	cellspan.h				\
38 39
	clipboard.c				\
	clipboard.h				\
Jody Goldberg's avatar
Jody Goldberg committed
40 41
	cmd-edit.h				\
	cmd-edit.c				\
42 43
	collect.h				\
	collect.c				\
44 45
	colrow.c				\
	colrow.h				\
Jody Goldberg's avatar
Jody Goldberg committed
46 47
	commands.h				\
	commands.c				\
48 49 50 51
	complete.c				\
	complete.h				\
	complete-sheet.c			\
	complete-sheet.h			\
52 53 54
	command-context.c			\
	command-context.h			\
	command-context-priv.h			\
55 56
	command-context-corba.c			\
	command-context-corba.h			\
Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
57 58
	consolidate.c				\
	consolidate.h				\
59 60 61
	io-context.c				\
	io-context.h				\
	io-context-priv.h			\
62 63
	complex.h				\
	complex.c				\
64
	corba.h					\
65 66
	dates.c					\
	dates.h					\
Morten Welinder's avatar
Morten Welinder committed
67 68
	datetime.c				\
	datetime.h				\
Chyla Zbigniew's avatar
Chyla Zbigniew committed
69 70
	error-info.c				\
	error-info.h				\
71 72 73 74
	eval.h					\
	eval.c					\
	expr.c					\
	expr.h					\
Michael Meeks's avatar
Michael Meeks committed
75 76
	expr-name.c				\
	expr-name.h				\
77 78
	file.c					\
	file.h					\
79
	file-priv.h					\
80 81
	file-autoft.c				\
	file-autoft.h				\
82 83
	format-template.h			\
	format-template.c			\
84 85 86 87
	formats.h				\
	formats.c				\
	func.c					\
	func.h					\
88
	func-util.h				\
89 90
	format.c				\
	format.h				\
91 92
	global-gnome-font.c			\
	global-gnome-font.h			\
93 94
	goal-seek.c				\
	goal-seek.h				\
95 96 97 98
	gnumeric-sheet.c			\
	gnumeric-sheet.h			\
	gnumeric-util.c				\
	gnumeric-util.h				\
99
	gnumeric-type-util.h			\
100
	gnumeric.h				\
101 102
	gui-clipboard.c				\
	gui-clipboard.h				\
103 104
	gui-file.c				\
	gui-file.h				\
105
	gui-gnumeric.h				\
106 107
	gutils.c				\
	gutils.h				\
108 109
	history.c				\
	history.h				\
110 111 112 113 114 115 116 117 118 119 120
	item-bar.c				\
	item-bar.h				\
	item-cursor.c				\
	item-cursor.h				\
	item-debug.c				\
	item-debug.h				\
	item-edit.c				\
	item-edit.h				\
	item-grid.c				\
	item-grid.h				\
	main.h					\
121
	main.c					\
122 123
	mathfunc.c				\
	mathfunc.h				\
124
	module-plugin-defs.h			\
125 126
	mstyle.c				\
	mstyle.h				\
127 128 129 130
	number-match.c				\
	number-match.h				\
	numbers.h				\
	parser.y				\
131 132
	parse-util.c				\
	parse-util.h				\
133 134
	pattern.h				\
	pattern.c				\
135 136
	plugin-loader-module.c			\
	plugin-loader-module.h			\
137 138 139 140
	plugin-loader.c				\
	plugin-loader.h				\
	plugin-service.c			\
	plugin-service.h			\
141 142
	plugin-util.c				\
	plugin-util.h				\
143 144
	plugin.c				\
	plugin.h				\
145
	portability.h				\
146 147
	position.c				\
	position.h				\
148 149
	preview-grid.c				\
	preview-grid.h				\
150 151 152 153 154 155
	print.c					\
	print.h					\
	print-cell.c				\
	print-cell.h				\
	print-info.c				\
	print-info.h				\
156 157
	ranges.c				\
	ranges.h				\
158 159
	regression.c				\
	regression.h				\
160 161
	rendered-value.c			\
	rendered-value.h			\
162 163
	search.h				\
	search.c				\
Jody Goldberg's avatar
Jody Goldberg committed
164 165
	selection.c				\
	selection.h				\
166 167
	sheet.c					\
	sheet.h					\
168 169
	sheet-merge.c				\
	sheet-merge.h				\
170
	sheet-private.h				\
171 172 173 174
	sheet-autofill.c			\
	sheet-autofill.h			\
	sheet-object.c				\
	sheet-object.h				\
175 176 177
	sheet-object-impl.h			\
	sheet-object-cell-comment.c		\
	sheet-object-cell-comment.h		\
178 179
	sheet-object-graphic.c			\
	sheet-object-graphic.h			\
180 181
	sheet-object-widget.c			\
	sheet-object-widget.h			\
182
	sheet-style.c				\
Jody Goldberg's avatar
Jody Goldberg committed
183
	sheet-style.h				\
184 185 186
	sheet-control.c		  		\
	sheet-control.h    			\
	sheet-control-priv.h 			\
187 188
	sheet-control-gui.c			\
	sheet-control-gui.h			\
189
	sheet-control-gui-priv.h		\
190 191
	solver-lp.c                     	\
	solver.h				\
192 193
	sort.c					\
	sort.h					\
194 195
	str.c					\
	str.h					\
196 197
	stf.c					\
	stf.h					\
198 199
	stf-export.c				\
	stf-export.h				\
200 201
	stf-parse.c				\
	stf-parse.h				\
202 203
	style.c					\
	style.h					\
204 205
	style-border.c				\
	style-border.h				\
206 207
	style-color.c				\
	style-color.h				\
208 209
	summary.c				\
	summary.h				\
210 211
	symbol.h				\
	symbol.c				\
212 213
	value.c					\
	value.h					\
214
	value-sheet.c				\
215
	workbook.c				\
216
	workbook.h				\
217 218
	workbook-cmd-format.c			\
	workbook-cmd-format.h			\
Miguel de Icaza's avatar
Miguel de Icaza committed
219 220
	workbook-edit.c				\
	workbook-edit.h				\
221 222
	workbook-format-toolbar.c		\
	workbook-format-toolbar.h		\
223 224
	workbook-object-toolbar.c		\
	workbook-object-toolbar.h		\
225
	workbook-private.h			\
226
	workbook-private.c			\
227
	workbook-view.c				\
228 229
	workbook-view.h				\
	workbook-control.c 			\
Jody Goldberg's avatar
Jody Goldberg committed
230
	workbook-control.h 			\
231 232 233 234
	workbook-control-priv.h 		\
	workbook-control-gui.c 			\
	workbook-control-gui.h 			\
	workbook-control-gui-priv.h 		\
235
	xml-io.c				\
236 237 238
	xml-io.h				\
	xml-io-autoft.c				\
	xml-io-autoft.h
Miguel de Icaza's avatar
Miguel de Icaza committed
239

240
GNUMERIC_BONOBO_SOURCES = 			\
241 242
	bonobo-io.c				\
	bonobo-io.h				\
243 244
	embeddable-grid.c			\
	embeddable-grid.h			\
245 246
	graph-vector.c				\
	graph-vector.h				\
247 248
	sheet-object-bonobo.c			\
	sheet-object-bonobo.h			\
249
	sheet-object-container.c		\
250 251
	sheet-object-container.h		\
	sheet-object-item.c			\
Jody Goldberg's avatar
Jody Goldberg committed
252
	sheet-object-item.h
253

254
if BONOBO
255 256
gnumeric_SOURCES =				\
	$(GNUMERIC_BASE_SOURCES)		\
257
	corba-args.c				\
258 259
	$(GNUMERIC_BONOBO_SOURCES)

260
gnumeric_LDADD =				\
261
	$(gnumeric_libs)			\
262 263
	-lbonobo-print				\
	../idl/libGnumericIDL.a			\
264 265 266
	$(EXTRA_GNOME_LIBS)			\
	$(GNOME_XML_LIB) 			\
	$(GUILE_LIBS)				\
267
	$(PSPELL_LIBS)				\
Arturo Espinosa's avatar
Arturo Espinosa committed
268
	$(INTLLIBS)
269 270 271 272
else
gnumeric_SOURCES =				\
	$(GNUMERIC_BASE_SOURCES)		\
	normal-args.c
273

274
gnumeric_LDADD = 				\
275 276 277 278
	$(gnumeric_libs)			\
	$(EXTRA_GNOME_LIBS)			\
	$(GNOME_XML_LIB) 			\
	$(GUILE_LIBS)				\
279
	$(INTLLIBS)
280 281 282 283 284 285 286 287
endif

gnumeric_LDFLAGS = -export-dynamic

gnumeric_libs =					\
	dialogs/libdialogs.a			\
	widgets/libwidgets.a			\
	functions/libfunctions.a
288

289
dist-hook:
290
	-mkdir $(distdir)/pixmaps
291
	cp $(srcdir)/pixmaps/*.xpm $(distdir)/pixmaps
292

293
#number_match_SOURCES = number-match.c  formats.c dates.c number-match-test.c
294

295 296 297 298 299
#number_match_LDADD = 			\
#	$(GNOME_LIBDIR) 		\
#	$(GNOMEUI_LIBS)			\
#	$(GNOME_XML_LIB) 		\
#	$(INTLLIBS)
300

301
EXTRA_DIST = portability.h.in GNOME_Gnumeric.xml
302

303
uidir=$(datadir)/gnome/ui
304
ui_DATA = GNOME_Gnumeric.xml