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