]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
* Paragraph: reserve memory by chunks of 100 chars. This improve the loading of big...
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 DISTCLEANFILES += config.h libintl.h
6
7 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
8
9 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES)
10
11 SUBDIRS = support frontends .
12
13 EXTRA_DIST = config.h.in \
14         Section.h \
15         Section.cpp \
16         Variables.cpp \
17         Variables.h \
18         paper.h \
19         pch.h
20
21 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
22
23 noinst_LTLIBRARIES = liblyxcore.la
24 bin_PROGRAMS = lyx
25
26 lyx_LDADD = \
27         liblyxcore.la \
28         liblyxmathed.la \
29         liblyxinsets.la \
30         frontends/liblyxfrontends.la \
31         frontends/qt4/liblyxqt4.la \
32         liblyxgraphics.la \
33         support/liblyxsupport.la \
34         $(OTHERLIBS) \
35         $(QT4_LIB) 
36
37 if LYX_WIN_RESOURCE
38 .rc.o:
39         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
40         windres -I. --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
41 endif
42
43 #lyx_LDFLAGS=-Wl,-O1
44
45 BUILT_SOURCES = $(PCH_FILE)
46
47 if USE_ASPELL
48 ASPELL = ASpell.cpp ASpell_local.h
49 endif
50 if USE_PSPELL
51 PSPELL = PSpell.cpp PSpell.h
52 endif
53 if USE_ISPELL
54 ISPELL = ISpell.cpp ISpell.h
55 endif
56
57 # These four objects are linked as object files as they are not
58 # referenced within the core and therefore are not picked up
59 # by the linker without looping over libs. We do not want that,
60 # and in fact libtools seems not able to do that.
61 lyx_SOURCES = \
62         main.cpp \
63         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
64         Box.cpp \
65         Box.h \
66         Dimension.cpp \
67         Dimension.h \
68         PrinterParams.cpp \
69         PrinterParams.h \
70         Thesaurus.cpp \
71         Thesaurus.h
72
73 if LYX_WIN_RESOURCE
74 lyx_SOURCES += lyxwinres.rc
75 endif
76
77 liblyxcore_la_SOURCES = \
78         Author.cpp \
79         Author.h \
80         BiblioInfo.h \
81         BiblioInfo.cpp \
82         Bidi.cpp \
83         Bidi.h \
84         boost.cpp \
85         BranchList.cpp \
86         BranchList.h \
87         Buffer.cpp \
88         buffer_funcs.cpp \
89         buffer_funcs.h \
90         Buffer.h \
91         BufferList.cpp \
92         BufferList.h \
93         BufferParams.cpp \
94         BufferParams.h \
95         BufferView.cpp \
96         BufferView.h \
97         Bullet.cpp \
98         Bullet.h \
99         Changes.cpp \
100         Changes.h \
101         Chktex.cpp \
102         Chktex.h \
103         CmdDef.cpp \
104         CmdDef.h \
105         Color.cpp \
106         Color.h \
107         config.h.in \
108         ConverterCache.cpp \
109         ConverterCache.h \
110         Converter.cpp \
111         Converter.h \
112         CoordCache.cpp \
113         CoordCache.h \
114         Counters.cpp \
115         Counters.h \
116         Cursor.cpp \
117         Cursor.h \
118         CursorSlice.cpp \
119         CursorSlice.h \
120         CutAndPaste.cpp \
121         CutAndPaste.h \
122         debug.cpp \
123         debug.h \
124         DepTable.cpp \
125         DepTable.h \
126         DispatchResult.h \
127         DocIterator.cpp \
128         DocIterator.h \
129         EmbeddedFiles.h \
130         EmbeddedFiles.cpp \
131         Encoding.cpp \
132         Encoding.h \
133         ErrorList.cpp \
134         ErrorList.h \
135         Exporter.cpp \
136         Exporter.h \
137         factory.cpp \
138         factory.h \
139         Floating.cpp \
140         Floating.h \
141         FloatList.cpp \
142         FloatList.h \
143         Font.cpp \
144         Font.h \
145         FontIterator.cpp \
146         FontIterator.h \
147         FontList.cpp \
148         FontList.h \
149         Format.cpp \
150         Format.h \
151         FuncRequest.cpp \
152         FuncRequest.h \
153         FuncStatus.cpp \
154         FuncStatus.h \
155         gettext.cpp \
156         gettext.h \
157         Graph.cpp \
158         Graph.h \
159         Importer.cpp \
160         Importer.h \
161         InsetIterator.cpp \
162         InsetIterator.h \
163         InsetList.cpp \
164         InsetList.h \
165         Intl.cpp \
166         Intl.h \
167         KeyMap.cpp \
168         KeyMap.h \
169         KeySequence.cpp \
170         KeySequence.h \
171         Language.cpp \
172         Language.h \
173         LaTeX.cpp \
174         LaTeXFeatures.cpp \
175         LaTeXFeatures.h \
176         LaTeX.h \
177         Layout.cpp \
178         Layout.h \
179         LayoutEnums.h \
180         Length.cpp \
181         Length.h \
182         lengthcommon.cpp \
183         lengthcommon.h \
184         Lexer.cpp \
185         Lexer.h \
186         lfuns.h \
187         LyXAction.cpp \
188         LyXAction.h \
189         LyX.cpp \
190         lyxfind.cpp \
191         lyxfind.h \
192         LyXFunc.cpp \
193         LyXFunc.h \
194         LyX.h \
195         lyxlayout_ptr_fwd.h \
196         LyXRC.cpp \
197         LyXRC.h \
198         Server.cpp \
199         Server.h \
200         ServerSocket.cpp \
201         ServerSocket.h \
202         LyXVC.cpp \
203         LyXVC.h \
204         MenuBackend.cpp \
205         MenuBackend.h \
206         Messages.cpp \
207         Messages.h \
208         MetricsInfo.cpp \
209         MetricsInfo.h \
210         ModuleList.cpp \
211         ModuleList.h \
212         Mover.cpp \
213         Mover.h \
214         output.cpp \
215         output_docbook.cpp \
216         output_docbook.h \
217         output.h \
218         output_latex.cpp \
219         output_latex.h \
220         OutputParams.cpp \
221         OutputParams.h \
222         output_plaintext.cpp \
223         output_plaintext.h \
224         paper.h \
225         Paragraph.cpp \
226         paragraph_funcs.cpp \
227         paragraph_funcs.h \
228         Paragraph.h \
229         ParagraphList.h \
230         ParagraphMetrics.cpp \
231         ParagraphMetrics.h \
232         ParagraphParameters.cpp \
233         ParagraphParameters.h \
234         ParIterator.cpp \
235         ParIterator.h \
236         PDFOptions.cpp \
237         PDFOptions.h \
238         Row.cpp \
239         Row.h \
240         rowpainter.cpp \
241         rowpainter.h \
242         Session.cpp \
243         Session.h \
244         sgml.cpp \
245         sgml.h \
246         Spacing.cpp \
247         Spacing.h \
248         SpellBase.h \
249         TexRow.cpp \
250         TexRow.h \
251         TexStream.cpp \
252         TexStream.h \
253         Text.h \
254         Text.cpp \
255         Text2.cpp \
256         Text3.cpp \
257         TextClass.cpp \
258         TextClass.h \
259         TextClassList.cpp \
260         TextClassList.h \
261         TextMetrics.cpp \
262         TextMetrics.h \
263         TocBackend.cpp \
264         TocBackend.h \
265         ToolbarBackend.cpp \
266         ToolbarBackend.h \
267         Trans.cpp \
268         Trans.h \
269         Undo.cpp \
270         Undo.h \
271         update_flags.h \
272         VCBackend.cpp \
273         VCBackend.h \
274         version.cpp \
275         version.h \
276         WordLangTuple.h \
277         VSpace.cpp \
278         VSpace.h
279 ############################### Graphics ##############################
280
281 noinst_LTLIBRARIES += liblyxgraphics.la
282
283 liblyxgraphics_la_SOURCES = \
284         graphics/GraphicsCache.h \
285         graphics/GraphicsCache.cpp \
286         graphics/GraphicsCacheItem.h \
287         graphics/GraphicsCacheItem.cpp \
288         graphics/GraphicsConverter.h \
289         graphics/GraphicsConverter.cpp \
290         graphics/GraphicsImage.h \
291         graphics/GraphicsImage.cpp \
292         graphics/GraphicsLoader.h \
293         graphics/GraphicsLoader.cpp \
294         graphics/GraphicsParams.cpp \
295         graphics/GraphicsParams.h \
296         graphics/LoaderQueue.h \
297         graphics/LoaderQueue.cpp \
298         graphics/GraphicsTypes.h \
299         graphics/GraphicsTypes.cpp \
300         graphics/PreviewImage.h \
301         graphics/PreviewImage.cpp \
302         graphics/PreviewLoader.h \
303         graphics/PreviewLoader.cpp \
304         graphics/Previews.h \
305         graphics/Previews.cpp
306
307
308 ############################### Mathed  ##############################
309
310 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
311
312 noinst_LTLIBRARIES += liblyxmathed.la
313
314 liblyxmathed_la_SOURCES = \
315         mathed/InsetMathAMSArray.cpp \
316         mathed/InsetMathAMSArray.h \
317         mathed/InsetMathArray.cpp \
318         mathed/InsetMathArray.h \
319         mathed/InsetMathBig.cpp \
320         mathed/InsetMathBig.h \
321         mathed/InsetMathBinom.cpp \
322         mathed/InsetMathBinom.h \
323         mathed/InsetMathBoldSymbol.cpp \
324         mathed/InsetMathBoldSymbol.h \
325         mathed/InsetMathBox.cpp \
326         mathed/InsetMathBoxed.cpp \
327         mathed/InsetMathBoxed.h \
328         mathed/InsetMathBox.h \
329         mathed/InsetMathBrace.cpp \
330         mathed/InsetMathBrace.h \
331         mathed/InsetMath.cpp \
332         mathed/InsetMathCases.cpp \
333         mathed/InsetMathCases.h \
334         mathed/InsetMathChar.cpp \
335         mathed/InsetMathChar.h \
336         mathed/InsetMathColor.cpp \
337         mathed/InsetMathColor.h \
338         mathed/CommandInset.cpp \
339         mathed/CommandInset.h \
340         mathed/InsetMathComment.cpp \
341         mathed/InsetMathComment.h \
342         mathed/InsetMathDecoration.cpp \
343         mathed/InsetMathDecoration.h \
344         mathed/InsetMathDelim.cpp \
345         mathed/InsetMathDelim.h \
346         mathed/InsetMathDFrac.cpp \
347         mathed/InsetMathDFrac.h \
348         mathed/InsetMathDiff.cpp \
349         mathed/InsetMathDiff.h \
350         mathed/InsetMathDots.cpp \
351         mathed/InsetMathDots.h \
352         mathed/InsetMathEnv.cpp \
353         mathed/InsetMathEnv.h \
354         mathed/InsetMathExFunc.cpp \
355         mathed/InsetMathExFunc.h \
356         mathed/InsetMathExInt.cpp \
357         mathed/InsetMathExInt.h \
358         mathed/InsetMathFBox.cpp \
359         mathed/InsetMathFBox.h \
360         mathed/InsetMathFont.cpp \
361         mathed/InsetMathFont.h \
362         mathed/InsetMathFontOld.cpp \
363         mathed/InsetMathFontOld.h \
364         mathed/InsetMathFracBase.cpp \
365         mathed/InsetMathFracBase.h \
366         mathed/InsetMathFrac.cpp \
367         mathed/InsetMathFrac.h \
368         mathed/InsetMathFrameBox.cpp \
369         mathed/InsetMathFrameBox.h \
370         mathed/InsetMathGrid.cpp \
371         mathed/InsetMathGrid.h \
372         mathed/InsetMath.h \
373         mathed/InsetMathHull.cpp \
374         mathed/InsetMathHull.h \
375         mathed/InsetMathKern.cpp \
376         mathed/InsetMathKern.h \
377         mathed/InsetMathLefteqn.cpp \
378         mathed/InsetMathLefteqn.h \
379         mathed/InsetMathLim.cpp \
380         mathed/InsetMathLim.h \
381         mathed/MathMacro.cpp \
382         mathed/MathMacro.h \
383         mathed/InsetMathMakebox.cpp \
384         mathed/InsetMathMakebox.h \
385         mathed/InsetMathMatrix.cpp \
386         mathed/InsetMathMatrix.h \
387         mathed/InsetMathNest.cpp \
388         mathed/InsetMathNest.h \
389         mathed/InsetMathNumber.cpp \
390         mathed/InsetMathNumber.h \
391         mathed/InsetMathOverset.cpp \
392         mathed/InsetMathOverset.h \
393         mathed/InsetMathPar.cpp \
394         mathed/InsetMathPar.h \
395         mathed/InsetMathPhantom.cpp \
396         mathed/InsetMathPhantom.h \
397         mathed/InsetMathRef.cpp \
398         mathed/InsetMathRef.h \
399         mathed/InsetMathRoot.cpp \
400         mathed/InsetMathRoot.h \
401         mathed/InsetMathScript.cpp \
402         mathed/InsetMathScript.h \
403         mathed/InsetMathSize.cpp \
404         mathed/InsetMathSize.h \
405         mathed/InsetMathSpace.cpp \
406         mathed/InsetMathSpace.h \
407         mathed/InsetMathSplit.cpp \
408         mathed/InsetMathSplit.h \
409         mathed/InsetMathSqrt.cpp \
410         mathed/InsetMathSqrt.h \
411         mathed/InsetMathStackrel.cpp \
412         mathed/InsetMathStackrel.h \
413         mathed/InsetMathString.cpp \
414         mathed/InsetMathString.h \
415         mathed/InsetMathSubstack.cpp \
416         mathed/InsetMathSubstack.h \
417         mathed/InsetMathSymbol.cpp \
418         mathed/InsetMathSymbol.h \
419         mathed/InsetMathTabular.cpp \
420         mathed/InsetMathTabular.h \
421         mathed/InsetMathTFrac.cpp \
422         mathed/InsetMathTFrac.h \
423         mathed/InsetMathUnderset.cpp \
424         mathed/InsetMathUnderset.h \
425         mathed/InsetMathUnknown.cpp \
426         mathed/InsetMathUnknown.h \
427         mathed/InsetMathXArrow.cpp \
428         mathed/InsetMathXArrow.h \
429         mathed/InsetMathXYMatrix.cpp \
430         mathed/InsetMathXYMatrix.h \
431         mathed/MathAtom.cpp \
432         mathed/MathAtom.h \
433         mathed/MathAutoCorrect.cpp \
434         mathed/MathAutoCorrect.h \
435         mathed/MathData.cpp \
436         mathed/MathData.h \
437         mathed/MathExtern.cpp \
438         mathed/MathExtern.h \
439         mathed/MathFactory.cpp \
440         mathed/MathFactory.h \
441         mathed/MathGridInfo.h \
442         mathed/MathMacroArgument.cpp \
443         mathed/MathMacroArgument.h \
444         mathed/MacroTable.cpp \
445         mathed/MacroTable.h \
446         mathed/MathMacroTemplate.cpp \
447         mathed/MathMacroTemplate.h \
448         mathed/MathParser.cpp \
449         mathed/MathParser.h \
450         mathed/ReplaceData.h \
451         mathed/MathStream.cpp \
452         mathed/MathStream.h \
453         mathed/MathSupport.cpp \
454         mathed/MathSupport.h \
455         mathed/TextPainter.cpp \
456         mathed/TextPainter.h 
457 #       mathed/InsetMathMBox.cpp
458 #       mathed/InsetMathMBox.h
459
460 ############################### Insets  ##############################
461
462 noinst_LTLIBRARIES += liblyxinsets.la
463
464 EXTRA_DIST += \
465         insets/InsetTheorem.cpp \
466         insets/InsetTheorem.h
467
468 liblyxinsets_la_SOURCES = \
469         insets/MailInset.cpp \
470         insets/MailInset.h \
471         insets/ExternalSupport.cpp \
472         insets/ExternalSupport.h \
473         insets/ExternalTemplate.cpp \
474         insets/ExternalTemplate.h \
475         insets/ExternalTransforms.cpp \
476         insets/ExternalTransforms.h \
477         insets/RenderBase.h \
478         insets/RenderButton.cpp \
479         insets/RenderButton.h \
480         insets/RenderGraphic.cpp \
481         insets/RenderGraphic.h \
482         insets/RenderPreview.cpp \
483         insets/RenderPreview.h \
484         insets/Inset.h \
485         insets/Inset.cpp \
486         insets/InsetBibitem.cpp \
487         insets/InsetBibitem.h \
488         insets/InsetBibtex.cpp \
489         insets/InsetBibtex.h \
490         insets/InsetBox.cpp \
491         insets/InsetBox.h \
492         insets/InsetBranch.cpp \
493         insets/InsetBranch.h \
494         insets/InsetCaption.cpp \
495         insets/InsetCaption.h \
496         insets/InsetCitation.cpp \
497         insets/InsetCitation.h \
498         insets/InsetCode.h \
499         insets/InsetCollapsable.cpp \
500         insets/InsetCollapsable.h \
501         insets/InsetCommand.cpp \
502         insets/InsetCommand.h \
503         insets/InsetCommandParams.cpp \
504         insets/InsetCommandParams.h \
505         insets/InsetEnvironment.cpp \
506         insets/InsetEnvironment.h \
507         insets/InsetERT.cpp \
508         insets/InsetERT.h \
509         insets/InsetExternal.cpp \
510         insets/InsetExternal.h \
511         insets/InsetFlex.h \
512         insets/InsetFlex.cpp \
513         insets/InsetFloat.h \
514         insets/InsetFloat.cpp \
515         insets/InsetFloatList.cpp \
516         insets/InsetFloatList.h \
517         insets/InsetFoot.cpp \
518         insets/InsetFoot.h \
519         insets/InsetFootlike.cpp \
520         insets/InsetFootlike.h \
521         insets/InsetGraphicsParams.h \
522         insets/InsetGraphicsParams.cpp \
523         insets/InsetGraphics.cpp \
524         insets/InsetGraphics.h \
525         insets/InsetHFill.cpp \
526         insets/InsetHFill.h \
527         insets/InsetHyperlink.cpp \
528         insets/InsetHyperlink.h \
529         insets/InsetInclude.cpp \
530         insets/InsetInclude.h \
531         insets/InsetIndex.cpp \
532         insets/InsetIndex.h \
533         insets/InsetInfo.cpp \
534         insets/InsetInfo.h \
535         insets/InsetLabel.cpp \
536         insets/InsetLabel.h \
537         insets/InsetLine.cpp \
538         insets/InsetLine.h \
539         insets/InsetListings.h \
540         insets/InsetListings.cpp \
541         insets/InsetListingsParams.h \
542         insets/InsetListingsParams.cpp \
543         insets/InsetMarginal.h \
544         insets/InsetMarginal.cpp \
545         insets/InsetNewline.cpp \
546         insets/InsetNewline.h \
547         insets/InsetNomencl.cpp \
548         insets/InsetNomencl.h \
549         insets/InsetNote.cpp \
550         insets/InsetNote.h \
551         insets/InsetOptArg.cpp \
552         insets/InsetOptArg.h \
553         insets/InsetPagebreak.cpp \
554         insets/InsetPagebreak.h \
555         insets/InsetQuotes.cpp \
556         insets/InsetQuotes.h \
557         insets/InsetRef.cpp \
558         insets/InsetRef.h \
559         insets/InsetSpace.cpp \
560         insets/InsetSpace.h \
561         insets/InsetSpecialChar.cpp \
562         insets/InsetSpecialChar.h \
563         insets/InsetTabular.cpp \
564         insets/InsetTabular.h \
565         insets/InsetText.cpp \
566         insets/InsetText.h \
567         insets/InsetTOC.cpp \
568         insets/InsetTOC.h \
569         insets/InsetVSpace.cpp \
570         insets/InsetVSpace.h \
571         insets/InsetWrap.h \
572         insets/InsetWrap.cpp
573
574 #       insets/InsetList.cpp \
575 #       insets/InsetList.h \
576 #       insets/InsetSection.h \
577 #       insets/InsetSection.cpp \
578 #       insets/InsetTheorem.cpp \
579 #       insets/InsetTheorem.h
580