Makefile.am 4.98 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 19
if BONOBO
bin_PROGRAMS = gnumeric-bonobo
else
20
bin_PROGRAMS = gnumeric
21
endif
Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
22

23
#noinst_PROGRAMS = number-match
Arturo Espinosa's avatar
Arturo Espinosa committed
24
gladedir   = $(datadir)/gnumeric/glade
Arturo Espinosa's avatar
Arturo Espinosa committed
25

Arturo Espinosa's avatar
Arturo Espinosa committed
26 27
INCLUDES = 						\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" 	\
28
	-DGNUMERIC_VERSION=\""$(VERSION)"\"		\
29
        -DGNUMERIC_GLADEDIR=\""$(gladedir)"\"           \
30
	-DGNUMERIC_ICONDIR=\""$(iconsdir)"\"		\
Arturo Espinosa's avatar
Arturo Espinosa committed
31
	-I$(includedir)				 	\
32 33 34
	-I$(srcdir)/widgets				\
	-I$(srcdir)/functions				\
	-I$(srcdir)/dialogs				\
35
	$(EXTRA_GNOME_CFLAGS)				\
Mark Probst's avatar
Mark Probst committed
36
	$(GUILE_INCS)
Arturo Espinosa's avatar
Arturo Espinosa committed
37

38 39
GNUMERIC_BASE_SOURCES =				\
	about.c					\
40
	analysis-tools.c			\
41 42
	cell.h					\
	cell.c					\
43
	cell-draw.c				\
44 45 46
	cellspan.c				\
	clipboard.c				\
	clipboard.h				\
47 48
	collect.h				\
	collect.c				\
49 50
	color.c					\
	color.h					\
51 52
	complex.h				\
	complex.c				\
53
	corba.h					\
54 55 56 57 58 59 60 61 62 63
	cursors.c				\
	cursors.h				\
	dates.c					\
	dates.h					\
	dump.c					\
	dump.h					\
	eval.h					\
	eval.c					\
	expr.c					\
	expr.h					\
Michael Meeks's avatar
Michael Meeks committed
64 65
	expr-name.c				\
	expr-name.h				\
66 67 68 69 70 71 72 73
	file.c					\
	file.h					\
	formats.h				\
	formats.c				\
	func.c					\
	func.h					\
	format.c				\
	format.h				\
74 75
	global-gnome-font.c			\
	global-gnome-font.h			\
76 77
	goal-seek.c				\
	goal-seek.h				\
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
	gnumeric-sheet.c			\
	gnumeric-sheet.h			\
	gnumeric-util.c				\
	gnumeric-util.h				\
	gnumeric.h				\
	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					\
94 95
	mathfunc.c				\
	mathfunc.h				\
96 97 98 99 100 101 102 103 104 105
	number-match.c				\
	number-match.h				\
	numbers.h				\
	parser.y				\
	pattern-selector.c			\
	pattern-selector.h			\
	pixmaps.h				\
	plugin.c				\
	plugin.h				\
	plugin-manager.c			\
106 107 108 109 110 111
	print.c					\
	print.h					\
	print-cell.c				\
	print-cell.h				\
	print-info.c				\
	print-info.h				\
112 113
	print-preview.c				\
	print-preview.h				\
114 115
	ranges.c				\
	ranges.h				\
116 117
	regression.c				\
	regression.h				\
118 119
	render-ascii.c				\
	render-ascii.h				\
Jody Goldberg's avatar
Jody Goldberg committed
120 121
	selection.c				\
	selection.h				\
122 123 124 125 126 127
	sheet.c					\
	sheet.h					\
	sheet-autofill.c			\
	sheet-autofill.h			\
	sheet-object.c				\
	sheet-object.h				\
128 129
	sheet-object-widget.c			\
	sheet-object-widget.h			\
130 131 132 133 134 135 136 137 138 139
	sheet-object-graphic.c			\
	sheet-object-graphic.h			\
	sheet-view.c				\
	sheet-view.h				\
	solver-lp.c                     	\
	solver.h				\
	str.c					\
	str.h					\
	style.c					\
	style.h					\
140 141
	summary.c				\
	summary.h				\
142 143 144 145
	symbol.h				\
	symbol.c				\
	utils.c					\
	utils.h					\
146 147
	value.c					\
	value.h					\
148 149
	value-sheet.c				\
	value-sheet.h				\
150
	workbook.c				\
151
	workbook.h				\
152 153
	workbook-cmd-format.c			\
	workbook-cmd-format.h			\
154 155 156
	workbook-format-toolbar.c		\
	workbook-format-toolbar.h		\
	workbook-private.h			\
157
	xml-io.c				\
158
	xml-io.h
Arturo Espinosa's avatar
Arturo Espinosa committed
159

Michael Meeks's avatar
Michael Meeks committed
160
if BONOBO
161 162 163 164
GNUMERIC_CORBA_GENERATED = 			\
	Gnumeric-common.c			\
	Gnumeric-skels.c			\
	Gnumeric-stubs.c			\
Miguel de Icaza's avatar
Miguel de Icaza committed
165
	Gnumeric.h
Michael Meeks's avatar
Michael Meeks committed
166
endif
Miguel de Icaza's avatar
Miguel de Icaza committed
167

168
GNUMERIC_BONOBO_SOURCES = 			\
169 170
	embeddable-grid.c			\
	embeddable-grid.h			\
171 172
	sheet-object-bonobo.c			\
	sheet-object-bonobo.h			\
173
	sheet-object-container.c		\
174 175 176
	sheet-object-container.h		\
	sheet-object-item.c			\
	sheet-object-item.h
177

178
BUILT_SOURCES = $(GNUMERIC_CORBA_GENERATED)
179

180
Gnumeric-impl.o: Gnumeric.h
181

182
CLEANFILES = my_gnumeric_idl
Elliot Lee's avatar
Elliot Lee committed
183

184 185
$(GNUMERIC_CORBA_GENERATED): my_gnumeric_idl

186 187
my_gnumeric_idl: Gnumeric.idl Gnumeric-value.idl
	orbit-idl -I`$(GNOME_CONFIG) --datadir`/idl -I$(srcdir) $(srcdir)/Gnumeric.idl
188
	touch my_gnumeric_idl
189

190 191 192
gnumeric_SOURCES =				\
	main.c					\
	normal-args.c				\
193 194
	$(GNUMERIC_BASE_SOURCES)

195 196 197
corba-sheet.c corba-workbook-factory.c corba-workbook.c Gnumeric-impl.c \
embeddable-grid.c: Gnumeric.h

198 199 200 201 202 203 204 205
gnumeric_bonobo_SOURCES =			\
	main.c					\
	corba-args.c				\
	corba-sheet.c				\
	corba-workbook.c			\
	corba-workbook-factory.c		\
	$(GNUMERIC_CORBA_GENERATED)		\
	$(GNUMERIC_BASE_SOURCES)		\
206 207
	$(GNUMERIC_BONOBO_SOURCES)

208
gnumeric_LDFLAGS = -export-dynamic
209

210
gnumeric_libs =					\
211
	../plugins/excel/libexcel.a		\
Arturo Espinosa's avatar
Arturo Espinosa committed
212
	../plugins/excel/libole2/libole2.a 	\
213 214 215 216 217
	dialogs/libdialogs.a			\
	widgets/libwidgets.a			\
	functions/libfunctions.a		

gnumeric_LDADD = 				\
218
	$(gnumeric_libs)			\
219
	$(EXTRA_GNOME_LIBS)			\
220 221
	$(GNOME_XML_LIB) 			\
	$(GUILE_LIBS)				\
Arturo Espinosa's avatar
Arturo Espinosa committed
222
	$(INTLLIBS)
223

224
gnumeric_bonobo_LDADD =				\
225
	$(gnumeric_libs)			\
226
	$(EXTRA_GNOME_LIBS)			\
227 228
	$(GNOME_XML_LIB) 			\
	$(GUILE_LIBS)				\
229
	$(INTLLIBS)
230

Arturo Espinosa's avatar
Arturo Espinosa committed
231

232
wc:
233 234
	wc -l $(gnumeric_SOURCES)

235 236 237
wc_bonobo:
	wc -l $(gnumeric_SOURCES) $(GNUMERIC_BONOBO_SOURCES)

238 239 240
dist-hook:
	mkdir $(distdir)/pixmaps
	cp $(srcdir)/pixmaps/*.xpm $(distdir)/pixmaps
241

242
#number_match_SOURCES = number-match.c  formats.c dates.c number-match-test.c
243

244 245 246 247 248
#number_match_LDADD = 			\
#	$(GNOME_LIBDIR) 		\
#	$(GNOMEUI_LIBS)			\
#	$(GNOME_XML_LIB) 		\
#	$(INTLLIBS)
249

250
idldir   = $(datadir)/idl
251
idl_DATA = Gnumeric.idl Gnumeric-value.idl
252 253


254
MYHACKAROUNDAUTOMAKE=$(shell echo $(GNUMERIC_CORBA_GENERATED))
255

256
EXTRA_DIST = $(idl_DATA) $(MYHACKAROUNDAUTOMAKE)