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