]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
619d8423c2e2dd3d2ae4d948607a61da7d3b149a
[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         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         BaseClassList.cpp \
80         BiblioInfo.cpp \
81         Bidi.cpp \
82         boost.cpp \
83         BranchList.cpp \
84         Buffer.cpp \
85         buffer_funcs.cpp \
86         BufferList.cpp \
87         BufferParams.cpp \
88         BufferView.cpp \
89         Bullet.cpp \
90         Changes.cpp \
91         Chktex.cpp \
92         CmdDef.cpp \
93         Color.cpp \
94         ConverterCache.cpp \
95         Converter.cpp \
96         CoordCache.cpp \
97         Counters.cpp \
98         Cursor.cpp \
99         CursorSlice.cpp \
100         CutAndPaste.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         Graph.cpp \
118         InsetIterator.cpp \
119         InsetList.cpp \
120         Intl.cpp \
121         KeyMap.cpp \
122         KeySequence.cpp \
123         Language.cpp \
124         LaTeX.cpp \
125         LaTeXFeatures.cpp \
126         Length.cpp \
127         lengthcommon.cpp \
128         Lexer.cpp \
129         LyX.cpp \
130         LyXAction.cpp \
131         lyxfind.cpp \
132         LyXFunc.cpp \
133         LyXRC.cpp \
134         LyXVC.cpp \
135         MenuBackend.cpp \
136         MetricsInfo.cpp \
137         ModuleList.cpp \
138         Mover.cpp \
139         output_docbook.cpp \
140         output.cpp \
141         output_latex.cpp \
142         OutputParams.cpp \
143         output_plaintext.cpp \
144         Paragraph.cpp \
145         paragraph_funcs.cpp \
146         ParagraphMetrics.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         TextClass.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         WordList.cpp
172
173 HEADERFILESCORE = \
174         Author.h \
175         BaseClassList.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         DepTable.h \
199         DispatchResult.h \
200         DocIterator.h \
201         EmbeddedFiles.h \
202         Encoding.h \
203         ErrorList.h \
204         Exporter.h \
205         factory.h \
206         Floating.h \
207         FloatList.h \
208         Font.h \
209         FontEnums.h \
210         FontInfo.h \
211         FontIterator.h \
212         FontList.h \
213         Format.h \
214         FuncRequest.h \
215         FuncStatus.h \
216         Graph.h \
217         InsetIterator.h \
218         InsetList.h \
219         Intl.h \
220         KeyMap.h \
221         KeySequence.h \
222         Language.h \
223         LaTeXFeatures.h \
224         LaTeX.h \
225         Layout.h \
226         LayoutPtr.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         MenuBackend.h \
238         MetricsInfo.h \
239         ModuleList.h \
240         Mover.h \
241         output_docbook.h \
242         output.h \
243         output_latex.h \
244         OutputParams.h \
245         output_plaintext.h \
246         paper.h \
247         paragraph_funcs.h \
248         Paragraph.h \
249         ParagraphList.h \
250         ParagraphMetrics.h \
251         ParagraphParameters.h \
252         ParIterator.h \
253         PDFOptions.h \
254         Row.h \
255         rowpainter.h \
256         Server.h \
257         ServerSocket.h \
258         Session.h \
259         sgml.h \
260         Spacing.h \
261         SpellBase.h \
262         TexRow.h \
263         TexStream.h \
264         Text.h \
265         TextClass.h \
266         TextMetrics.h \
267         TocBackend.h \
268         ToolbarBackend.h \
269         Trans.h \
270         Undo.h \
271         update_flags.h \
272         VCBackend.h \
273         version.h \
274         VSpace.h \
275         WordLangTuple.h \
276         WordList.h
277
278 STANDALONEFILES = \
279         Layout.cpp
280
281
282 lyxcore.cpp:
283         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
284
285 if MONOLITHIC_CORE
286
287 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
288 CLEANFILES += lyxcore.cpp
289
290 liblyxcore_la_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
291
292 else
293
294 liblyxcore_la_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
295
296 endif
297
298 ############################### Graphics ##############################
299
300 noinst_LTLIBRARIES += liblyxgraphics.la
301
302 liblyxgraphics_la_SOURCES = \
303         graphics/GraphicsCache.h \
304         graphics/GraphicsCache.cpp \
305         graphics/GraphicsCacheItem.h \
306         graphics/GraphicsCacheItem.cpp \
307         graphics/GraphicsConverter.h \
308         graphics/GraphicsConverter.cpp \
309         graphics/GraphicsImage.h \
310         graphics/GraphicsImage.cpp \
311         graphics/GraphicsLoader.h \
312         graphics/GraphicsLoader.cpp \
313         graphics/GraphicsParams.cpp \
314         graphics/GraphicsParams.h \
315         graphics/GraphicsTypes.h \
316         graphics/GraphicsTypes.cpp \
317         graphics/PreviewImage.h \
318         graphics/PreviewImage.cpp \
319         graphics/PreviewLoader.h \
320         graphics/PreviewLoader.cpp \
321         graphics/Previews.h \
322         graphics/Previews.cpp
323
324
325 ############################### Mathed  ##############################
326
327 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
328
329 noinst_LTLIBRARIES += liblyxmathed.la
330
331 SOURCEFILESMATHED = \
332         mathed/InsetMathAMSArray.cpp \
333         mathed/InsetMathArray.cpp \
334         mathed/InsetMathBig.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/InsetMathBoldSymbol.h \
401         mathed/InsetMathBox.h \
402         mathed/InsetMathBrace.h \
403         mathed/InsetMathCases.h \
404         mathed/InsetMathChar.h \
405         mathed/InsetMathColor.h \
406         mathed/CommandInset.h \
407         mathed/InsetMathComment.h \
408         mathed/InsetMathDelim.h \
409         mathed/InsetMathDiff.h \
410         mathed/InsetMathDots.h \
411         mathed/InsetMathEnv.h \
412         mathed/InsetMathExFunc.h \
413         mathed/InsetMathExInt.h \
414         mathed/InsetMathFont.h \
415         mathed/InsetMathFontOld.h \
416         mathed/InsetMathFrac.h \
417         mathed/InsetMathGrid.h \
418         mathed/InsetMath.h \
419         mathed/InsetMathHull.h \
420         mathed/InsetMathKern.h \
421         mathed/InsetMathLefteqn.h \
422         mathed/InsetMathLim.h \
423         mathed/MathMacro.h \
424         mathed/InsetMathMatrix.h \
425         mathed/InsetMathNest.h \
426         mathed/InsetMathNumber.h \
427         mathed/InsetMathOverset.h \
428         mathed/InsetMathPar.h \
429         mathed/InsetMathPhantom.h \
430         mathed/InsetMathRef.h \
431         mathed/InsetMathRoot.h \
432         mathed/InsetMathScript.h \
433         mathed/InsetMathSize.h \
434         mathed/InsetMathSpace.h \
435         mathed/InsetMathSplit.h \
436         mathed/InsetMathSqrt.h \
437         mathed/InsetMathStackrel.h \
438         mathed/InsetMathString.h \
439         mathed/InsetMathSubstack.h \
440         mathed/InsetMathSymbol.h \
441         mathed/InsetMathTabular.h \
442         mathed/InsetMathUnderset.h \
443         mathed/InsetMathUnknown.h \
444         mathed/InsetMathXArrow.h \
445         mathed/InsetMathXYMatrix.h \
446         mathed/MathAtom.h \
447         mathed/MathAutoCorrect.h \
448         mathed/MathData.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 EXTRA_DIST += \
482         insets/InsetTheorem.cpp \
483         insets/InsetTheorem.h
484
485 SOURCEFILESINSETS = \
486         insets/MailInset.cpp \
487         insets/ExternalSupport.cpp \
488         insets/ExternalTemplate.cpp \
489         insets/ExternalTransforms.cpp \
490         insets/RenderButton.cpp \
491         insets/RenderGraphic.cpp \
492         insets/RenderPreview.cpp \
493         insets/Inset.cpp \
494         insets/InsetBibitem.cpp \
495         insets/InsetBibtex.cpp \
496         insets/InsetBox.cpp \
497         insets/InsetBranch.cpp \
498         insets/InsetCaption.cpp \
499         insets/InsetCitation.cpp \
500         insets/InsetCollapsable.cpp \
501         insets/InsetCommand.cpp \
502         insets/InsetCommandParams.cpp \
503         insets/InsetEnvironment.cpp \
504         insets/InsetERT.cpp \
505         insets/InsetExternal.cpp \
506         insets/InsetFlex.cpp \
507         insets/InsetFloat.cpp \
508         insets/InsetFloatList.cpp \
509         insets/InsetFoot.cpp \
510         insets/InsetFootlike.cpp \
511         insets/InsetGraphicsParams.cpp \
512         insets/InsetGraphics.cpp \
513         insets/InsetHFill.cpp \
514         insets/InsetHyperlink.cpp \
515         insets/InsetInclude.cpp \
516         insets/InsetIndex.cpp \
517         insets/InsetInfo.cpp \
518         insets/InsetLabel.cpp \
519         insets/InsetLayout.cpp \
520         insets/InsetLine.cpp \
521         insets/InsetListings.cpp \
522         insets/InsetListingsParams.cpp \
523         insets/InsetMarginal.cpp \
524         insets/InsetNewline.cpp \
525         insets/InsetNewpage.cpp \
526         insets/InsetNomencl.cpp \
527         insets/InsetNote.cpp \
528         insets/InsetOptArg.cpp \
529         insets/InsetQuotes.cpp \
530         insets/InsetRef.cpp \
531         insets/InsetSpace.cpp \
532         insets/InsetSpecialChar.cpp \
533         insets/InsetTabular.cpp \
534         insets/InsetText.cpp \
535         insets/InsetTOC.cpp \
536         insets/InsetVSpace.cpp \
537         insets/InsetWrap.cpp
538
539 HEADERFILESINSETS = \
540         insets/MailInset.h \
541         insets/ExternalSupport.h \
542         insets/ExternalTemplate.h \
543         insets/ExternalTransforms.h \
544         insets/RenderBase.h \
545         insets/RenderButton.h \
546         insets/RenderGraphic.h \
547         insets/RenderPreview.h \
548         insets/Inset.h \
549         insets/InsetBibitem.h \
550         insets/InsetBibtex.h \
551         insets/InsetBox.h \
552         insets/InsetBranch.h \
553         insets/InsetCaption.h \
554         insets/InsetCitation.h \
555         insets/InsetCode.h \
556         insets/InsetCollapsable.h \
557         insets/InsetCommand.h \
558         insets/InsetCommandParams.h \
559         insets/InsetERT.h \
560         insets/InsetEnvironment.h \
561         insets/InsetExternal.h \
562         insets/InsetFlex.h \
563         insets/InsetFloat.h \
564         insets/InsetFoot.h \
565         insets/InsetFloatList.h \
566         insets/InsetFootlike.h \
567         insets/InsetGraphicsParams.h \
568         insets/InsetGraphics.h \
569         insets/InsetHFill.h \
570         insets/InsetHyperlink.h \
571         insets/InsetInclude.h \
572         insets/InsetIndex.h \
573         insets/InsetInfo.h \
574         insets/InsetLabel.h \
575         insets/InsetLayout.h \
576         insets/InsetLine.h \
577         insets/InsetListings.h \
578         insets/InsetListingsParams.h \
579         insets/InsetMarginal.h \
580         insets/InsetNewline.h \
581         insets/InsetNewpage.h \
582         insets/InsetNomencl.h \
583         insets/InsetNote.h \
584         insets/InsetOptArg.h \
585         insets/InsetQuotes.h \
586         insets/InsetRef.h \
587         insets/InsetSpace.h \
588         insets/InsetSpecialChar.h \
589         insets/InsetTabular.h \
590         insets/InsetText.h \
591         insets/InsetTOC.h \
592         insets/InsetVSpace.h \
593         insets/InsetWrap.h
594
595 #       insets/InsetList.cpp \
596 #       insets/InsetList.h \
597 #       insets/InsetSection.h \
598 #       insets/InsetSection.cpp \
599 #       insets/InsetTheorem.cpp \
600 #       insets/InsetTheorem.h
601
602 lyxinsets.cpp:
603         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
604
605 if MONOLITHIC_INSETS
606
607 BUILT_SOURCES += lyxinsets.cpp
608 CLEANFILES += lyxinsets.cpp
609
610 liblyxinsets_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
611
612 else
613
614 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
615
616 endif