]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
* src/cursor.C
[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         Color.C \
89         Color.h \
90         CutAndPaste.C \
91         CutAndPaste.h \
92         DepTable.C \
93         DepTable.h \
94         FloatList.C \
95         FloatList.h \
96         Floating.C \
97         Floating.h \
98         FontIterator.C \
99         FontIterator.h \
100         FuncStatus.C \
101         FuncStatus.h \
102         InsetList.C \
103         InsetList.h \
104         LColor.C \
105         LColor.h \
106         LaTeX.C \
107         LaTeX.h \
108         LaTeXFeatures.C \
109         LaTeXFeatures.h \
110         LyXAction.C \
111         LyXAction.h \
112         MenuBackend.C \
113         MenuBackend.h \
114         ParagraphList_fwd.h \
115         ParagraphParameters.C \
116         ParagraphParameters.h \
117         PrinterParams.C \
118         PrinterParams.h \
119         RowList_fwd.h \
120         Spacing.C \
121         Spacing.h \
122         Thesaurus.C \
123         Thesaurus.h \
124         ToolbarBackend.C \
125         ToolbarBackend.h \
126         WordLangTuple.h \
127         author.C \
128         author.h \
129         boost.C \
130         box.h \
131         box.C \
132         buffer.C \
133         buffer.h \
134         buffer_funcs.C \
135         buffer_funcs.h \
136         bufferlist.C \
137         bufferlist.h \
138         bufferparams.C \
139         bufferparams.h \
140         bufferview_funcs.C \
141         bufferview_funcs.h \
142         changes.C \
143         changes.h \
144         chset.C \
145         chset.h \
146         config.h.in \
147         converter.C \
148         converter.h \
149         counters.C \
150         counters.h \
151         coordcache.C \
152         coordcache.h \
153         cursor.C \
154         cursor.h \
155         cursor_slice.C \
156         cursor_slice.h \
157         debug.C \
158         debug.h \
159         dimension.C \
160         dimension.h \
161         dociterator.C \
162         dociterator.h \
163         dispatchresult.h \
164         encoding.C \
165         encoding.h \
166         errorlist.C \
167         errorlist.h \
168         exporter.C \
169         exporter.h \
170         gettext.C \
171         gettext.h \
172         factory.h \
173         factory.C \
174         format.C \
175         format.h \
176         funcrequest.h \
177         funcrequest.C \
178         graph.C \
179         graph.h \
180         importer.C \
181         importer.h \
182         intl.C \
183         intl.h \
184         insetiterator.C \
185         insetiterator.h \
186         kbmap.C \
187         kbmap.h \
188         kbsequence.C \
189         kbsequence.h \
190         language.C \
191         language.h \
192         lastfiles.C \
193         lastfiles.h \
194         layout.h \
195         lengthcommon.C \
196         lengthcommon.h \
197         lfuns.h \
198         lyx_cb.C \
199         lyx_cb.h \
200         lyx_main.C \
201         lyx_main.h \
202         lyx_sty.C \
203         lyx_sty.h \
204         lyxfont.C \
205         lyxfont.h \
206         lyxfind.C \
207         lyxfind.h \
208         lyxfunc.C \
209         lyxfunc.h \
210         lyxgluelength.C \
211         lyxgluelength.h \
212         lyxlayout.C \
213         lyxlayout.h \
214         lyxlayout_ptr_fwd.h \
215         lyxlength.C \
216         lyxlength.h \
217         lyxlex.C \
218         lyxlex.h \
219         lyxlex_pimpl.C \
220         lyxlex_pimpl.h \
221         lyxrc.C \
222         lyxrc.h \
223         lyxrow.C \
224         lyxrow.h \
225         lyxrow_funcs.C \
226         lyxrow_funcs.h \
227         lyxserver.C \
228         lyxserver.h \
229         lyxsocket.C \
230         lyxsocket.h \
231         lyxtext.h \
232         lyxtextclass.C \
233         lyxtextclass.h \
234         lyxtextclasslist.C \
235         lyxtextclasslist.h \
236         lyxvc.C \
237         lyxvc.h \
238         messages.C \
239         messages.h \
240         metricsinfo.C \
241         metricsinfo.h \
242         mover.C \
243         mover.h \
244         output.C \
245         output.h \
246         outputparams.C \
247         outputparams.h \
248         output_docbook.C \
249         output_docbook.h \
250         output_latex.C \
251         output_latex.h \
252         output_linuxdoc.C \
253         output_linuxdoc.h \
254         output_plaintext.C \
255         output_plaintext.h \
256         paper.h \
257         paragraph.C \
258         paragraph.h \
259         paragraph_funcs.C \
260         paragraph_funcs.h \
261         paragraph_pimpl.C \
262         paragraph_pimpl.h \
263         pariterator.C \
264         pariterator.h \
265         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
266         SpellBase.h \
267         rowpainter.C \
268         rowpainter.h \
269         sgml.C \
270         sgml.h \
271         tabular.C \
272         tabular.h \
273         tex-accent.C \
274         tex-accent.h \
275         tex-strings.C \
276         tex-strings.h \
277         texrow.C \
278         texrow.h \
279         text.C \
280         text2.C \
281         text3.C \
282         toc.C \
283         toc.h \
284         trans.C \
285         trans.h \
286         trans_decl.h \
287         trans_mgr.C \
288         trans_mgr.h \
289         undo.C \
290         undo.h \
291         vc-backend.C \
292         vc-backend.h \
293         version.C \
294         version.h \
295         vspace.C \
296         vspace.h
297
298 version.C: stamp-version
299         @:
300
301 stamp-version: version.C-tmp
302         if cmp -s $< version.C ; then \
303                 : ;\
304         else \
305                 rm -f version.C ;\
306                 cp $< version.C ;\
307         fi
308         echo timestamp > $@