Revert, revert, try another thing
[gnumeric.git] / src / Makefile.am
blob2927e02bc71a05a4bc824c594fa7a6622d31e990
2 # Gnumeric's Makefile.
3 # Author: Miguel de Icaza (miguel@kernel.org)
5 # This Makefile has targets for three programs:
7 # gnumeric: 
8 #       the plain spreadsheet
10 # gnumeric-bonobo:
11 #       spreadsheet with CORBA and Bonobo additions
12
13
15 SUBDIRS = dialogs functions widgets
17 if BONOBO
18 bin_PROGRAMS = gnumeric-bonobo
19 CLEANFILES  += gnumeric
20 else
21 bin_PROGRAMS = gnumeric
22 CLEANFILES  +=gnumeric-bonobo
23 endif
25 #noinst_PROGRAMS = number-match
26 gladedir   = $(datadir)/gnumeric/glade
28 INCLUDES =                                              \
29         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
30         -DGNUMERIC_VERSION=\""$(VERSION)"\"             \
31         -DGNUMERIC_GLADEDIR=\""$(gladedir)"\"           \
32         -I$(includedir)                                 \
33         -I$(top_srcdir)/                                \
34         -I$(srcdir)/                                    \
35         -I$(srcdir)/widgets                             \
36         -I$(srcdir)/functions                           \
37         -I$(srcdir)/dialogs                             \
38         $(EXTRA_GNOME_CFLAGS)                           \
39         $(GUILE_INCS)
41 GNUMERIC_BASE_SOURCES =                         \
42         about.c                                 \
43         analysis-tools.c                        \
44         analysis-tools.h                        \
45         application.c                           \
46         application.h                           \
47         auto-format.c                           \
48         auto-format.h                           \
49         border.c                                \
50         border.h                                \
51         cell.h                                  \
52         cell.c                                  \
53         cell-draw.c                             \
54         cell-draw.h                             \
55         cellspan.c                              \
56         cellspan.h                              \
57         clipboard.c                             \
58         clipboard.h                             \
59         collect.h                               \
60         collect.c                               \
61         color.c                                 \
62         color.h                                 \
63         colrow.c                                \
64         colrow.h                                \
65         commands.h                              \
66         commands.c                              \
67         command-context.h                       \
68         command-context.c                       \
69         command-context-corba.c                 \
70         command-context-corba.h                 \
71         command-context-gui.c                   \
72         command-context-gui.h                   \
73         complex.h                               \
74         complex.c                               \
75         corba.h                                 \
76         cursors.c                               \
77         cursors.h                               \
78         dates.c                                 \
79         dates.h                                 \
80         datetime.c                              \
81         datetime.h                              \
82         eval.h                                  \
83         eval.c                                  \
84         expr.c                                  \
85         expr.h                                  \
86         expr-name.c                             \
87         expr-name.h                             \
88         file.c                                  \
89         file.h                                  \
90         formats.h                               \
91         formats.c                               \
92         func.c                                  \
93         func.h                                  \
94         format.c                                \
95         format.h                                \
96         global-gnome-font.c                     \
97         global-gnome-font.h                     \
98         goal-seek.c                             \
99         goal-seek.h                             \
100         gnumeric-sheet.c                        \
101         gnumeric-sheet.h                        \
102         gnumeric-util.c                         \
103         gnumeric-util.h                         \
104         gnumeric-type-util.h                    \
105         gnumeric.h                              \
106         history.c                               \
107         history.h                               \
108         item-bar.c                              \
109         item-bar.h                              \
110         item-cursor.c                           \
111         item-cursor.h                           \
112         item-debug.c                            \
113         item-debug.h                            \
114         item-edit.c                             \
115         item-edit.h                             \
116         item-grid.c                             \
117         item-grid.h                             \
118         main.h                                  \
119         mathfunc.c                              \
120         mathfunc.h                              \
121         mstyle.c                                \
122         mstyle.h                                \
123         number-match.c                          \
124         number-match.h                          \
125         numbers.h                               \
126         parser.y                                \
127         pattern.h                               \
128         pattern.c                               \
129         pixmaps.h                               \
130         plugin.c                                \
131         plugin.h                                \
132         plugin-util.c                           \
133         plugin-util.h                           \
134         portability.h                           \
135         print.c                                 \
136         print.h                                 \
137         print-cell.c                            \
138         print-cell.h                            \
139         print-info.c                            \
140         print-info.h                            \
141         print-preview.c                         \
142         print-preview.h                         \
143         ranges.c                                \
144         ranges.h                                \
145         regression.c                            \
146         regression.h                            \
147         render-ascii.c                          \
148         render-ascii.h                          \
149         selection.c                             \
150         selection.h                             \
151         sheet.c                                 \
152         sheet.h                                 \
153         sheet-private.h                         \
154         sheet-autofill.c                        \
155         sheet-autofill.h                        \
156         sheet-object.c                          \
157         sheet-object.h                          \
158         sheet-object-widget.c                   \
159         sheet-object-widget.h                   \
160         sheet-object-graphic.c                  \
161         sheet-object-graphic.h                  \
162         sheet-style.c                           \
163         sheet-view.c                            \
164         sheet-view.h                            \
165         solver-lp.c                             \
166         solver.h                                \
167         sort.c                                  \
168         sort.h                                  \
169         str.c                                   \
170         str.h                                   \
171         stf.c                                   \
172         stf.h                                   \
173         stf-parse.c                             \
174         stf-parse.h                             \
175         style.c                                 \
176         style.h                                 \
177         summary.c                               \
178         summary.h                               \
179         symbol.h                                \
180         symbol.c                                \
181         test.c                                  \
182         test.h                                  \
183         utils.c                                 \
184         utils.h                                 \
185         value.c                                 \
186         value.h                                 \
187         value-sheet.c                           \
188         wizard.h                                \
189         workbook.c                              \
190         workbook.h                              \
191         workbook-cmd-format.c                   \
192         workbook-cmd-format.h                   \
193         workbook-format-toolbar.c               \
194         workbook-format-toolbar.h               \
195         workbook-private.h                      \
196         workbook-view.h                         \
197         workbook-view.c                         \
198         xml-io.c                                \
199         xml-io.h
201 GNUMERIC_BONOBO_SOURCES =                       \
202         embeddable-grid.c                       \
203         embeddable-grid.h                       \
204         sheet-object-bonobo.c                   \
205         sheet-object-bonobo.h                   \
206         sheet-object-container.c                \
207         sheet-object-container.h                \
208         sheet-object-item.c                     \
209         sheet-object-item.h                     \
210         sheet-vector.c                          \
211         sheet-vector.h
213 gnumeric_SOURCES =                                      \
214         main.c                                          \
215         normal-args.c                                   \
216         $(GNUMERIC_BASE_SOURCES)
218 gnumeric_bonobo_SOURCES =                               \
219         main.c                                          \
220         corba-args.c                                    \
221         corba-sheet.c                                   \
222         corba-workbook.c                                \
223         corba-workbook-factory.c                        \
224         $(GNUMERIC_BASE_SOURCES)                        \
225         $(GNUMERIC_BONOBO_SOURCES)
227 gnumeric_LDFLAGS = -export-dynamic
229 gnumeric_libs =                                         \
230         ../plugins/excel/libexcel.a                     \
231         ../plugins/excel/libole2/libole2.a              \
232         dialogs/libdialogs.a                            \
233         widgets/libwidgets.a                            \
234         functions/libfunctions.a                
236 gnumeric_LDADD =                                        \
237         $(gnumeric_libs)                                \
238         $(EXTRA_GNOME_LIBS)                             \
239         $(GNOME_XML_LIB)                                \
240         $(GUILE_LIBS)                                   \
241         $(INTLLIBS)
243 gnumeric_bonobo_LDADD =                                 \
244         $(gnumeric_libs)                                \
245         ../wizards/graphics/libwizard_graphics.a        \
246         ../idl/libGnumeric.a                            \
247         ../idl/libGraph.a                               \
248         $(EXTRA_GNOME_LIBS)                             \
249         $(GNOME_XML_LIB)                                \
250         $(GUILE_LIBS)                                   \
251         $(INTLLIBS)
254         wc -l $(gnumeric_SOURCES)
256 wc_bonobo:
257         wc -l $(gnumeric_SOURCES) $(GNUMERIC_BONOBO_SOURCES)
259 dist-hook:
260         -mkdir $(distdir)/pixmaps
261         cp $(srcdir)/pixmaps/*.xpm $(distdir)/pixmaps
263 #number_match_SOURCES = number-match.c  formats.c dates.c number-match-test.c
265 #number_match_LDADD =                   \
266 #       $(GNOME_LIBDIR)                 \
267 #       $(GNOMEUI_LIBS)                 \
268 #       $(GNOME_XML_LIB)                \
269 #       $(INTLLIBS)
271 EXTRA_DIST = portability.h.in