]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
fix crash when collapsing ert with cursor inside
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-tmp
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 if BUILD_CLIENT_SUBDIR
8 CLIENT = client
9 endif
10
11 SUBDIRS = mathed insets graphics support frontends . $(CLIENT) tex2lyx
12
13 EXTRA_DIST = config.h.in stamp-h.in version.C.in \
14         Sectioning.h \
15         Sectioning.C \
16         Variables.C \
17         Variables.h \
18         paper.h
19
20 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
21         frontends/libfrontends.la
22
23 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
24         graphics/libgraphics.la \
25         support/libsupport.la
26
27 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM)
28
29 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
30
31 bin_PROGRAMS = lyx
32 noinst_PROGRAMS = $(FRONTENDS_PROGS)
33 EXTRA_PROGRAMS = lyx-xforms lyx-qt lyx-gtk
34
35 lyx_xforms_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
36         frontends/xforms/libxforms.la $(LYX_POST_LIBS) $(OTHERLIBS)
37
38 lyx_xforms_SOURCES = main.C
39
40 lyx_qt_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
41         frontends/qt2/libqt2.la $(LYX_POST_LIBS) $(OTHERLIBS)
42 lyx_qt_SOURCES = main.C
43
44 lyx_gtk_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
45         frontends/gtk/libgtk.la $(LYX_POST_LIBS) $(OTHERLIBS)
46 lyx_gtk_SOURCES = main.C
47
48 lyx$(EXEEXT): $(FRONTENDS_PROGS)
49         rm -f $@
50         $(LN_S) $< $@
51
52 #lyx_LDFLAGS=-Wl,-O1
53
54 BUILT_SOURCES = version.C
55
56 AM_CPPFLAGS = $(PCH_FLAGS) $(BOOST_INCLUDES)
57
58 if USE_ASPELL
59 ASPELL = aspell.C aspell_local.h
60 endif
61 if USE_PSPELL
62 PSPELL = pspell.C pspell.h
63 endif
64 if USE_ISPELL
65 ISPELL = ispell.C ispell.h
66 endif
67
68
69
70 lyx_SOURCES = \
71         Bidi.C \
72         Bidi.h \
73         BufferView.C \
74         BufferView.h \
75         BufferView_pimpl.C \
76         BufferView_pimpl.h \
77         Bullet.C \
78         Bullet.h \
79         BranchList.C \
80         BranchList.h \
81         Chktex.C \
82         Chktex.h \
83         CutAndPaste.C \
84         CutAndPaste.h \
85         DepTable.C \
86         DepTable.h \
87         FloatList.C \
88         FloatList.h \
89         Floating.C \
90         Floating.h \
91         FontIterator.C \
92         FontIterator.h \
93         FuncStatus.C \
94         FuncStatus.h \
95         InsetList.C \
96         InsetList.h \
97         LColor.C \
98         LColor.h \
99         LaTeX.C \
100         LaTeX.h \
101         LaTeXFeatures.C \
102         LaTeXFeatures.h \
103         LyXAction.C \
104         LyXAction.h \
105         MenuBackend.C \
106         MenuBackend.h \
107         ParagraphList_fwd.h \
108         ParagraphParameters.C \
109         ParagraphParameters.h \
110         PrinterParams.C \
111         PrinterParams.h \
112         RowList_fwd.h \
113         Spacing.C \
114         Spacing.h \
115         Thesaurus.C \
116         Thesaurus.h \
117         ToolbarBackend.C \
118         ToolbarBackend.h \
119         WordLangTuple.h \
120         author.C \
121         author.h \
122         boost.C \
123         box.h \
124         box.C \
125         buffer.C \
126         buffer.h \
127         buffer_funcs.C \
128         buffer_funcs.h \
129         bufferlist.C \
130         bufferlist.h \
131         bufferparams.C \
132         bufferparams.h \
133         bufferview_funcs.C \
134         bufferview_funcs.h \
135         changes.C \
136         changes.h \
137         chset.C \
138         chset.h \
139         config.h.in \
140         converter.C \
141         converter.h \
142         counters.C \
143         counters.h \
144         coordcache.C \
145         coordcache.h \
146         cursor.C \
147         cursor.h \
148         cursor_slice.C \
149         cursor_slice.h \
150         debug.C \
151         debug.h \
152         dimension.C \
153         dimension.h \
154         dociterator.C \
155         dociterator.h \
156         dispatchresult.h \
157         encoding.C \
158         encoding.h \
159         errorlist.C \
160         errorlist.h \
161         exporter.C \
162         exporter.h \
163         gettext.C \
164         gettext.h \
165         factory.h \
166         factory.C \
167         format.C \
168         format.h \
169         funcrequest.h \
170         funcrequest.C \
171         graph.C \
172         graph.h \
173         importer.C \
174         importer.h \
175         intl.C \
176         intl.h \
177         insetiterator.C \
178         insetiterator.h \
179         kbmap.C \
180         kbmap.h \
181         kbsequence.C \
182         kbsequence.h \
183         language.C \
184         language.h \
185         lastfiles.C \
186         lastfiles.h \
187         layout.h \
188         lengthcommon.C \
189         lengthcommon.h \
190         lfuns.h \
191         lyx_cb.C \
192         lyx_cb.h \
193         lyx_main.C \
194         lyx_main.h \
195         lyx_sty.C \
196         lyx_sty.h \
197         lyxfont.C \
198         lyxfont.h \
199         lyxfind.C \
200         lyxfind.h \
201         lyxfunc.C \
202         lyxfunc.h \
203         lyxgluelength.C \
204         lyxgluelength.h \
205         lyxlayout.C \
206         lyxlayout.h \
207         lyxlayout_ptr_fwd.h \
208         lyxlength.C \
209         lyxlength.h \
210         lyxlex.C \
211         lyxlex.h \
212         lyxlex_pimpl.C \
213         lyxlex_pimpl.h \
214         lyxrc.C \
215         lyxrc.h \
216         lyxrow.C \
217         lyxrow.h \
218         lyxrow_funcs.C \
219         lyxrow_funcs.h \
220         lyxserver.C \
221         lyxserver.h \
222         lyxsocket.C \
223         lyxsocket.h \
224         lyxtext.h \
225         lyxtextclass.C \
226         lyxtextclass.h \
227         lyxtextclasslist.C \
228         lyxtextclasslist.h \
229         lyxvc.C \
230         lyxvc.h \
231         messages.C \
232         messages.h \
233         metricsinfo.C \
234         metricsinfo.h \
235         mover.C \
236         mover.h \
237         output.C \
238         output.h \
239         outputparams.C \
240         outputparams.h \
241         output_docbook.C \
242         output_docbook.h \
243         output_latex.C \
244         output_latex.h \
245         output_linuxdoc.C \
246         output_linuxdoc.h \
247         output_plaintext.C \
248         output_plaintext.h \
249         paper.h \
250         paragraph.C \
251         paragraph.h \
252         paragraph_funcs.C \
253         paragraph_funcs.h \
254         paragraph_pimpl.C \
255         paragraph_pimpl.h \
256         pariterator.C \
257         pariterator.h \
258         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
259         SpellBase.h \
260         rowpainter.C \
261         rowpainter.h \
262         sgml.C \
263         sgml.h \
264         tabular.C \
265         tabular.h \
266         tex-accent.C \
267         tex-accent.h \
268         tex-strings.C \
269         tex-strings.h \
270         texrow.C \
271         texrow.h \
272         text.C \
273         text2.C \
274         text3.C \
275         toc.C \
276         toc.h \
277         trans.C \
278         trans.h \
279         trans_decl.h \
280         trans_mgr.C \
281         trans_mgr.h \
282         undo.C \
283         undo.h \
284         vc-backend.C \
285         vc-backend.h \
286         version.C \
287         version.h \
288         vspace.C \
289         vspace.h
290
291 version.C: stamp-version
292         @:
293
294 stamp-version: version.C-tmp
295         if cmp -s $< version.C ; then \
296                 : ;\
297         else \
298                 rm -f version.C ;\
299                 cp $< version.C ;\
300         fi
301         echo timestamp > $@