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