]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
36d8cdd478bb0f3bb54425dc248a8467ed7c971d
[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) $(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         MenuBackend.cpp \
67         MenuBackend.h \
68         Dimension.cpp \
69         Dimension.h \
70         PrinterParams.cpp \
71         PrinterParams.h \
72         Thesaurus.cpp \
73         Thesaurus.h
74
75 if LYX_WIN_RESOURCE
76 lyx_SOURCES += lyxwinres.rc
77 endif
78
79 SOURCEFILESCORE = \
80         Author.cpp \
81         BaseClassList.cpp \
82         BiblioInfo.cpp \
83         Bidi.cpp \
84         boost.cpp \
85         BranchList.cpp \
86         Buffer.cpp \
87         buffer_funcs.cpp \
88         BufferList.cpp \
89         BufferParams.cpp \
90         BufferView.cpp \
91         Bullet.cpp \
92         Changes.cpp \
93         Chktex.cpp \
94         CmdDef.cpp \
95         Color.cpp \
96         ConverterCache.cpp \
97         Converter.cpp \
98         CoordCache.cpp \
99         Counters.cpp \
100         Cursor.cpp \
101         CursorSlice.cpp \
102         CutAndPaste.cpp \
103         DepTable.cpp \
104         DocIterator.cpp \
105         EmbeddedFiles.cpp \
106         Encoding.cpp \
107         ErrorList.cpp \
108         Exporter.cpp \
109         factory.cpp \
110         Floating.cpp \
111         FloatList.cpp \
112         FontInfo.cpp \
113         FontIterator.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         Length.cpp \
129         lengthcommon.cpp \
130         Lexer.cpp \
131         LyX.cpp \
132         LyXAction.cpp \
133         lyxfind.cpp \
134         LyXFunc.cpp \
135         LyXRC.cpp \
136         LyXVC.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         ParagraphMetrics.cpp \
148         ParagraphParameters.cpp \
149         ParIterator.cpp \
150         PDFOptions.cpp \
151         Row.cpp \
152         rowpainter.cpp \
153         Server.cpp \
154         ServerSocket.cpp \
155         sgml.cpp \
156         Session.cpp \
157         Spacing.cpp \
158         TexRow.cpp \
159         Text.cpp \
160         Text2.cpp \
161         Text3.cpp \
162         TexStream.cpp \
163         TextClass.cpp \
164         TextMetrics.cpp \
165         TocBackend.cpp \
166         ToolbarBackend.cpp \
167         Trans.cpp \
168         Undo.cpp \
169         VCBackend.cpp \
170         version.cpp \
171         VSpace.cpp \
172         WordList.cpp
173
174 HEADERFILESCORE = \
175         Author.h \
176         BaseClassList.h \
177         BiblioInfo.h \
178         Bidi.h \
179         BranchList.h \
180         buffer_funcs.h \
181         Buffer.h \
182         BufferList.h \
183         BufferParams.h \
184         BufferView.h \
185         Bullet.h \
186         Changes.h \
187         Chktex.h \
188         CmdDef.h \
189         ColorCode.h \
190         Color.h \
191         config.h.in \
192         ConverterCache.h \
193         Converter.h \
194         CoordCache.h \
195         Counters.h \
196         Cursor.h \
197         CursorSlice.h \
198         CutAndPaste.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         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         Length.h \
229         Lexer.h \
230         lfuns.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/InsetMathBM.cpp \
335         mathed/InsetMathBoldSymbol.cpp \
336         mathed/InsetMathBox.cpp \
337         mathed/InsetMathBrace.cpp \
338         mathed/InsetMath.cpp \
339         mathed/InsetMathCases.cpp \
340         mathed/InsetMathChar.cpp \
341         mathed/InsetMathColor.cpp \
342         mathed/CommandInset.cpp \
343         mathed/InsetMathComment.cpp \
344         mathed/InsetMathDecoration.cpp \
345         mathed/InsetMathDecoration.h \
346         mathed/InsetMathDelim.cpp \
347         mathed/InsetMathDiff.cpp \
348         mathed/InsetMathDots.cpp \
349         mathed/InsetMathEnv.cpp \
350         mathed/InsetMathExFunc.cpp \
351         mathed/InsetMathExInt.cpp \
352         mathed/InsetMathFont.cpp \
353         mathed/InsetMathFontOld.cpp \
354         mathed/InsetMathFrac.cpp \
355         mathed/InsetMathGrid.cpp \
356         mathed/InsetMathHull.cpp \
357         mathed/InsetMathKern.cpp \
358         mathed/InsetMathLefteqn.cpp \
359         mathed/InsetMathLim.cpp \
360         mathed/MathMacro.cpp \
361         mathed/InsetMathMatrix.cpp \
362         mathed/InsetMathNest.cpp \
363         mathed/InsetMathNumber.cpp \
364         mathed/InsetMathOverset.cpp \
365         mathed/InsetMathPar.cpp \
366         mathed/InsetMathPhantom.cpp \
367         mathed/InsetMathRef.cpp \
368         mathed/InsetMathRoot.cpp \
369         mathed/InsetMathScript.cpp \
370         mathed/InsetMathSize.cpp \
371         mathed/InsetMathSpace.cpp \
372         mathed/InsetMathSplit.cpp \
373         mathed/InsetMathSqrt.cpp \
374         mathed/InsetMathStackrel.cpp \
375         mathed/InsetMathString.cpp \
376         mathed/InsetMathSubstack.cpp \
377         mathed/InsetMathSymbol.cpp \
378         mathed/InsetMathTabular.cpp \
379         mathed/InsetMathUnderset.cpp \
380         mathed/InsetMathUnknown.cpp \
381         mathed/InsetMathXArrow.cpp \
382         mathed/InsetMathXYMatrix.cpp \
383         mathed/MathAtom.cpp \
384         mathed/MathAutoCorrect.cpp \
385         mathed/MathData.cpp \
386         mathed/MathExtern.cpp \
387         mathed/MathFactory.cpp \
388         mathed/MathMacroArgument.cpp \
389         mathed/MacroTable.cpp \
390         mathed/MathMacroTemplate.cpp \
391         mathed/MathParser.cpp \
392         mathed/MathStream.cpp \
393         mathed/MathSupport.cpp \
394         mathed/TextPainter.cpp
395
396 HEADERFILESMATHED = \
397         mathed/InsetMathAMSArray.h \
398         mathed/InsetMathArray.h \
399         mathed/InsetMathBig.h \
400         mathed/InsetMathBM.h \
401         mathed/InsetMathBoldSymbol.h \
402         mathed/InsetMathBox.h \
403         mathed/InsetMathBrace.h \
404         mathed/InsetMathCases.h \
405         mathed/InsetMathChar.h \
406         mathed/InsetMathColor.h \
407         mathed/CommandInset.h \
408         mathed/InsetMathComment.h \
409         mathed/InsetMathDelim.h \
410         mathed/InsetMathDiff.h \
411         mathed/InsetMathDots.h \
412         mathed/InsetMathEnv.h \
413         mathed/InsetMathExFunc.h \
414         mathed/InsetMathExInt.h \
415         mathed/InsetMathFont.h \
416         mathed/InsetMathFontOld.h \
417         mathed/InsetMathFrac.h \
418         mathed/InsetMathGrid.h \
419         mathed/InsetMath.h \
420         mathed/InsetMathHull.h \
421         mathed/InsetMathKern.h \
422         mathed/InsetMathLefteqn.h \
423         mathed/InsetMathLim.h \
424         mathed/MathMacro.h \
425         mathed/InsetMathMatrix.h \
426         mathed/InsetMathNest.h \
427         mathed/InsetMathNumber.h \
428         mathed/InsetMathOverset.h \
429         mathed/InsetMathPar.h \
430         mathed/InsetMathPhantom.h \
431         mathed/InsetMathRef.h \
432         mathed/InsetMathRoot.h \
433         mathed/InsetMathScript.h \
434         mathed/InsetMathSize.h \
435         mathed/InsetMathSpace.h \
436         mathed/InsetMathSplit.h \
437         mathed/InsetMathSqrt.h \
438         mathed/InsetMathStackrel.h \
439         mathed/InsetMathString.h \
440         mathed/InsetMathSubstack.h \
441         mathed/InsetMathSymbol.h \
442         mathed/InsetMathTabular.h \
443         mathed/InsetMathUnderset.h \
444         mathed/InsetMathUnknown.h \
445         mathed/InsetMathXArrow.h \
446         mathed/InsetMathXYMatrix.h \
447         mathed/MathAtom.h \
448         mathed/MathAutoCorrect.h \
449         mathed/MathData.h \
450         mathed/MathExtern.h \
451         mathed/MathFactory.h \
452         mathed/MathGridInfo.h \
453         mathed/MathMacroArgument.h \
454         mathed/MacroTable.h \
455         mathed/MathMacroTemplate.h \
456         mathed/MathParser.h \
457         mathed/ReplaceData.h \
458         mathed/MathStream.h \
459         mathed/MathSupport.h \
460         mathed/TextPainter.h 
461
462 lyxmathed.cpp:
463         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
464
465 if MONOLITHIC_MATHED
466
467 BUILT_SOURCES += lyxmathed.cpp
468 CLEANFILES += lyxmathed.cpp
469
470 liblyxmathed_la_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
471
472 else
473
474 liblyxmathed_la_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
475
476 endif
477
478 ############################### Insets  ##############################
479
480 noinst_LTLIBRARIES += liblyxinsets.la
481
482 SOURCEFILESINSETS = \
483         insets/MailInset.cpp \
484         insets/ExternalSupport.cpp \
485         insets/ExternalTemplate.cpp \
486         insets/ExternalTransforms.cpp \
487         insets/RenderButton.cpp \
488         insets/RenderGraphic.cpp \
489         insets/RenderPreview.cpp \
490         insets/Inset.cpp \
491         insets/InsetBibitem.cpp \
492         insets/InsetBibtex.cpp \
493         insets/InsetBox.cpp \
494         insets/InsetBranch.cpp \
495         insets/InsetCaption.cpp \
496         insets/InsetCitation.cpp \
497         insets/InsetCollapsable.cpp \
498         insets/InsetCommand.cpp \
499         insets/InsetCommandParams.cpp \
500         insets/InsetEnvironment.cpp \
501         insets/InsetERT.cpp \
502         insets/InsetExternal.cpp \
503         insets/InsetFlex.cpp \
504         insets/InsetFloat.cpp \
505         insets/InsetFloatList.cpp \
506         insets/InsetFoot.cpp \
507         insets/InsetFootlike.cpp \
508         insets/InsetGraphicsParams.cpp \
509         insets/InsetGraphics.cpp \
510         insets/InsetHFill.cpp \
511         insets/InsetHyperlink.cpp \
512         insets/InsetInclude.cpp \
513         insets/InsetIndex.cpp \
514         insets/InsetInfo.cpp \
515         insets/InsetLabel.cpp \
516         insets/InsetLayout.cpp \
517         insets/InsetLine.cpp \
518         insets/InsetListings.cpp \
519         insets/InsetListingsParams.cpp \
520         insets/InsetMarginal.cpp \
521         insets/InsetNewline.cpp \
522         insets/InsetNewpage.cpp \
523         insets/InsetNomencl.cpp \
524         insets/InsetNote.cpp \
525         insets/InsetOptArg.cpp \
526         insets/InsetQuotes.cpp \
527         insets/InsetRef.cpp \
528         insets/InsetSpace.cpp \
529         insets/InsetSpecialChar.cpp \
530         insets/InsetTabular.cpp \
531         insets/InsetText.cpp \
532         insets/InsetTOC.cpp \
533         insets/InsetVSpace.cpp \
534         insets/InsetWrap.cpp
535
536 HEADERFILESINSETS = \
537         insets/MailInset.h \
538         insets/ExternalSupport.h \
539         insets/ExternalTemplate.h \
540         insets/ExternalTransforms.h \
541         insets/RenderBase.h \
542         insets/RenderButton.h \
543         insets/RenderGraphic.h \
544         insets/RenderPreview.h \
545         insets/Inset.h \
546         insets/InsetBibitem.h \
547         insets/InsetBibtex.h \
548         insets/InsetBox.h \
549         insets/InsetBranch.h \
550         insets/InsetCaption.h \
551         insets/InsetCitation.h \
552         insets/InsetCode.h \
553         insets/InsetCollapsable.h \
554         insets/InsetCommand.h \
555         insets/InsetCommandParams.h \
556         insets/InsetERT.h \
557         insets/InsetEnvironment.h \
558         insets/InsetExternal.h \
559         insets/InsetFlex.h \
560         insets/InsetFloat.h \
561         insets/InsetFoot.h \
562         insets/InsetFloatList.h \
563         insets/InsetFootlike.h \
564         insets/InsetGraphicsParams.h \
565         insets/InsetGraphics.h \
566         insets/InsetHFill.h \
567         insets/InsetHyperlink.h \
568         insets/InsetInclude.h \
569         insets/InsetIndex.h \
570         insets/InsetInfo.h \
571         insets/InsetLabel.h \
572         insets/InsetLayout.h \
573         insets/InsetLine.h \
574         insets/InsetListings.h \
575         insets/InsetListingsParams.h \
576         insets/InsetMarginal.h \
577         insets/InsetNewline.h \
578         insets/InsetNewpage.h \
579         insets/InsetNomencl.h \
580         insets/InsetNote.h \
581         insets/InsetOptArg.h \
582         insets/InsetQuotes.h \
583         insets/InsetRef.h \
584         insets/InsetSpace.h \
585         insets/InsetSpecialChar.h \
586         insets/InsetTabular.h \
587         insets/InsetText.h \
588         insets/InsetTOC.h \
589         insets/InsetVSpace.h \
590         insets/InsetWrap.h
591
592 #       insets/InsetList.cpp \
593 #       insets/InsetList.h \
594 #       insets/InsetSection.h \
595 #       insets/InsetSection.cpp
596
597 lyxinsets.cpp:
598         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
599
600 if MONOLITHIC_INSETS
601
602 BUILT_SOURCES += lyxinsets.cpp
603 CLEANFILES += lyxinsets.cpp
604
605 liblyxinsets_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
606
607 else
608
609 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
610
611 endif