]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
* BufferView::updateMetrics(): split up the method in two for the SinglePar case.
[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 pkglib_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         frontends/controllers/liblyxcontrollers.la \
33         liblyxgraphics.la \
34         support/liblyxsupport.la \
35         $(OTHERLIBS) \
36         $(QT4_LIB) 
37
38 if LYX_WIN_RESOURCE
39 .rc.o:
40         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
41         windres -I. --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
42 endif
43
44 #lyx_LDFLAGS=-Wl,-O1
45
46 BUILT_SOURCES = $(PCH_FILE)
47
48 if USE_ASPELL
49 ASPELL = ASpell.cpp ASpell_local.h
50 endif
51 if USE_PSPELL
52 PSPELL = PSpell.cpp PSpell.h
53 endif
54 if USE_ISPELL
55 ISPELL = ISpell.cpp ISpell.h
56 endif
57
58 # These four objects are linked as object files as they are not
59 # referenced within the core and therefore are not picked up
60 # by the linker without looping over libs. We do not want that,
61 # and in fact libtools seems not able to do that.
62 lyx_SOURCES = \
63         main.cpp \
64         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
65         Box.cpp \
66         Box.h \
67         Dimension.cpp \
68         Dimension.h \
69         PrinterParams.cpp \
70         PrinterParams.h \
71         Thesaurus.cpp \
72         Thesaurus.h
73
74 if LYX_WIN_RESOURCE
75 lyx_SOURCES += lyxwinres.rc
76 endif
77
78 liblyxcore_la_SOURCES = \
79         Author.cpp \
80         Author.h \
81         BiblioInfo.h \
82         BiblioInfo.cpp \
83         Bidi.cpp \
84         Bidi.h \
85         boost.cpp \
86         BranchList.cpp \
87         BranchList.h \
88         Buffer.cpp \
89         buffer_funcs.cpp \
90         buffer_funcs.h \
91         Buffer.h \
92         BufferList.cpp \
93         BufferList.h \
94         BufferParams.cpp \
95         BufferParams.h \
96         BufferView.cpp \
97         bufferview_funcs.cpp \
98         bufferview_funcs.h \
99         BufferView.h \
100         Bullet.cpp \
101         Bullet.h \
102         Changes.cpp \
103         Changes.h \
104         Chktex.cpp \
105         Chktex.h \
106         Color.cpp \
107         Color.h \
108         config.h.in \
109         ConverterCache.cpp \
110         ConverterCache.h \
111         Converter.cpp \
112         Converter.h \
113         CoordCache.cpp \
114         CoordCache.h \
115         Counters.cpp \
116         Counters.h \
117         Cursor.cpp \
118         Cursor.h \
119         CursorSlice.cpp \
120         CursorSlice.h \
121         CutAndPaste.cpp \
122         CutAndPaste.h \
123         debug.cpp \
124         debug.h \
125         DepTable.cpp \
126         DepTable.h \
127         DispatchResult.h \
128         DocIterator.cpp \
129         DocIterator.h \
130         EmbeddedFiles.h \
131         EmbeddedFiles.cpp \
132         Encoding.cpp \
133         Encoding.h \
134         ErrorList.cpp \
135         ErrorList.h \
136         Exporter.cpp \
137         Exporter.h \
138         factory.cpp \
139         factory.h \
140         Floating.cpp \
141         Floating.h \
142         FloatList.cpp \
143         FloatList.h \
144         Font.cpp \
145         Font.h \
146         FontIterator.cpp \
147         FontIterator.h \
148         Format.cpp \
149         Format.h \
150         FuncRequest.cpp \
151         FuncRequest.h \
152         FuncStatus.cpp \
153         FuncStatus.h \
154         gettext.cpp \
155         gettext.h \
156         Graph.cpp \
157         Graph.h \
158         Importer.cpp \
159         Importer.h \
160         InsetIterator.cpp \
161         InsetIterator.h \
162         InsetList.cpp \
163         InsetList.h \
164         Intl.cpp \
165         Intl.h \
166         KeyMap.cpp \
167         KeyMap.h \
168         KeySequence.cpp \
169         KeySequence.h \
170         Language.cpp \
171         Language.h \
172         LaTeX.cpp \
173         LaTeXFeatures.cpp \
174         LaTeXFeatures.h \
175         LaTeX.h \
176         Layout.cpp \
177         Layout.h \
178         Length.cpp \
179         Length.h \
180         lengthcommon.cpp \
181         lengthcommon.h \
182         Lexer.cpp \
183         Lexer.h \
184         lfuns.h \
185         LyXAction.cpp \
186         LyXAction.h \
187         callback.cpp \
188         callback.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         toc.cpp \
266         toc.h \
267         ToolbarBackend.cpp \
268         ToolbarBackend.h \
269         Trans.cpp \
270         Trans.h \
271         Undo.cpp \
272         Undo.h \
273         update_flags.h \
274         VCBackend.cpp \
275         VCBackend.h \
276         version.cpp \
277         version.h \
278         WordLangTuple.h \
279         VSpace.cpp \
280         VSpace.h
281 ############################### Graphics ##############################
282
283 pkglib_LTLIBRARIES += liblyxgraphics.la
284
285 liblyxgraphics_la_SOURCES = \
286         graphics/GraphicsCache.h \
287         graphics/GraphicsCache.cpp \
288         graphics/GraphicsCacheItem.h \
289         graphics/GraphicsCacheItem.cpp \
290         graphics/GraphicsConverter.h \
291         graphics/GraphicsConverter.cpp \
292         graphics/GraphicsImage.h \
293         graphics/GraphicsImage.cpp \
294         graphics/GraphicsLoader.h \
295         graphics/GraphicsLoader.cpp \
296         graphics/GraphicsParams.cpp \
297         graphics/GraphicsParams.h \
298         graphics/LoaderQueue.h \
299         graphics/LoaderQueue.cpp \
300         graphics/GraphicsTypes.h \
301         graphics/GraphicsTypes.cpp \
302         graphics/PreviewImage.h \
303         graphics/PreviewImage.cpp \
304         graphics/PreviewLoader.h \
305         graphics/PreviewLoader.cpp \
306         graphics/Previews.h \
307         graphics/Previews.cpp
308
309
310 ############################### Mathed  ##############################
311
312 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
313
314 pkglib_LTLIBRARIES += liblyxmathed.la
315
316 liblyxmathed_la_SOURCES = \
317         mathed/InsetMathAMSArray.cpp \
318         mathed/InsetMathAMSArray.h \
319         mathed/InsetMathArray.cpp \
320         mathed/InsetMathArray.h \
321         mathed/InsetMathBig.cpp \
322         mathed/InsetMathBig.h \
323         mathed/InsetMathBinom.cpp \
324         mathed/InsetMathBinom.h \
325         mathed/InsetMathBoldSymbol.cpp \
326         mathed/InsetMathBoldSymbol.h \
327         mathed/InsetMathBox.cpp \
328         mathed/InsetMathBoxed.cpp \
329         mathed/InsetMathBoxed.h \
330         mathed/InsetMathBox.h \
331         mathed/InsetMathBrace.cpp \
332         mathed/InsetMathBrace.h \
333         mathed/InsetMath.cpp \
334         mathed/InsetMathCases.cpp \
335         mathed/InsetMathCases.h \
336         mathed/InsetMathChar.cpp \
337         mathed/InsetMathChar.h \
338         mathed/InsetMathColor.cpp \
339         mathed/InsetMathColor.h \
340         mathed/CommandInset.cpp \
341         mathed/CommandInset.h \
342         mathed/InsetMathComment.cpp \
343         mathed/InsetMathComment.h \
344         mathed/InsetMathDecoration.cpp \
345         mathed/InsetMathDecoration.h \
346         mathed/InsetMathDelim.cpp \
347         mathed/InsetMathDelim.h \
348         mathed/InsetMathDFrac.cpp \
349         mathed/InsetMathDFrac.h \
350         mathed/InsetMathDiff.cpp \
351         mathed/InsetMathDiff.h \
352         mathed/InsetMathDots.cpp \
353         mathed/InsetMathDots.h \
354         mathed/InsetMathEnv.cpp \
355         mathed/InsetMathEnv.h \
356         mathed/InsetMathExFunc.cpp \
357         mathed/InsetMathExFunc.h \
358         mathed/InsetMathExInt.cpp \
359         mathed/InsetMathExInt.h \
360         mathed/InsetMathFBox.cpp \
361         mathed/InsetMathFBox.h \
362         mathed/InsetMathFont.cpp \
363         mathed/InsetMathFont.h \
364         mathed/InsetMathFontOld.cpp \
365         mathed/InsetMathFontOld.h \
366         mathed/InsetMathFracBase.cpp \
367         mathed/InsetMathFracBase.h \
368         mathed/InsetMathFrac.cpp \
369         mathed/InsetMathFrac.h \
370         mathed/InsetMathFrameBox.cpp \
371         mathed/InsetMathFrameBox.h \
372         mathed/InsetMathGrid.cpp \
373         mathed/InsetMathGrid.h \
374         mathed/InsetMath.h \
375         mathed/InsetMathHull.cpp \
376         mathed/InsetMathHull.h \
377         mathed/InsetMathKern.cpp \
378         mathed/InsetMathKern.h \
379         mathed/InsetMathLefteqn.cpp \
380         mathed/InsetMathLefteqn.h \
381         mathed/InsetMathLim.cpp \
382         mathed/InsetMathLim.h \
383         mathed/MathMacro.cpp \
384         mathed/MathMacro.h \
385         mathed/InsetMathMakebox.cpp \
386         mathed/InsetMathMakebox.h \
387         mathed/InsetMathMatrix.cpp \
388         mathed/InsetMathMatrix.h \
389         mathed/InsetMathNest.cpp \
390         mathed/InsetMathNest.h \
391         mathed/InsetMathNumber.cpp \
392         mathed/InsetMathNumber.h \
393         mathed/InsetMathOverset.cpp \
394         mathed/InsetMathOverset.h \
395         mathed/InsetMathPar.cpp \
396         mathed/InsetMathPar.h \
397         mathed/InsetMathPhantom.cpp \
398         mathed/InsetMathPhantom.h \
399         mathed/InsetMathRef.cpp \
400         mathed/InsetMathRef.h \
401         mathed/InsetMathRoot.cpp \
402         mathed/InsetMathRoot.h \
403         mathed/InsetMathScript.cpp \
404         mathed/InsetMathScript.h \
405         mathed/InsetMathSize.cpp \
406         mathed/InsetMathSize.h \
407         mathed/InsetMathSpace.cpp \
408         mathed/InsetMathSpace.h \
409         mathed/InsetMathSplit.cpp \
410         mathed/InsetMathSplit.h \
411         mathed/InsetMathSqrt.cpp \
412         mathed/InsetMathSqrt.h \
413         mathed/InsetMathStackrel.cpp \
414         mathed/InsetMathStackrel.h \
415         mathed/InsetMathString.cpp \
416         mathed/InsetMathString.h \
417         mathed/InsetMathSubstack.cpp \
418         mathed/InsetMathSubstack.h \
419         mathed/InsetMathSymbol.cpp \
420         mathed/InsetMathSymbol.h \
421         mathed/InsetMathTabular.cpp \
422         mathed/InsetMathTabular.h \
423         mathed/InsetMathTFrac.cpp \
424         mathed/InsetMathTFrac.h \
425         mathed/InsetMathUnderset.cpp \
426         mathed/InsetMathUnderset.h \
427         mathed/InsetMathUnknown.cpp \
428         mathed/InsetMathUnknown.h \
429         mathed/InsetMathXArrow.cpp \
430         mathed/InsetMathXArrow.h \
431         mathed/InsetMathXYMatrix.cpp \
432         mathed/InsetMathXYMatrix.h \
433         mathed/MathAtom.cpp \
434         mathed/MathAtom.h \
435         mathed/MathAutoCorrect.cpp \
436         mathed/MathAutoCorrect.h \
437         mathed/MathData.cpp \
438         mathed/MathData.h \
439         mathed/MathExtern.cpp \
440         mathed/MathExtern.h \
441         mathed/MathFactory.cpp \
442         mathed/MathFactory.h \
443         mathed/MathGridInfo.h \
444         mathed/MathMacroArgument.cpp \
445         mathed/MathMacroArgument.h \
446         mathed/MacroTable.cpp \
447         mathed/MacroTable.h \
448         mathed/MathMacroTemplate.cpp \
449         mathed/MathMacroTemplate.h \
450         mathed/MathParser.cpp \
451         mathed/MathParser.h \
452         mathed/ReplaceData.h \
453         mathed/MathStream.cpp \
454         mathed/MathStream.h \
455         mathed/MathSupport.cpp \
456         mathed/MathSupport.h \
457         mathed/TextPainter.cpp \
458         mathed/TextPainter.h 
459 #       mathed/InsetMathMBox.cpp
460 #       mathed/InsetMathMBox.h
461
462 ############################### Insets  ##############################
463
464 pkglib_LTLIBRARIES += liblyxinsets.la
465
466 EXTRA_DIST += \
467         insets/InsetTheorem.cpp \
468         insets/InsetTheorem.h
469
470 liblyxinsets_la_SOURCES = \
471         insets/MailInset.cpp \
472         insets/MailInset.h \
473         insets/ExternalSupport.cpp \
474         insets/ExternalSupport.h \
475         insets/ExternalTemplate.cpp \
476         insets/ExternalTemplate.h \
477         insets/ExternalTransforms.cpp \
478         insets/ExternalTransforms.h \
479         insets/RenderBase.h \
480         insets/RenderButton.cpp \
481         insets/RenderButton.h \
482         insets/RenderGraphic.cpp \
483         insets/RenderGraphic.h \
484         insets/RenderPreview.cpp \
485         insets/RenderPreview.h \
486         insets/Inset.h \
487         insets/Inset.cpp \
488         insets/InsetBibitem.cpp \
489         insets/InsetBibitem.h \
490         insets/InsetBibtex.cpp \
491         insets/InsetBibtex.h \
492         insets/InsetBox.cpp \
493         insets/InsetBox.h \
494         insets/InsetBranch.cpp \
495         insets/InsetBranch.h \
496         insets/InsetCaption.cpp \
497         insets/InsetCaption.h \
498         insets/InsetCitation.cpp \
499         insets/InsetCitation.h \
500         insets/InsetCollapsable.cpp \
501         insets/InsetCollapsable.h \
502         insets/InsetCommand.cpp \
503         insets/InsetCommand.h \
504         insets/InsetCommandParams.cpp \
505         insets/InsetCommandParams.h \
506         insets/InsetEnvironment.cpp \
507         insets/InsetEnvironment.h \
508         insets/InsetERT.cpp \
509         insets/InsetERT.h \
510         insets/InsetExternal.cpp \
511         insets/InsetExternal.h \
512         insets/InsetFlex.h \
513         insets/InsetFlex.cpp \
514         insets/InsetFloat.h \
515         insets/InsetFloat.cpp \
516         insets/InsetFloatList.cpp \
517         insets/InsetFloatList.h \
518         insets/InsetFoot.cpp \
519         insets/InsetFoot.h \
520         insets/InsetFootlike.cpp \
521         insets/InsetFootlike.h \
522         insets/InsetGraphicsParams.h \
523         insets/InsetGraphicsParams.cpp \
524         insets/InsetGraphics.cpp \
525         insets/InsetGraphics.h \
526         insets/InsetHFill.cpp \
527         insets/InsetHFill.h \
528         insets/InsetInclude.cpp \
529         insets/InsetInclude.h \
530         insets/InsetIndex.cpp \
531         insets/InsetIndex.h \
532         insets/InsetLabel.cpp \
533         insets/InsetLabel.h \
534         insets/InsetLine.cpp \
535         insets/InsetLine.h \
536         insets/InsetListings.h \
537         insets/InsetListings.cpp \
538         insets/InsetListingsParams.h \
539         insets/InsetListingsParams.cpp \
540         insets/InsetMarginal.h \
541         insets/InsetMarginal.cpp \
542         insets/InsetNewline.cpp \
543         insets/InsetNewline.h \
544         insets/InsetNomencl.cpp \
545         insets/InsetNomencl.h \
546         insets/InsetNote.cpp \
547         insets/InsetNote.h \
548         insets/InsetOptArg.cpp \
549         insets/InsetOptArg.h \
550         insets/InsetPagebreak.cpp \
551         insets/InsetPagebreak.h \
552         insets/InsetQuotes.cpp \
553         insets/InsetQuotes.h \
554         insets/InsetRef.cpp \
555         insets/InsetRef.h \
556         insets/InsetSpace.cpp \
557         insets/InsetSpace.h \
558         insets/InsetSpecialChar.cpp \
559         insets/InsetSpecialChar.h \
560         insets/InsetTabular.cpp \
561         insets/InsetTabular.h \
562         insets/InsetText.cpp \
563         insets/InsetText.h \
564         insets/InsetTOC.cpp \
565         insets/InsetTOC.h \
566         insets/InsetUrl.cpp \
567         insets/InsetUrl.h \
568         insets/InsetVSpace.cpp \
569         insets/InsetVSpace.h \
570         insets/InsetWrap.h \
571         insets/InsetWrap.cpp
572
573 #       insets/insetlist.C \
574 #       insets/insetlist.h \
575 #       insets/insetsection.h \
576 #       insets/insetsection.C \
577 #       insets/InsetTheorem.cpp \
578 #       insets/InsetTheorem.h
579