]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
9751daab0631e96bfa850a4fcb9e057f8e32cdb7
[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         Section.h \
15         Section.cpp \
16         Variables.cpp \
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.cpp
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.cpp ASpell_local.h
52 endif
53 if USE_PSPELL
54 PSPELL = PSpell.cpp PSpell.h
55 endif
56 if USE_ISPELL
57 ISPELL = ISpell.cpp ISpell.h
58 endif
59
60
61
62 lyx_SOURCES = \
63         Bidi.cpp \
64         Bidi.h \
65         BufferView.cpp \
66         BufferView.h \
67         Bullet.cpp \
68         Bullet.h \
69         BranchList.cpp \
70         BranchList.h \
71         Chktex.cpp \
72         Chktex.h \
73         color.cpp \
74         color.h \
75         ConverterCache.cpp \
76         ConverterCache.h \
77         CutAndPaste.cpp \
78         CutAndPaste.h \
79         DepTable.cpp \
80         DepTable.h \
81         FloatList.cpp \
82         FloatList.h \
83         Floating.cpp \
84         Floating.h \
85         FontIterator.cpp \
86         FontIterator.h \
87         FuncStatus.cpp \
88         FuncStatus.h \
89         InsetList.cpp \
90         InsetList.h \
91         Color.cpp \
92         Color.h \
93         LaTeX.cpp \
94         LaTeX.h \
95         LaTeXFeatures.cpp \
96         LaTeXFeatures.h \
97         LyXAction.cpp \
98         LyXAction.h \
99         MenuBackend.cpp \
100         MenuBackend.h \
101         ParagraphList.h \
102         ParagraphList_fwd.h \
103         ParagraphParameters.cpp \
104         ParagraphParameters.h \
105         PrinterParams.cpp \
106         PrinterParams.h \
107         RowList_fwd.h \
108         Spacing.cpp \
109         Spacing.h \
110         Thesaurus.cpp \
111         Thesaurus.h \
112         ToolbarBackend.cpp \
113         ToolbarBackend.h \
114         UpdateFlags.h \
115         WordLangTuple.h \
116         Author.cpp \
117         Author.h \
118         boost.cpp \
119         Box.h \
120         Box.cpp \
121         Buffer.cpp \
122         Buffer.h \
123         buffer_funcs.cpp \
124         buffer_funcs.h \
125         BufferList.cpp \
126         BufferList.h \
127         BufferParams.cpp \
128         BufferParams.h \
129         bufferview_funcs.cpp \
130         bufferview_funcs.h \
131         Changes.cpp \
132         Changes.h \
133         config.h.in \
134         Converter.cpp \
135         Converter.h \
136         Counters.cpp \
137         Counters.h \
138         CoordCache.cpp \
139         CoordCache.h \
140         Cursor.cpp \
141         Cursor.h \
142         CursorSlice.cpp \
143         CursorSlice.h \
144         debug.cpp \
145         debug.h \
146         Dimension.cpp \
147         Dimension.h \
148         DocIterator.cpp \
149         DocIterator.h \
150         DispatchResult.h \
151         Encoding.cpp \
152         Encoding.h \
153         ErrorList.cpp \
154         ErrorList.h \
155         Exporter.cpp \
156         Exporter.h \
157         gettext.cpp \
158         gettext.h \
159         factory.h \
160         factory.cpp \
161         Format.cpp \
162         Format.h \
163         FuncRequest.h \
164         FuncRequest.cpp \
165         Graph.cpp \
166         Graph.h \
167         Importer.cpp \
168         Importer.h \
169         Intl.cpp \
170         Intl.h \
171         InsetIterator.cpp \
172         InsetIterator.h \
173         kb_keymap.cpp \
174         kb_keymap.h \
175         kb_sequence.cpp \
176         kb_sequence.h \
177         Language.cpp \
178         Language.h \
179         Session.cpp \
180         Session.h \
181         layout.h \
182         lengthcommon.cpp \
183         lengthcommon.h \
184         Lexer.cpp \
185         Lexer.h \
186         lfuns.h \
187         lyx_cb.cpp \
188         lyx_cb.h \
189         LyX.cpp \
190         LyX.h \
191         lyx_sty.cpp \
192         lyx_sty.h \
193         LyXFont.cpp \
194         LyXFont.h \
195         lyxfind.cpp \
196         lyxfind.h \
197         LyXFunc.cpp \
198         LyXFunc.h \
199         LyXGlueLength.cpp \
200         LyXGlueLength.h \
201         LyXLayout.cpp \
202         LyXLayout.h \
203         lyxlayout_ptr_fwd.h \
204         LyXLength.cpp \
205         LyXLength.h \
206         LyXRC.cpp \
207         LyXRC.h \
208         Row.cpp \
209         Row.h \
210         LyXServer.cpp \
211         LyXServer.h \
212         LyXServerSocket.cpp \
213         LyXServerSocket.h \
214         LyXText.h \
215         LyXTextClass.cpp \
216         LyXTextClass.h \
217         LyXTextClassList.cpp \
218         LyXTextClassList.h \
219         LyXVC.cpp \
220         LyXVC.h \
221         Messages.cpp \
222         Messages.h \
223         MetricsInfo.cpp \
224         MetricsInfo.h \
225         Mover.cpp \
226         Mover.h \
227         output.cpp \
228         output.h \
229         OutputParams.cpp \
230         OutputParams.h \
231         output_docbook.cpp \
232         output_docbook.h \
233         output_latex.cpp \
234         output_latex.h \
235         output_plaintext.cpp \
236         output_plaintext.h \
237         paper.h \
238         Paragraph.cpp \
239         Paragraph.h \
240         ParagraphMetrics.cpp \
241         ParagraphMetrics.h \
242         paragraph_funcs.cpp \
243         paragraph_funcs.h \
244         ParIterator.cpp \
245         ParIterator.h \
246         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
247         SpellBase.h \
248         rowpainter.cpp \
249         rowpainter.h \
250         sgml.cpp \
251         sgml.h \
252         tex-accent.cpp \
253         tex-accent.h \
254         tex-strings.cpp \
255         tex-strings.h \
256         TexRow.cpp \
257         TexRow.h \
258         text.cpp \
259         text2.cpp \
260         text3.cpp \
261         TextMetrics.cpp \
262         TextMetrics.h \
263         TocBackend.cpp \
264         TocBackend.h \
265         toc.cpp \
266         toc.h \
267         Trans.cpp \
268         Trans.h \
269         KmodInfo.h \
270         TransState.cpp \
271         TransState.h \
272         Undo.cpp \
273         Undo.h \
274         VCBackend.cpp \
275         VCBackend.h \
276         version.C \
277         version.h \
278         VSpace.cpp \
279         VSpace.h
280
281 version.C: stamp-version
282         @:
283
284 stamp-version: version.C-tmp
285         if cmp -s $< version.C ; then \
286                 : ;\
287         else \
288                 rm -f version.C ;\
289                 cp $< version.C ;\
290         fi
291         echo timestamp > $@