]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
0b4203424d232686c5191b1100fba1e5c29dc98d
[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         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         FontIterator.cpp \
111         FontList.cpp \
112         Font.cpp \
113         Format.cpp \
114         FuncRequest.cpp \
115         FuncStatus.cpp \
116         Graph.cpp \
117         InsetIterator.cpp \
118         InsetList.cpp \
119         Intl.cpp \
120         KeyMap.cpp \
121         KeySequence.cpp \
122         Language.cpp \
123         LaTeX.cpp \
124         LaTeXFeatures.cpp \
125         Length.cpp \
126         lengthcommon.cpp \
127         Lexer.cpp \
128         LyX.cpp \
129         lyxfind.cpp \
130         LyXFunc.cpp \
131         LyXRC.cpp \
132         LyXVC.cpp \
133         MenuBackend.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         ParagraphParameters.cpp \
145         ParIterator.cpp \
146         PDFOptions.cpp \
147         Row.cpp \
148         rowpainter.cpp \
149         Server.cpp \
150         ServerSocket.cpp \
151         sgml.cpp \
152         Session.cpp \
153         Spacing.cpp \
154         TexRow.cpp \
155         Text.cpp \
156         Text2.cpp \
157         Text3.cpp \
158         TexStream.cpp \
159         TextClassList.cpp \
160         TextMetrics.cpp \
161         TocBackend.cpp \
162         ToolbarBackend.cpp \
163         Trans.cpp \
164         Undo.cpp \
165         VCBackend.cpp \
166         version.cpp \
167         VSpace.cpp \
168         ParagraphMetrics.cpp \
169         LyXAction.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         config.h.in \
188         ConverterCache.h \
189         Converter.h \
190         CoordCache.h \
191         Counters.h \
192         Cursor.h \
193         CursorSlice.h \
194         CutAndPaste.h \
195         DepTable.h \
196         DispatchResult.h \
197         DocIterator.h \
198         EmbeddedFiles.h \
199         Encoding.h \
200         ErrorList.h \
201         Exporter.h \
202         factory.h \
203         Floating.h \
204         FloatList.h \
205         Font.h \
206         FontEnums.h \
207         FontInfo.h \
208         FontIterator.h \
209         FontList.h \
210         Format.h \
211         FuncRequest.h \
212         FuncStatus.h \
213         Graph.h \
214         InsetIterator.h \
215         InsetList.h \
216         Intl.h \
217         KeyMap.h \
218         KeySequence.h \
219         Language.h \
220         LaTeXFeatures.h \
221         LaTeX.h \
222         Layout.h \
223         LayoutPtr.h \
224         LayoutEnums.h \
225         Length.h \
226         Lexer.h \
227         lfuns.h \
228         LyXAction.h \
229         lyxfind.h \
230         LyXFunc.h \
231         LyX.h \
232         LyXRC.h \
233         LyXVC.h \
234         MenuBackend.h \
235         MetricsInfo.h \
236         ModuleList.h \
237         Mover.h \
238         output_docbook.h \
239         output.h \
240         output_latex.h \
241         OutputParams.h \
242         output_plaintext.h \
243         paper.h \
244         paragraph_funcs.h \
245         Paragraph.h \
246         ParagraphList.h \
247         ParagraphMetrics.h \
248         ParagraphParameters.h \
249         ParIterator.h \
250         PDFOptions.h \
251         Row.h \
252         rowpainter.h \
253         Server.h \
254         ServerSocket.h \
255         Session.h \
256         sgml.h \
257         Spacing.h \
258         SpellBase.h \
259         TexRow.h \
260         TexStream.h \
261         Text.h \
262         TextClass.h \
263         TextClassList.h \
264         TextClassPtr.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         WordLangTuple.h \
274         VSpace.h
275
276 STANDALONEFILES = \
277         Layout.cpp \
278         TextClass.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/MathExtern.h \
449         mathed/MathFactory.h \
450         mathed/MathGridInfo.h \
451         mathed/MathMacroArgument.h \
452         mathed/MacroTable.h \
453         mathed/MathMacroTemplate.h \
454         mathed/MathParser.h \
455         mathed/ReplaceData.h \
456         mathed/MathStream.h \
457         mathed/MathSupport.h \
458         mathed/TextPainter.h 
459
460 lyxmathed.cpp:
461         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
462
463 if MONOLITHIC_MATHED
464
465 BUILT_SOURCES += lyxmathed.cpp
466 CLEANFILES += lyxmathed.cpp
467
468 liblyxmathed_la_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
469
470 else
471
472 liblyxmathed_la_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
473
474 endif
475
476 ############################### Insets  ##############################
477
478 noinst_LTLIBRARIES += liblyxinsets.la
479
480 EXTRA_DIST += \
481         insets/InsetTheorem.cpp \
482         insets/InsetTheorem.h
483
484 SOURCEFILESINSETS = \
485         insets/MailInset.cpp \
486         insets/ExternalSupport.cpp \
487         insets/ExternalTemplate.cpp \
488         insets/ExternalTransforms.cpp \
489         insets/RenderButton.cpp \
490         insets/RenderGraphic.cpp \
491         insets/RenderPreview.cpp \
492         insets/Inset.cpp \
493         insets/InsetBibitem.cpp \
494         insets/InsetBibtex.cpp \
495         insets/InsetBox.cpp \
496         insets/InsetBranch.cpp \
497         insets/InsetCaption.cpp \
498         insets/InsetCitation.cpp \
499         insets/InsetCollapsable.cpp \
500         insets/InsetCommand.cpp \
501         insets/InsetCommandParams.cpp \
502         insets/InsetEnvironment.cpp \
503         insets/InsetERT.cpp \
504         insets/InsetExternal.cpp \
505         insets/InsetFlex.cpp \
506         insets/InsetFloat.cpp \
507         insets/InsetFloatList.cpp \
508         insets/InsetFoot.cpp \
509         insets/InsetFootlike.cpp \
510         insets/InsetGraphicsParams.cpp \
511         insets/InsetGraphics.cpp \
512         insets/InsetHFill.cpp \
513         insets/InsetHyperlink.cpp \
514         insets/InsetInclude.cpp \
515         insets/InsetIndex.cpp \
516         insets/InsetInfo.cpp \
517         insets/InsetLabel.cpp \
518         insets/InsetLine.cpp \
519         insets/InsetListings.cpp \
520         insets/InsetListingsParams.cpp \
521         insets/InsetMarginal.cpp \
522         insets/InsetNewline.cpp \
523         insets/InsetNewpage.cpp \
524         insets/InsetNomencl.cpp \
525         insets/InsetNote.cpp \
526         insets/InsetOptArg.cpp \
527         insets/InsetQuotes.cpp \
528         insets/InsetRef.cpp \
529         insets/InsetSpace.cpp \
530         insets/InsetSpecialChar.cpp \
531         insets/InsetTabular.cpp \
532         insets/InsetText.cpp \
533         insets/InsetTOC.cpp \
534         insets/InsetVSpace.cpp \
535         insets/InsetWrap.cpp
536
537 HEADERFILESINSETS = \
538         insets/MailInset.h \
539         insets/ExternalSupport.h \
540         insets/ExternalTemplate.h \
541         insets/ExternalTransforms.h \
542         insets/RenderBase.h \
543         insets/RenderButton.h \
544         insets/RenderGraphic.h \
545         insets/RenderPreview.h \
546         insets/Inset.h \
547         insets/InsetBibitem.h \
548         insets/InsetBibtex.h \
549         insets/InsetBox.h \
550         insets/InsetBranch.h \
551         insets/InsetCaption.h \
552         insets/InsetCitation.h \
553         insets/InsetCode.h \
554         insets/InsetCollapsable.h \
555         insets/InsetCommand.h \
556         insets/InsetCommandParams.h \
557         insets/InsetERT.h \
558         insets/InsetEnvironment.h \
559         insets/InsetExternal.h \
560         insets/InsetFlex.h \
561         insets/InsetFloat.h \
562         insets/InsetFoot.h \
563         insets/InsetFloatList.h \
564         insets/InsetFootlike.h \
565         insets/InsetGraphicsParams.h \
566         insets/InsetGraphics.h \
567         insets/InsetHFill.h \
568         insets/InsetHyperlink.h \
569         insets/InsetInclude.h \
570         insets/InsetIndex.h \
571         insets/InsetInfo.h \
572         insets/InsetLabel.h \
573         insets/InsetLayout.h \
574         insets/InsetLine.h \
575         insets/InsetListings.h \
576         insets/InsetListingsParams.h \
577         insets/InsetMarginal.h \
578         insets/InsetNewline.h \
579         insets/InsetNewpage.h \
580         insets/InsetNomencl.h \
581         insets/InsetNote.h \
582         insets/InsetOptArg.h \
583         insets/InsetQuotes.h \
584         insets/InsetRef.h \
585         insets/InsetSpace.h \
586         insets/InsetSpecialChar.h \
587         insets/InsetTabular.h \
588         insets/InsetText.h \
589         insets/InsetTOC.h \
590         insets/InsetVSpace.h \
591         insets/InsetWrap.h
592
593 #       insets/InsetList.cpp \
594 #       insets/InsetList.h \
595 #       insets/InsetSection.h \
596 #       insets/InsetSection.cpp \
597 #       insets/InsetTheorem.cpp \
598 #       insets/InsetTheorem.h
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_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
609
610 else
611
612 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
613
614 endif