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