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