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