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