]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Introducing FontList.
[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         Color.cpp \
104         Color.h \
105         config.h.in \
106         ConverterCache.cpp \
107         ConverterCache.h \
108         Converter.cpp \
109         Converter.h \
110         CoordCache.cpp \
111         CoordCache.h \
112         Counters.cpp \
113         Counters.h \
114         Cursor.cpp \
115         Cursor.h \
116         CursorSlice.cpp \
117         CursorSlice.h \
118         CutAndPaste.cpp \
119         CutAndPaste.h \
120         debug.cpp \
121         debug.h \
122         DepTable.cpp \
123         DepTable.h \
124         DispatchResult.h \
125         DocIterator.cpp \
126         DocIterator.h \
127         EmbeddedFiles.h \
128         EmbeddedFiles.cpp \
129         Encoding.cpp \
130         Encoding.h \
131         ErrorList.cpp \
132         ErrorList.h \
133         Exporter.cpp \
134         Exporter.h \
135         factory.cpp \
136         factory.h \
137         Floating.cpp \
138         Floating.h \
139         FloatList.cpp \
140         FloatList.h \
141         Font.cpp \
142         Font.h \
143         FontIterator.cpp \
144         FontIterator.h \
145         FontList.cpp \
146         FontList.h \
147         Format.cpp \
148         Format.h \
149         FuncRequest.cpp \
150         FuncRequest.h \
151         FuncStatus.cpp \
152         FuncStatus.h \
153         gettext.cpp \
154         gettext.h \
155         Graph.cpp \
156         Graph.h \
157         Importer.cpp \
158         Importer.h \
159         InsetIterator.cpp \
160         InsetIterator.h \
161         InsetList.cpp \
162         InsetList.h \
163         Intl.cpp \
164         Intl.h \
165         KeyMap.cpp \
166         KeyMap.h \
167         KeySequence.cpp \
168         KeySequence.h \
169         Language.cpp \
170         Language.h \
171         LaTeX.cpp \
172         LaTeXFeatures.cpp \
173         LaTeXFeatures.h \
174         LaTeX.h \
175         Layout.cpp \
176         Layout.h \
177         LayoutEnums.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         LyX.cpp \
188         lyxfind.cpp \
189         lyxfind.h \
190         LyXFunc.cpp \
191         LyXFunc.h \
192         LyX.h \
193         lyxlayout_ptr_fwd.h \
194         LyXRC.cpp \
195         LyXRC.h \
196         Server.cpp \
197         Server.h \
198         ServerSocket.cpp \
199         ServerSocket.h \
200         LyXVC.cpp \
201         LyXVC.h \
202         MenuBackend.cpp \
203         MenuBackend.h \
204         Messages.cpp \
205         Messages.h \
206         MetricsInfo.cpp \
207         MetricsInfo.h \
208         ModuleList.cpp \
209         ModuleList.h \
210         Mover.cpp \
211         Mover.h \
212         output.cpp \
213         output_docbook.cpp \
214         output_docbook.h \
215         output.h \
216         output_latex.cpp \
217         output_latex.h \
218         OutputParams.cpp \
219         OutputParams.h \
220         output_plaintext.cpp \
221         output_plaintext.h \
222         paper.h \
223         Paragraph.cpp \
224         paragraph_funcs.cpp \
225         paragraph_funcs.h \
226         Paragraph.h \
227         ParagraphList.h \
228         ParagraphMetrics.cpp \
229         ParagraphMetrics.h \
230         ParagraphParameters.cpp \
231         ParagraphParameters.h \
232         ParIterator.cpp \
233         ParIterator.h \
234         PDFOptions.cpp \
235         PDFOptions.h \
236         Row.cpp \
237         Row.h \
238         rowpainter.cpp \
239         rowpainter.h \
240         Session.cpp \
241         Session.h \
242         sgml.cpp \
243         sgml.h \
244         Spacing.cpp \
245         Spacing.h \
246         SpellBase.h \
247         TexRow.cpp \
248         TexRow.h \
249         TexStream.cpp \
250         TexStream.h \
251         Text.h \
252         Text.cpp \
253         Text2.cpp \
254         Text3.cpp \
255         TextClass.cpp \
256         TextClass.h \
257         TextClassList.cpp \
258         TextClassList.h \
259         TextMetrics.cpp \
260         TextMetrics.h \
261         TocBackend.cpp \
262         TocBackend.h \
263         ToolbarBackend.cpp \
264         ToolbarBackend.h \
265         Trans.cpp \
266         Trans.h \
267         Undo.cpp \
268         Undo.h \
269         update_flags.h \
270         VCBackend.cpp \
271         VCBackend.h \
272         version.cpp \
273         version.h \
274         WordLangTuple.h \
275         VSpace.cpp \
276         VSpace.h
277 ############################### Graphics ##############################
278
279 noinst_LTLIBRARIES += liblyxgraphics.la
280
281 liblyxgraphics_la_SOURCES = \
282         graphics/GraphicsCache.h \
283         graphics/GraphicsCache.cpp \
284         graphics/GraphicsCacheItem.h \
285         graphics/GraphicsCacheItem.cpp \
286         graphics/GraphicsConverter.h \
287         graphics/GraphicsConverter.cpp \
288         graphics/GraphicsImage.h \
289         graphics/GraphicsImage.cpp \
290         graphics/GraphicsLoader.h \
291         graphics/GraphicsLoader.cpp \
292         graphics/GraphicsParams.cpp \
293         graphics/GraphicsParams.h \
294         graphics/LoaderQueue.h \
295         graphics/LoaderQueue.cpp \
296         graphics/GraphicsTypes.h \
297         graphics/GraphicsTypes.cpp \
298         graphics/PreviewImage.h \
299         graphics/PreviewImage.cpp \
300         graphics/PreviewLoader.h \
301         graphics/PreviewLoader.cpp \
302         graphics/Previews.h \
303         graphics/Previews.cpp
304
305
306 ############################### Mathed  ##############################
307
308 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
309
310 noinst_LTLIBRARIES += liblyxmathed.la
311
312 liblyxmathed_la_SOURCES = \
313         mathed/InsetMathAMSArray.cpp \
314         mathed/InsetMathAMSArray.h \
315         mathed/InsetMathArray.cpp \
316         mathed/InsetMathArray.h \
317         mathed/InsetMathBig.cpp \
318         mathed/InsetMathBig.h \
319         mathed/InsetMathBinom.cpp \
320         mathed/InsetMathBinom.h \
321         mathed/InsetMathBoldSymbol.cpp \
322         mathed/InsetMathBoldSymbol.h \
323         mathed/InsetMathBox.cpp \
324         mathed/InsetMathBoxed.cpp \
325         mathed/InsetMathBoxed.h \
326         mathed/InsetMathBox.h \
327         mathed/InsetMathBrace.cpp \
328         mathed/InsetMathBrace.h \
329         mathed/InsetMath.cpp \
330         mathed/InsetMathCases.cpp \
331         mathed/InsetMathCases.h \
332         mathed/InsetMathChar.cpp \
333         mathed/InsetMathChar.h \
334         mathed/InsetMathColor.cpp \
335         mathed/InsetMathColor.h \
336         mathed/CommandInset.cpp \
337         mathed/CommandInset.h \
338         mathed/InsetMathComment.cpp \
339         mathed/InsetMathComment.h \
340         mathed/InsetMathDecoration.cpp \
341         mathed/InsetMathDecoration.h \
342         mathed/InsetMathDelim.cpp \
343         mathed/InsetMathDelim.h \
344         mathed/InsetMathDFrac.cpp \
345         mathed/InsetMathDFrac.h \
346         mathed/InsetMathDiff.cpp \
347         mathed/InsetMathDiff.h \
348         mathed/InsetMathDots.cpp \
349         mathed/InsetMathDots.h \
350         mathed/InsetMathEnv.cpp \
351         mathed/InsetMathEnv.h \
352         mathed/InsetMathExFunc.cpp \
353         mathed/InsetMathExFunc.h \
354         mathed/InsetMathExInt.cpp \
355         mathed/InsetMathExInt.h \
356         mathed/InsetMathFBox.cpp \
357         mathed/InsetMathFBox.h \
358         mathed/InsetMathFont.cpp \
359         mathed/InsetMathFont.h \
360         mathed/InsetMathFontOld.cpp \
361         mathed/InsetMathFontOld.h \
362         mathed/InsetMathFracBase.cpp \
363         mathed/InsetMathFracBase.h \
364         mathed/InsetMathFrac.cpp \
365         mathed/InsetMathFrac.h \
366         mathed/InsetMathFrameBox.cpp \
367         mathed/InsetMathFrameBox.h \
368         mathed/InsetMathGrid.cpp \
369         mathed/InsetMathGrid.h \
370         mathed/InsetMath.h \
371         mathed/InsetMathHull.cpp \
372         mathed/InsetMathHull.h \
373         mathed/InsetMathKern.cpp \
374         mathed/InsetMathKern.h \
375         mathed/InsetMathLefteqn.cpp \
376         mathed/InsetMathLefteqn.h \
377         mathed/InsetMathLim.cpp \
378         mathed/InsetMathLim.h \
379         mathed/MathMacro.cpp \
380         mathed/MathMacro.h \
381         mathed/InsetMathMakebox.cpp \
382         mathed/InsetMathMakebox.h \
383         mathed/InsetMathMatrix.cpp \
384         mathed/InsetMathMatrix.h \
385         mathed/InsetMathNest.cpp \
386         mathed/InsetMathNest.h \
387         mathed/InsetMathNumber.cpp \
388         mathed/InsetMathNumber.h \
389         mathed/InsetMathOverset.cpp \
390         mathed/InsetMathOverset.h \
391         mathed/InsetMathPar.cpp \
392         mathed/InsetMathPar.h \
393         mathed/InsetMathPhantom.cpp \
394         mathed/InsetMathPhantom.h \
395         mathed/InsetMathRef.cpp \
396         mathed/InsetMathRef.h \
397         mathed/InsetMathRoot.cpp \
398         mathed/InsetMathRoot.h \
399         mathed/InsetMathScript.cpp \
400         mathed/InsetMathScript.h \
401         mathed/InsetMathSize.cpp \
402         mathed/InsetMathSize.h \
403         mathed/InsetMathSpace.cpp \
404         mathed/InsetMathSpace.h \
405         mathed/InsetMathSplit.cpp \
406         mathed/InsetMathSplit.h \
407         mathed/InsetMathSqrt.cpp \
408         mathed/InsetMathSqrt.h \
409         mathed/InsetMathStackrel.cpp \
410         mathed/InsetMathStackrel.h \
411         mathed/InsetMathString.cpp \
412         mathed/InsetMathString.h \
413         mathed/InsetMathSubstack.cpp \
414         mathed/InsetMathSubstack.h \
415         mathed/InsetMathSymbol.cpp \
416         mathed/InsetMathSymbol.h \
417         mathed/InsetMathTabular.cpp \
418         mathed/InsetMathTabular.h \
419         mathed/InsetMathTFrac.cpp \
420         mathed/InsetMathTFrac.h \
421         mathed/InsetMathUnderset.cpp \
422         mathed/InsetMathUnderset.h \
423         mathed/InsetMathUnknown.cpp \
424         mathed/InsetMathUnknown.h \
425         mathed/InsetMathXArrow.cpp \
426         mathed/InsetMathXArrow.h \
427         mathed/InsetMathXYMatrix.cpp \
428         mathed/InsetMathXYMatrix.h \
429         mathed/MathAtom.cpp \
430         mathed/MathAtom.h \
431         mathed/MathAutoCorrect.cpp \
432         mathed/MathAutoCorrect.h \
433         mathed/MathData.cpp \
434         mathed/MathData.h \
435         mathed/MathExtern.cpp \
436         mathed/MathExtern.h \
437         mathed/MathFactory.cpp \
438         mathed/MathFactory.h \
439         mathed/MathGridInfo.h \
440         mathed/MathMacroArgument.cpp \
441         mathed/MathMacroArgument.h \
442         mathed/MacroTable.cpp \
443         mathed/MacroTable.h \
444         mathed/MathMacroTemplate.cpp \
445         mathed/MathMacroTemplate.h \
446         mathed/MathParser.cpp \
447         mathed/MathParser.h \
448         mathed/ReplaceData.h \
449         mathed/MathStream.cpp \
450         mathed/MathStream.h \
451         mathed/MathSupport.cpp \
452         mathed/MathSupport.h \
453         mathed/TextPainter.cpp \
454         mathed/TextPainter.h 
455 #       mathed/InsetMathMBox.cpp
456 #       mathed/InsetMathMBox.h
457
458 ############################### Insets  ##############################
459
460 noinst_LTLIBRARIES += liblyxinsets.la
461
462 EXTRA_DIST += \
463         insets/InsetTheorem.cpp \
464         insets/InsetTheorem.h
465
466 liblyxinsets_la_SOURCES = \
467         insets/MailInset.cpp \
468         insets/MailInset.h \
469         insets/ExternalSupport.cpp \
470         insets/ExternalSupport.h \
471         insets/ExternalTemplate.cpp \
472         insets/ExternalTemplate.h \
473         insets/ExternalTransforms.cpp \
474         insets/ExternalTransforms.h \
475         insets/RenderBase.h \
476         insets/RenderButton.cpp \
477         insets/RenderButton.h \
478         insets/RenderGraphic.cpp \
479         insets/RenderGraphic.h \
480         insets/RenderPreview.cpp \
481         insets/RenderPreview.h \
482         insets/Inset.h \
483         insets/Inset.cpp \
484         insets/InsetBibitem.cpp \
485         insets/InsetBibitem.h \
486         insets/InsetBibtex.cpp \
487         insets/InsetBibtex.h \
488         insets/InsetBox.cpp \
489         insets/InsetBox.h \
490         insets/InsetBranch.cpp \
491         insets/InsetBranch.h \
492         insets/InsetCaption.cpp \
493         insets/InsetCaption.h \
494         insets/InsetCitation.cpp \
495         insets/InsetCitation.h \
496         insets/InsetCode.h \
497         insets/InsetCollapsable.cpp \
498         insets/InsetCollapsable.h \
499         insets/InsetCommand.cpp \
500         insets/InsetCommand.h \
501         insets/InsetCommandParams.cpp \
502         insets/InsetCommandParams.h \
503         insets/InsetEnvironment.cpp \
504         insets/InsetEnvironment.h \
505         insets/InsetERT.cpp \
506         insets/InsetERT.h \
507         insets/InsetExternal.cpp \
508         insets/InsetExternal.h \
509         insets/InsetFlex.h \
510         insets/InsetFlex.cpp \
511         insets/InsetFloat.h \
512         insets/InsetFloat.cpp \
513         insets/InsetFloatList.cpp \
514         insets/InsetFloatList.h \
515         insets/InsetFoot.cpp \
516         insets/InsetFoot.h \
517         insets/InsetFootlike.cpp \
518         insets/InsetFootlike.h \
519         insets/InsetGraphicsParams.h \
520         insets/InsetGraphicsParams.cpp \
521         insets/InsetGraphics.cpp \
522         insets/InsetGraphics.h \
523         insets/InsetHFill.cpp \
524         insets/InsetHFill.h \
525         insets/InsetHyperlink.cpp \
526         insets/InsetHyperlink.h \
527         insets/InsetInclude.cpp \
528         insets/InsetInclude.h \
529         insets/InsetIndex.cpp \
530         insets/InsetIndex.h \
531         insets/InsetInfo.cpp \
532         insets/InsetInfo.h \
533         insets/InsetLabel.cpp \
534         insets/InsetLabel.h \
535         insets/InsetLine.cpp \
536         insets/InsetLine.h \
537         insets/InsetListings.h \
538         insets/InsetListings.cpp \
539         insets/InsetListingsParams.h \
540         insets/InsetListingsParams.cpp \
541         insets/InsetMarginal.h \
542         insets/InsetMarginal.cpp \
543         insets/InsetNewline.cpp \
544         insets/InsetNewline.h \
545         insets/InsetNomencl.cpp \
546         insets/InsetNomencl.h \
547         insets/InsetNote.cpp \
548         insets/InsetNote.h \
549         insets/InsetOptArg.cpp \
550         insets/InsetOptArg.h \
551         insets/InsetPagebreak.cpp \
552         insets/InsetPagebreak.h \
553         insets/InsetQuotes.cpp \
554         insets/InsetQuotes.h \
555         insets/InsetRef.cpp \
556         insets/InsetRef.h \
557         insets/InsetSpace.cpp \
558         insets/InsetSpace.h \
559         insets/InsetSpecialChar.cpp \
560         insets/InsetSpecialChar.h \
561         insets/InsetTabular.cpp \
562         insets/InsetTabular.h \
563         insets/InsetText.cpp \
564         insets/InsetText.h \
565         insets/InsetTOC.cpp \
566         insets/InsetTOC.h \
567         insets/InsetVSpace.cpp \
568         insets/InsetVSpace.h \
569         insets/InsetWrap.h \
570         insets/InsetWrap.cpp
571
572 #       insets/InsetList.cpp \
573 #       insets/InsetList.h \
574 #       insets/InsetSection.h \
575 #       insets/InsetSection.cpp \
576 #       insets/InsetTheorem.cpp \
577 #       insets/InsetTheorem.h
578