]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Fix the rest of bug 5010.
[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         Trans.cpp \
168         Undo.cpp \
169         VCBackend.cpp \
170         version.cpp \
171         VSpace.cpp \
172         WordList.cpp
173
174 HEADERFILESCORE = \
175         Author.h \
176         Bidi.h \
177         BranchList.h \
178         buffer_funcs.h \
179         Buffer.h \
180         BufferList.h \
181         BufferParams.h \
182         BufferView.h \
183         Bullet.h \
184         Citation.h \
185         Changes.h \
186         Chktex.h \
187         CmdDef.h \
188         ColorCode.h \
189         Color.h \
190         CompletionList.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         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         FontList.h \
212         Format.h \
213         FuncCode.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         LayoutEnums.h \
227         LayoutFile.h \
228         Length.h \
229         Lexer.h \
230         LyXAction.h \
231         lyxfind.h \
232         LyXFunc.h \
233         LyX.h \
234         LyXRC.h \
235         LyXVC.h \
236         MetricsInfo.h \
237         ModuleList.h \
238         Mover.h \
239         output_docbook.h \
240         output.h \
241         output_latex.h \
242         OutputParams.h \
243         output_plaintext.h \
244         paper.h \
245         paragraph_funcs.h \
246         Paragraph.h \
247         ParagraphList.h \
248         ParagraphMetrics.h \
249         ParagraphParameters.h \
250         ParIterator.h \
251         PDFOptions.h \
252         Row.h \
253         rowpainter.h \
254         Server.h \
255         ServerSocket.h \
256         Session.h \
257         sgml.h \
258         Spacing.h \
259         SpellBase.h \
260         TexRow.h \
261         TexStream.h \
262         Text.h \
263         TextClass.h \
264         TextMetrics.h \
265         TocBackend.h \
266         Trans.h \
267         Undo.h \
268         update_flags.h \
269         VCBackend.h \
270         version.h \
271         VSpace.h \
272         WordLangTuple.h \
273         WordList.h
274
275 STANDALONEFILES = \
276         Layout.cpp
277
278
279 lyxcore.cpp:
280         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
281
282 if MONOLITHIC_CORE
283
284 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
285 CLEANFILES += lyxcore.cpp
286
287 liblyxcore_la_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
288
289 else
290
291 liblyxcore_la_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
292
293 endif
294
295 ############################### Graphics ##############################
296
297 noinst_LTLIBRARIES += liblyxgraphics.la
298
299 liblyxgraphics_la_SOURCES = \
300         graphics/GraphicsCache.h \
301         graphics/GraphicsCache.cpp \
302         graphics/GraphicsCacheItem.h \
303         graphics/GraphicsCacheItem.cpp \
304         graphics/GraphicsConverter.h \
305         graphics/GraphicsConverter.cpp \
306         graphics/GraphicsImage.h \
307         graphics/GraphicsImage.cpp \
308         graphics/GraphicsLoader.h \
309         graphics/GraphicsLoader.cpp \
310         graphics/GraphicsParams.cpp \
311         graphics/GraphicsParams.h \
312         graphics/GraphicsTypes.h \
313         graphics/GraphicsTypes.cpp \
314         graphics/PreviewImage.h \
315         graphics/PreviewImage.cpp \
316         graphics/PreviewLoader.h \
317         graphics/PreviewLoader.cpp \
318         graphics/Previews.h \
319         graphics/Previews.cpp
320
321
322 ############################### Mathed  ##############################
323
324 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
325
326 noinst_LTLIBRARIES += liblyxmathed.la
327
328 SOURCEFILESMATHED = \
329         mathed/InsetMathAMSArray.cpp \
330         mathed/InsetMathArray.cpp \
331         mathed/InsetMathBig.cpp \
332         mathed/InsetMathBoldSymbol.cpp \
333         mathed/InsetMathBox.cpp \
334         mathed/InsetMathBrace.cpp \
335         mathed/InsetMath.cpp \
336         mathed/InsetMathCases.cpp \
337         mathed/InsetMathChar.cpp \
338         mathed/InsetMathColor.cpp \
339         mathed/CommandInset.cpp \
340         mathed/InsetMathComment.cpp \
341         mathed/InsetMathDecoration.cpp \
342         mathed/InsetMathDecoration.h \
343         mathed/InsetMathDelim.cpp \
344         mathed/InsetMathDiff.cpp \
345         mathed/InsetMathDots.cpp \
346         mathed/InsetMathEnv.cpp \
347         mathed/InsetMathExFunc.cpp \
348         mathed/InsetMathExInt.cpp \
349         mathed/InsetMathFont.cpp \
350         mathed/InsetMathFontOld.cpp \
351         mathed/InsetMathFrac.cpp \
352         mathed/InsetMathGrid.cpp \
353         mathed/InsetMathHull.cpp \
354         mathed/InsetMathKern.cpp \
355         mathed/InsetMathLefteqn.cpp \
356         mathed/InsetMathLim.cpp \
357         mathed/MathMacro.cpp \
358         mathed/InsetMathMatrix.cpp \
359         mathed/InsetMathNest.cpp \
360         mathed/InsetMathNumber.cpp \
361         mathed/InsetMathOverset.cpp \
362         mathed/InsetMathPar.cpp \
363         mathed/InsetMathPhantom.cpp \
364         mathed/InsetMathRef.cpp \
365         mathed/InsetMathRoot.cpp \
366         mathed/InsetMathScript.cpp \
367         mathed/InsetMathSize.cpp \
368         mathed/InsetMathSpace.cpp \
369         mathed/InsetMathSplit.cpp \
370         mathed/InsetMathSqrt.cpp \
371         mathed/InsetMathStackrel.cpp \
372         mathed/InsetMathString.cpp \
373         mathed/InsetMathSubstack.cpp \
374         mathed/InsetMathSymbol.cpp \
375         mathed/InsetMathTabular.cpp \
376         mathed/InsetMathUnderset.cpp \
377         mathed/InsetMathUnknown.cpp \
378         mathed/InsetMathXArrow.cpp \
379         mathed/InsetMathXYMatrix.cpp \
380         mathed/MathAtom.cpp \
381         mathed/MathAutoCorrect.cpp \
382         mathed/MathData.cpp \
383         mathed/MathExtern.cpp \
384         mathed/MathFactory.cpp \
385         mathed/MathMacroArgument.cpp \
386         mathed/MacroTable.cpp \
387         mathed/MathMacroTemplate.cpp \
388         mathed/MathParser.cpp \
389         mathed/MathStream.cpp \
390         mathed/MathSupport.cpp \
391         mathed/TextPainter.cpp
392
393 HEADERFILESMATHED = \
394         mathed/InsetMathAMSArray.h \
395         mathed/InsetMathArray.h \
396         mathed/InsetMathBig.h \
397         mathed/InsetMathBoldSymbol.h \
398         mathed/InsetMathBox.h \
399         mathed/InsetMathBrace.h \
400         mathed/InsetMathCases.h \
401         mathed/InsetMathChar.h \
402         mathed/InsetMathColor.h \
403         mathed/CommandInset.h \
404         mathed/InsetMathComment.h \
405         mathed/InsetMathDelim.h \
406         mathed/InsetMathDiff.h \
407         mathed/InsetMathDots.h \
408         mathed/InsetMathEnv.h \
409         mathed/InsetMathExFunc.h \
410         mathed/InsetMathExInt.h \
411         mathed/InsetMathFont.h \
412         mathed/InsetMathFontOld.h \
413         mathed/InsetMathFrac.h \
414         mathed/InsetMathGrid.h \
415         mathed/InsetMath.h \
416         mathed/InsetMathHull.h \
417         mathed/InsetMathKern.h \
418         mathed/InsetMathLefteqn.h \
419         mathed/InsetMathLim.h \
420         mathed/MathMacro.h \
421         mathed/InsetMathMatrix.h \
422         mathed/InsetMathNest.h \
423         mathed/InsetMathNumber.h \
424         mathed/InsetMathOverset.h \
425         mathed/InsetMathPar.h \
426         mathed/InsetMathPhantom.h \
427         mathed/InsetMathRef.h \
428         mathed/InsetMathRoot.h \
429         mathed/InsetMathScript.h \
430         mathed/InsetMathSize.h \
431         mathed/InsetMathSpace.h \
432         mathed/InsetMathSplit.h \
433         mathed/InsetMathSqrt.h \
434         mathed/InsetMathStackrel.h \
435         mathed/InsetMathString.h \
436         mathed/InsetMathSubstack.h \
437         mathed/InsetMathSymbol.h \
438         mathed/InsetMathTabular.h \
439         mathed/InsetMathUnderset.h \
440         mathed/InsetMathUnknown.h \
441         mathed/InsetMathXArrow.h \
442         mathed/InsetMathXYMatrix.h \
443         mathed/MathAtom.h \
444         mathed/MathAutoCorrect.h \
445         mathed/MathData.h \
446         mathed/MathCompletionList.h \
447         mathed/MathExtern.h \
448         mathed/MathFactory.h \
449         mathed/MathGridInfo.h \
450         mathed/MathMacroArgument.h \
451         mathed/MacroTable.h \
452         mathed/MathMacroTemplate.h \
453         mathed/MathParser.h \
454         mathed/ReplaceData.h \
455         mathed/MathStream.h \
456         mathed/MathSupport.h \
457         mathed/TextPainter.h 
458
459 lyxmathed.cpp:
460         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
461
462 if MONOLITHIC_MATHED
463
464 BUILT_SOURCES += lyxmathed.cpp
465 CLEANFILES += lyxmathed.cpp
466
467 liblyxmathed_la_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
468
469 else
470
471 liblyxmathed_la_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
472
473 endif
474
475 ############################### Insets  ##############################
476
477 noinst_LTLIBRARIES += liblyxinsets.la
478
479 SOURCEFILESINSETS = \
480         insets/ExternalSupport.cpp \
481         insets/ExternalTemplate.cpp \
482         insets/ExternalTransforms.cpp \
483         insets/RenderButton.cpp \
484         insets/RenderGraphic.cpp \
485         insets/RenderPreview.cpp \
486         insets/Inset.cpp \
487         insets/InsetBibitem.cpp \
488         insets/InsetBibtex.cpp \
489         insets/InsetBox.cpp \
490         insets/InsetBranch.cpp \
491         insets/InsetCaption.cpp \
492         insets/InsetCitation.cpp \
493         insets/InsetCollapsable.cpp \
494         insets/InsetCommand.cpp \
495         insets/InsetCommandParams.cpp \
496         insets/InsetERT.cpp \
497         insets/InsetExternal.cpp \
498         insets/InsetFlex.cpp \
499         insets/InsetFloat.cpp \
500         insets/InsetFloatList.cpp \
501         insets/InsetFoot.cpp \
502         insets/InsetFootlike.cpp \
503         insets/InsetGraphicsParams.cpp \
504         insets/InsetGraphics.cpp \
505         insets/InsetHyperlink.cpp \
506         insets/InsetInclude.cpp \
507         insets/InsetIndex.cpp \
508         insets/InsetInfo.cpp \
509         insets/InsetLabel.cpp \
510         insets/InsetLayout.cpp \
511         insets/InsetLine.cpp \
512         insets/InsetListings.cpp \
513         insets/InsetListingsParams.cpp \
514         insets/InsetMarginal.cpp \
515         insets/InsetNewline.cpp \
516         insets/InsetNewpage.cpp \
517         insets/InsetNomencl.cpp \
518         insets/InsetNote.cpp \
519         insets/InsetOptArg.cpp \
520         insets/InsetQuotes.cpp \
521         insets/InsetRef.cpp \
522         insets/InsetSpace.cpp \
523         insets/InsetSpecialChar.cpp \
524         insets/InsetTabular.cpp \
525         insets/InsetText.cpp \
526         insets/InsetTOC.cpp \
527         insets/InsetVSpace.cpp \
528         insets/InsetWrap.cpp
529
530 HEADERFILESINSETS = \
531         insets/ExternalSupport.h \
532         insets/ExternalTemplate.h \
533         insets/ExternalTransforms.h \
534         insets/RenderBase.h \
535         insets/RenderButton.h \
536         insets/RenderGraphic.h \
537         insets/RenderPreview.h \
538         insets/Inset.h \
539         insets/InsetBibitem.h \
540         insets/InsetBibtex.h \
541         insets/InsetBox.h \
542         insets/InsetBranch.h \
543         insets/InsetCaption.h \
544         insets/InsetCitation.h \
545         insets/InsetCode.h \
546         insets/InsetCollapsable.h \
547         insets/InsetCommand.h \
548         insets/InsetCommandParams.h \
549         insets/InsetERT.h \
550         insets/InsetExternal.h \
551         insets/InsetFlex.h \
552         insets/InsetFloat.h \
553         insets/InsetFoot.h \
554         insets/InsetFloatList.h \
555         insets/InsetFootlike.h \
556         insets/InsetGraphicsParams.h \
557         insets/InsetGraphics.h \
558         insets/InsetHyperlink.h \
559         insets/InsetInclude.h \
560         insets/InsetIndex.h \
561         insets/InsetInfo.h \
562         insets/InsetLabel.h \
563         insets/InsetLayout.h \
564         insets/InsetLine.h \
565         insets/InsetListings.h \
566         insets/InsetListingsParams.h \
567         insets/InsetMarginal.h \
568         insets/InsetNewline.h \
569         insets/InsetNewpage.h \
570         insets/InsetNomencl.h \
571         insets/InsetNote.h \
572         insets/InsetOptArg.h \
573         insets/InsetQuotes.h \
574         insets/InsetRef.h \
575         insets/InsetSpace.h \
576         insets/InsetSpecialChar.h \
577         insets/InsetTabular.h \
578         insets/InsetText.h \
579         insets/InsetTOC.h \
580         insets/InsetVSpace.h \
581         insets/InsetWrap.h
582
583 #       insets/InsetList.cpp \
584 #       insets/InsetList.h \
585 #       insets/InsetSection.h \
586 #       insets/InsetSection.cpp
587
588 lyxinsets.cpp:
589         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
590
591 if MONOLITHIC_INSETS
592
593 BUILT_SOURCES += lyxinsets.cpp
594 CLEANFILES += lyxinsets.cpp
595
596 liblyxinsets_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
597
598 else
599
600 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
601
602 endif