]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
7a9aa96eec4c2c6a5877833e4a4a0320a07da1d0
[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 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 = ../boost/libs/regex/src/libboostregex.la \
25         ../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 lyx_SOURCES = \
60         Bidi.C \
61         Bidi.h \
62         BufferView.C \
63         BufferView.h \
64         BufferView_pimpl.C \
65         BufferView_pimpl.h \
66         Bullet.C \
67         Bullet.h \
68         BranchList.C \
69         BranchList.h \
70         Chktex.C \
71         Chktex.h \
72         CutAndPaste.C \
73         CutAndPaste.h \
74         DepTable.C \
75         DepTable.h \
76         FloatList.C \
77         FloatList.h \
78         Floating.C \
79         Floating.h \
80         FontIterator.C \
81         FontIterator.h \
82         FuncStatus.C \
83         FuncStatus.h \
84         InsetList.C \
85         InsetList.h \
86         LColor.C \
87         LColor.h \
88         LaTeX.C \
89         LaTeX.h \
90         LaTeXFeatures.C \
91         LaTeXFeatures.h \
92         LyXAction.C \
93         LyXAction.h \
94         MenuBackend.C \
95         MenuBackend.h \
96         ParagraphList_fwd.h \
97         ParagraphParameters.C \
98         ParagraphParameters.h \
99         PrinterParams.C \
100         PrinterParams.h \
101         RowList_fwd.h \
102         ShareContainer.h \
103         Spacing.C \
104         Spacing.h \
105         Thesaurus.C \
106         Thesaurus.h \
107         ToolbarBackend.C \
108         ToolbarBackend.h \
109         WordLangTuple.h \
110         aspell.C \
111         aspell_local.h \
112         author.C \
113         author.h \
114         boost.C \
115         box.h \
116         box.C \
117         broken_headers.h \
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         output.C \
229         output.h \
230         outputparams.C \
231         outputparams.h \
232         output_docbook.C \
233         output_docbook.h \
234         output_latex.C \
235         output_latex.h \
236         output_linuxdoc.C \
237         output_linuxdoc.h \
238         output_plaintext.C \
239         output_plaintext.h \
240         paper.h \
241         paragraph.C \
242         paragraph.h \
243         paragraph_funcs.C \
244         paragraph_funcs.h \
245         paragraph_pimpl.C \
246         paragraph_pimpl.h \
247         pariterator.C \
248         pariterator.h \
249         SpellBase.h \
250         ispell.C \
251         ispell.h \
252         pspell.C \
253         pspell.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         toc.C \
270         toc.h \
271         trans.C \
272         trans.h \
273         trans_decl.h \
274         trans_mgr.C \
275         trans_mgr.h \
276         undo.C \
277         undo.h \
278         vc-backend.C \
279         vc-backend.h \
280         version.C \
281         version.h \
282         vspace.C \
283         vspace.h
284
285 dist_noinst_DATA = \
286         cheaders/ChangeLog \
287         cheaders/cassert \
288         cheaders/cctype \
289         cheaders/cerrno \
290         cheaders/climits \
291         cheaders/clocale \
292         cheaders/cmath \
293         cheaders/csignal \
294         cheaders/cstdarg \
295         cheaders/cstddef \
296         cheaders/cstdio \
297         cheaders/cstdlib \
298         cheaders/cstring \
299         cheaders/ctime
300
301 version.C: stamp-version
302         @:
303
304 stamp-version: version.C-tmp
305         if cmp -s $< version.C ; then \
306                 : ;\
307         else \
308                 rm -f version.C ;\
309                 cp $< version.C ;\
310         fi
311         echo timestamp > $@