Makefile.am 5.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#
# Gnumeric's Makefile.
# Author: Miguel de Icaza (miguel@kernel.org)
#
# This Makefile has targets for three programs:
#
# gnumeric: 
#	the plain spreadsheet
#
# gnumeric-bonobo:
#       spreadsheet with CORBA and Bonobo additions
# 
# 
Arturo Espinosa's avatar
Arturo Espinosa committed
14

15
SUBDIRS = dialogs functions widgets
16

17 18
if BONOBO
bin_PROGRAMS = gnumeric-bonobo
19
CLEANFILES  += gnumeric
20
else
21
bin_PROGRAMS = gnumeric
22
CLEANFILES  +=gnumeric-bonobo
23
endif
Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
24

25
#noinst_PROGRAMS = number-match
Arturo Espinosa's avatar
Arturo Espinosa committed
26

Arturo Espinosa's avatar
Arturo Espinosa committed
27 28
INCLUDES = 						\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
29 30
	-DGNUMERIC_DATADIR=\""$(gnumeric_datadir)"\"	\
	-DGNUMERIC_LIBDIR=\""$(gnumeric_libdir)"\"	\
Jacob Berkman's avatar
Jacob Berkman committed
31
	-DGNOME_ICONDIR=\""$(datadir)/pixmaps"\"	\
Arturo Espinosa's avatar
Arturo Espinosa committed
32
	-I$(includedir)				 	\
33 34
	-I$(top_srcdir)/				\
	-I$(srcdir)/					\
35 36 37
	-I$(srcdir)/widgets				\
	-I$(srcdir)/functions				\
	-I$(srcdir)/dialogs				\
38
	$(EXTRA_GNOME_CFLAGS)				\
Mark Probst's avatar
Mark Probst committed
39
	$(GUILE_INCS)
Arturo Espinosa's avatar
Arturo Espinosa committed
40

41 42
GNUMERIC_BASE_SOURCES =				\
	about.c					\
43
	analysis-tools.c			\
44
	analysis-tools.h			\
45 46
	application.c				\
	application.h				\
Morten Welinder's avatar
Morten Welinder committed
47 48
	auto-format.c				\
	auto-format.h				\
49 50
	border.c				\
	border.h				\
51 52
	cell.h					\
	cell.c					\
53
	cell-draw.c				\
54
	cell-draw.h				\
55 56
	cell-comment.c				\
	cell-comment.h				\
57
	cellspan.c				\
58
	cellspan.h				\
59 60
	clipboard.c				\
	clipboard.h				\
Jody Goldberg's avatar
Jody Goldberg committed
61 62
	cmd-edit.h				\
	cmd-edit.c				\
63 64
	collect.h				\
	collect.c				\
65 66
	color.c					\
	color.h					\
67 68
	colrow.c				\
	colrow.h				\
Jody Goldberg's avatar
Jody Goldberg committed
69 70
	commands.h				\
	commands.c				\
71 72
	command-context.h			\
	command-context.c			\
73 74
	command-context-corba.c			\
	command-context-corba.h			\
75
	command-context-gui.c			\
76
	command-context-gui.h			\
77 78 79 80
	complete.c				\
	complete.h				\
	complete-sheet.c			\
	complete-sheet.h			\
81 82
	complex.h				\
	complex.c				\
83
	corba.h					\
84 85 86 87
	cursors.c				\
	cursors.h				\
	dates.c					\
	dates.h					\
Morten Welinder's avatar
Morten Welinder committed
88 89
	datetime.c				\
	datetime.h				\
90 91
	dependent.c				\
	dependent.h				\
92 93 94 95
	eval.h					\
	eval.c					\
	expr.c					\
	expr.h					\
Michael Meeks's avatar
Michael Meeks committed
96 97
	expr-name.c				\
	expr-name.h				\
98 99 100 101 102 103
	file.c					\
	file.h					\
	formats.h				\
	formats.c				\
	func.c					\
	func.h					\
104
	func-util.h				\
105 106
	format.c				\
	format.h				\
107 108
	global-gnome-font.c			\
	global-gnome-font.h			\
109 110
	goal-seek.c				\
	goal-seek.h				\
111 112 113 114
	gnumeric-sheet.c			\
	gnumeric-sheet.h			\
	gnumeric-util.c				\
	gnumeric-util.h				\
115
	gnumeric-type-util.h			\
116
	gnumeric.h				\
117 118
	gutils.c				\
	gutils.h				\
119 120
	history.c				\
	history.h				\
121 122 123 124 125 126 127 128 129 130 131
	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					\
132 133
	mathfunc.c				\
	mathfunc.h				\
134 135
	mstyle.c				\
	mstyle.h				\
136 137 138 139
	number-match.c				\
	number-match.h				\
	numbers.h				\
	parser.y				\
140 141
	parse-util.c				\
	parse-util.h				\
142 143
	pattern.h				\
	pattern.c				\
144 145 146
	pixmaps.h				\
	plugin.c				\
	plugin.h				\
147 148
	plugin-util.c				\
	plugin-util.h				\
149
	portability.h				\
150 151
	position.c				\
	position.h				\
152 153 154 155 156 157
	print.c					\
	print.h					\
	print-cell.c				\
	print-cell.h				\
	print-info.c				\
	print-info.h				\
158 159
	ranges.c				\
	ranges.h				\
160 161
	regression.c				\
	regression.h				\
162 163
	render-ascii.c				\
	render-ascii.h				\
164 165
	rendered-value.c			\
	rendered-value.h			\
Jody Goldberg's avatar
Jody Goldberg committed
166 167
	selection.c				\
	selection.h				\
168 169
	sheet.c					\
	sheet.h					\
170
	sheet-private.h				\
171 172 173 174
	sheet-autofill.c			\
	sheet-autofill.h			\
	sheet-object.c				\
	sheet-object.h				\
175 176
	sheet-object-widget.c			\
	sheet-object-widget.h			\
177 178
	sheet-object-graphic.c			\
	sheet-object-graphic.h			\
179
	sheet-style.c				\
180 181 182 183
	sheet-view.c				\
	sheet-view.h				\
	solver-lp.c                     	\
	solver.h				\
184 185
	sort.c					\
	sort.h					\
186 187
	str.c					\
	str.h					\
188 189
	stf.c					\
	stf.h					\
190 191
	stf-export.c				\
	stf-export.h				\
192 193
	stf-parse.c				\
	stf-parse.h				\
194 195
	style.c					\
	style.h					\
196 197
	summary.c				\
	summary.h				\
198 199
	symbol.h				\
	symbol.c				\
200 201
	test.c					\
	test.h					\
202 203
	value.c					\
	value.h					\
204
	value-sheet.c				\
205
	workbook.c				\
206
	workbook.h				\
207 208
	workbook-cmd-format.c			\
	workbook-cmd-format.h			\
Miguel de Icaza's avatar
Miguel de Icaza committed
209 210
	workbook-edit.c				\
	workbook-edit.h				\
211 212 213
	workbook-format-toolbar.c		\
	workbook-format-toolbar.h		\
	workbook-private.h			\
214
	workbook-private.c			\
215 216
	workbook-view.h				\
	workbook-view.c				\
217
	xml-io.c				\
Miguel de Icaza's avatar
Miguel de Icaza committed
218
	xml-io.h
Miguel de Icaza's avatar
Miguel de Icaza committed
219

220
GNUMERIC_BONOBO_SOURCES = 			\
221 222
	bonobo-io.c				\
	bonobo-io.h				\
223 224
	embeddable-grid.c			\
	embeddable-grid.h			\
225 226
	sheet-object-bonobo.c			\
	sheet-object-bonobo.h			\
227
	sheet-object-container.c		\
228 229
	sheet-object-container.h		\
	sheet-object-item.c			\
230
	sheet-object-item.h			\
231
	graph-series.c
232

233 234 235
gnumeric_SOURCES =					\
	main.c						\
	normal-args.c					\
236 237
	$(GNUMERIC_BASE_SOURCES)

238 239 240 241 242 243 244
gnumeric_bonobo_SOURCES =				\
	main.c						\
	corba-args.c					\
	corba-sheet.c					\
	corba-workbook.c				\
	corba-workbook-factory.c			\
	$(GNUMERIC_BASE_SOURCES)			\
245 246
	$(GNUMERIC_BONOBO_SOURCES)

247
gnumeric_LDFLAGS = -export-dynamic
248

249 250 251 252
gnumeric_libs =						\
	../plugins/excel/libexcel.a			\
	dialogs/libdialogs.a				\
	widgets/libwidgets.a				\
253
	functions/libfunctions.a
254

255 256 257 258 259
gnumeric_LDADD = 					\
	$(gnumeric_libs)				\
	$(EXTRA_GNOME_LIBS)				\
	$(GNOME_XML_LIB) 				\
	$(GUILE_LIBS)					\
Arturo Espinosa's avatar
Arturo Espinosa committed
260
	$(INTLLIBS)
261

262 263
gnumeric_bonobo_LDADD =					\
	$(gnumeric_libs)				\
264
	-lbonobo-print					\
Miguel de Icaza's avatar
Miguel de Icaza committed
265
	../idl/libGnumeric.a				\
266
	../idl/libGnumericGraphs.a			\
267 268 269
	$(EXTRA_GNOME_LIBS)				\
	$(GNOME_XML_LIB) 				\
	$(GUILE_LIBS)					\
270
	$(INTLLIBS)
271

272
wc:
273 274
	wc -l $(gnumeric_SOURCES)

275 276 277
wc_bonobo:
	wc -l $(gnumeric_SOURCES) $(GNUMERIC_BONOBO_SOURCES)

278
dist-hook:
279
	-mkdir $(distdir)/pixmaps
280
	cp $(srcdir)/pixmaps/*.xpm $(distdir)/pixmaps
281

282
#number_match_SOURCES = number-match.c  formats.c dates.c number-match-test.c
283

284 285 286 287 288
#number_match_LDADD = 			\
#	$(GNOME_LIBDIR) 		\
#	$(GNOMEUI_LIBS)			\
#	$(GNOME_XML_LIB) 		\
#	$(INTLLIBS)
289

Miguel de Icaza's avatar
Miguel de Icaza committed
290
EXTRA_DIST = portability.h.in
291