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