]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
19a9819b1f4f8c64d77a59b4f568785889da1704
[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 SUBDIRS = mathed insets graphics support frontends . client tex2lyx
8
9 EXTRA_DIST = config.h.in stamp-h.in version.C.in \
10         Sectioning.h \
11         Sectioning.C \
12         Variables.C \
13         Variables.h \
14         paper.h
15
16 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
17         frontends/libfrontends.la
18
19 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
20         graphics/libgraphics.la \
21         support/libsupport.la
22
23 if USE_INCLUDED_BOOST
24 BOOST_LIBS = $(top_builddir)/boost/libs/regex/src/libboostregex.la \
25         $(top_builddir)/boost/libs/signals/src/libboostsignals.la
26 else
27 BOOST_LIBS = -lboost_regex -lboost_signals
28 endif
29
30 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
31
32 bin_PROGRAMS = lyx
33 noinst_PROGRAMS = $(FRONTENDS_PROGS)
34 EXTRA_PROGRAMS = lyx-xforms lyx-qt lyx-gtk
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_gtk_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
46         frontends/gtk/libgtk.la $(LYX_POST_LIBS) $(OTHERLIBS)
47 lyx_gtk_SOURCES = main.C
48
49 lyx$(EXEEXT): $(FRONTENDS_PROGS)
50         rm -f $@
51         $(LN_S) $< $@
52
53 #lyx_LDFLAGS=-Wl,-O1
54
55 INCLUDES = $(BOOST_INCLUDES)
56
57 BUILT_SOURCES = version.C
58
59 AM_CXXFLAGS = $(PCH_FLAGS)
60
61 lyx_SOURCES = \
62         Bidi.C \
63         Bidi.h \
64         BufferView.C \
65         BufferView.h \
66         BufferView_pimpl.C \
67         BufferView_pimpl.h \
68         Bullet.C \
69         Bullet.h \
70         BranchList.C \
71         BranchList.h \
72         Chktex.C \
73         Chktex.h \
74         CutAndPaste.C \
75         CutAndPaste.h \
76         DepTable.C \
77         DepTable.h \
78         FloatList.C \
79         FloatList.h \
80         Floating.C \
81         Floating.h \
82         FontIterator.C \
83         FontIterator.h \
84         FuncStatus.C \
85         FuncStatus.h \
86         InsetList.C \
87         InsetList.h \
88         LColor.C \
89         LColor.h \
90         LaTeX.C \
91         LaTeX.h \
92         LaTeXFeatures.C \
93         LaTeXFeatures.h \
94         LyXAction.C \
95         LyXAction.h \
96         MenuBackend.C \
97         MenuBackend.h \
98         ParagraphList_fwd.h \
99         ParagraphParameters.C \
100         ParagraphParameters.h \
101         PrinterParams.C \
102         PrinterParams.h \
103         RowList_fwd.h \
104         Spacing.C \
105         Spacing.h \
106         Thesaurus.C \
107         Thesaurus.h \
108         ToolbarBackend.C \
109         ToolbarBackend.h \
110         WordLangTuple.h \
111         aspell.C \
112         aspell_local.h \
113         author.C \
114         author.h \
115         boost.C \
116         box.h \
117         box.C \
118         broken_headers.h \
119         buffer.C \
120         buffer.h \
121         buffer_funcs.C \
122         buffer_funcs.h \
123         bufferlist.C \
124         bufferlist.h \
125         bufferparams.C \
126         bufferparams.h \
127         bufferview_funcs.C \
128         bufferview_funcs.h \
129         changes.C \
130         changes.h \
131         chset.C \
132         chset.h \
133         config.h.in \
134         converter.C \
135         converter.h \
136         counters.C \
137         counters.h \
138         coordcache.C \
139         coordcache.h \
140         cursor.C \
141         cursor.h \
142         cursor_slice.C \
143         cursor_slice.h \
144         debug.C \
145         debug.h \
146         dimension.C \
147         dimension.h \
148         dociterator.C \
149         dociterator.h \
150         dispatchresult.h \
151         encoding.C \
152         encoding.h \
153         errorlist.C \
154         errorlist.h \
155         exporter.C \
156         exporter.h \
157         gettext.C \
158         gettext.h \
159         factory.h \
160         factory.C \
161         format.C \
162         format.h \
163         funcrequest.h \
164         funcrequest.C \
165         graph.C \
166         graph.h \
167         importer.C \
168         importer.h \
169         intl.C \
170         intl.h \
171         insetiterator.C \
172         insetiterator.h \
173         kbmap.C \
174         kbmap.h \
175         kbsequence.C \
176         kbsequence.h \
177         language.C \
178         language.h \
179         lastfiles.C \
180         lastfiles.h \
181         layout.h \
182         lengthcommon.C \
183         lengthcommon.h \
184         lfuns.h \
185         lyx_cb.C \
186         lyx_cb.h \
187         lyx_main.C \
188         lyx_main.h \
189         lyx_sty.C \
190         lyx_sty.h \
191         lyxfont.C \
192         lyxfont.h \
193         lyxfind.C \
194         lyxfind.h \
195         lyxfunc.C \
196         lyxfunc.h \
197         lyxgluelength.C \
198         lyxgluelength.h \
199         lyxlayout.C \
200         lyxlayout.h \
201         lyxlayout_ptr_fwd.h \
202         lyxlength.C \
203         lyxlength.h \
204         lyxlex.C \
205         lyxlex.h \
206         lyxlex_pimpl.C \
207         lyxlex_pimpl.h \
208         lyxrc.C \
209         lyxrc.h \
210         lyxrow.C \
211         lyxrow.h \
212         lyxrow_funcs.C \
213         lyxrow_funcs.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         output.C \
230         output.h \
231         outputparams.C \
232         outputparams.h \
233         output_docbook.C \
234         output_docbook.h \
235         output_latex.C \
236         output_latex.h \
237         output_linuxdoc.C \
238         output_linuxdoc.h \
239         output_plaintext.C \
240         output_plaintext.h \
241         paper.h \
242         paragraph.C \
243         paragraph.h \
244         paragraph_funcs.C \
245         paragraph_funcs.h \
246         paragraph_pimpl.C \
247         paragraph_pimpl.h \
248         pariterator.C \
249         pariterator.h \
250         SpellBase.h \
251         ispell.C \
252         ispell.h \
253         pspell.C \
254         pspell.h \
255         rowpainter.C \
256         rowpainter.h \
257         sgml.C \
258         sgml.h \
259         tabular.C \
260         tabular.h \
261         tex-accent.C \
262         tex-accent.h \
263         tex-strings.C \
264         tex-strings.h \
265         texrow.C \
266         texrow.h \
267         text.C \
268         text2.C \
269         text3.C \
270         toc.C \
271         toc.h \
272         trans.C \
273         trans.h \
274         trans_decl.h \
275         trans_mgr.C \
276         trans_mgr.h \
277         undo.C \
278         undo.h \
279         vc-backend.C \
280         vc-backend.h \
281         version.C \
282         version.h \
283         vspace.C \
284         vspace.h
285
286 dist_noinst_DATA = \
287         cheaders/ChangeLog \
288         cheaders/cassert \
289         cheaders/cctype \
290         cheaders/cerrno \
291         cheaders/climits \
292         cheaders/clocale \
293         cheaders/cmath \
294         cheaders/csignal \
295         cheaders/cstdarg \
296         cheaders/cstddef \
297         cheaders/cstdio \
298         cheaders/cstdlib \
299         cheaders/cstring \
300         cheaders/ctime
301
302 version.C: stamp-version
303         @:
304
305 stamp-version: version.C-tmp
306         if cmp -s $< version.C ; then \
307                 : ;\
308         else \
309                 rm -f version.C ;\
310                 cp $< version.C ;\
311         fi
312         echo timestamp > $@