]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
New XHTML math options. Format change.
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 DISTCLEANFILES += libintl.h
6
7 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS)
8 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
9
10 if BUILD_CLIENT_SUBDIR
11 CLIENT = client
12 endif
13
14 SUBDIRS = support frontends . $(CLIENT) tex2lyx
15
16 EXTRA_DIST = pch.h
17
18 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) \
19                  $(ENCHANT_LIBS) @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
20
21 noinst_LIBRARIES = liblyxcore.a
22 bin_PROGRAMS = lyx
23
24 lyx_LDADD = \
25         liblyxcore.a \
26         liblyxmathed.a \
27         liblyxinsets.a \
28         frontends/liblyxfrontends.a \
29         frontends/qt4/liblyxqt4.a \
30         liblyxgraphics.a \
31         support/liblyxsupport.a \
32         $(OTHERLIBS) \
33         $(QT4_LDFLAGS) \
34         $(QT4_LIB)
35
36 if LYX_WIN_RESOURCE
37 .rc.o:
38         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
39         windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
40 endif
41
42 #lyx_LDFLAGS=-Wl,-O1
43
44 BUILT_SOURCES = $(PCH_FILE)
45
46 if USE_ASPELL
47 ASPELL = AspellChecker.cpp AspellChecker.h
48 endif
49
50 if USE_ENCHANT
51 ENCHANT = EnchantChecker.cpp EnchantChecker.h
52 endif
53
54 if USE_HUNSPELL
55 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
56 endif
57
58 # These four objects are linked as object files as they are not
59 # referenced within the core and therefore are not picked up
60 # by the linker without looping over libs. We do not want that,
61 # and in fact libtools seems not able to do that.
62 lyx_SOURCES = \
63         main.cpp \
64         $(ASPELL) \
65         BiblioInfo.h \
66         BiblioInfo.cpp \
67         Box.cpp \
68         Box.h \
69         Compare.cpp \
70         Compare.h \
71         Dimension.cpp \
72         Dimension.h \
73         $(ENCHANT) \
74         $(HUNSPELL) \
75         PrinterParams.cpp \
76         PrinterParams.h \
77         Thesaurus.cpp \
78         Thesaurus.h
79
80 if LYX_WIN_RESOURCE
81 lyx_SOURCES += lyxwinres.rc
82 endif
83
84 SOURCEFILESCORE = \
85         Author.cpp \
86         Bidi.cpp \
87         boost.cpp \
88         BranchList.cpp \
89         Buffer.cpp \
90         buffer_funcs.cpp \
91         BufferList.cpp \
92         BufferParams.cpp \
93         BufferView.cpp \
94         Bullet.cpp \
95         Changes.cpp \
96         Chktex.cpp \
97         CmdDef.cpp \
98         Color.cpp \
99         ConverterCache.cpp \
100         Converter.cpp \
101         CoordCache.cpp \
102         Counters.cpp \
103         Cursor.cpp \
104         CursorSlice.cpp \
105         CutAndPaste.cpp \
106         DepTable.cpp \
107         DocIterator.cpp \
108         Encoding.cpp \
109         ErrorList.cpp \
110         Exporter.cpp \
111         factory.cpp \
112         Floating.cpp \
113         FloatList.cpp \
114         FontInfo.cpp \
115         FontList.cpp \
116         Font.cpp \
117         Format.cpp \
118         FuncRequest.cpp \
119         FuncStatus.cpp \
120         Graph.cpp \
121         HSpace.cpp \
122         IndicesList.cpp \
123         InsetIterator.cpp \
124         InsetList.cpp \
125         Intl.cpp \
126         KeyMap.cpp \
127         KeySequence.cpp \
128         Language.cpp \
129         LaTeX.cpp \
130         LaTeXFeatures.cpp \
131         LayoutFile.cpp \
132         LayoutModuleList.cpp \
133         Length.cpp \
134         lengthcommon.cpp \
135         Lexer.cpp \
136         LyX.cpp \
137         LyXAction.cpp \
138         lyxfind.cpp \
139         LyXRC.cpp \
140         LyXVC.cpp \
141         MetricsInfo.cpp \
142         ModuleList.cpp \
143         Mover.cpp \
144         output_docbook.cpp \
145         output.cpp \
146         output_latex.cpp \
147         output_xhtml.cpp \
148         OutputParams.cpp \
149         output_plaintext.cpp \
150         Paragraph.cpp \
151         ParagraphMetrics.cpp \
152         ParagraphParameters.cpp \
153         ParIterator.cpp \
154         PDFOptions.cpp \
155         Row.cpp \
156         rowpainter.cpp \
157         Server.cpp \
158         ServerSocket.cpp \
159         sgml.cpp \
160         Session.cpp \
161         Spacing.cpp \
162         TexRow.cpp \
163         Text.cpp \
164         Text2.cpp \
165         Text3.cpp \
166         TexStream.cpp \
167         TextClass.cpp \
168         TextMetrics.cpp \
169         TocBackend.cpp \
170         Trans.cpp \
171         Undo.cpp \
172         VCBackend.cpp \
173         version.cpp \
174         VSpace.cpp \
175         WordList.cpp
176
177 HEADERFILESCORE = \
178         Author.h \
179         Bidi.h \
180         BranchList.h \
181         buffer_funcs.h \
182         Buffer.h \
183         BufferList.h \
184         BufferParams.h \
185         BufferView.h \
186         Bullet.h \
187         Citation.h \
188         Changes.h \
189         Chktex.h \
190         CmdDef.h \
191         ColorCode.h \
192         Color.h \
193         ColorSet.h \
194         CompletionList.h \
195         ConverterCache.h \
196         Converter.h \
197         CoordCache.h \
198         Counters.h \
199         Cursor.h \
200         CursorSlice.h \
201         CutAndPaste.h \
202         DepTable.h \
203         DispatchResult.h \
204         DocIterator.h \
205         Encoding.h \
206         ErrorList.h \
207         Exporter.h \
208         factory.h \
209         Floating.h \
210         FloatList.h \
211         Font.h \
212         FontEnums.h \
213         FontInfo.h \
214         FontList.h \
215         Format.h \
216         FuncCode.h \
217         FuncRequest.h \
218         FuncStatus.h \
219         Graph.h \
220         HSpace.h \
221         IndicesList.h \
222         InsetIterator.h \
223         InsetList.h \
224         Intl.h \
225         KeyMap.h \
226         KeySequence.h \
227         Language.h \
228         LaTeXFeatures.h \
229         LaTeX.h \
230         Layout.h \
231         LayoutEnums.h \
232         LayoutFile.h \
233         LayoutModuleList.h \
234         Length.h \
235         Lexer.h \
236         LyXAction.h \
237         lyxfind.h \
238         LyX.h \
239         LyXRC.h \
240         LyXVC.h \
241         MetricsInfo.h \
242         ModuleList.h \
243         Mover.h \
244         output_docbook.h \
245         output.h \
246         OutputEnums.h \
247         output_latex.h \
248         output_xhtml.h \
249         OutputParams.h \
250         output_plaintext.h \
251         paper.h \
252         Paragraph.h \
253         ParagraphList.h \
254         ParagraphMetrics.h \
255         ParagraphParameters.h \
256         ParIterator.h \
257         PDFOptions.h \
258         Row.h \
259         rowpainter.h \
260         Server.h \
261         ServerSocket.h \
262         Session.h \
263         sgml.h \
264         Spacing.h \
265         SpellChecker.h \
266         TexRow.h \
267         TexStream.h \
268         Text.h \
269         TextClass.h \
270         TextMetrics.h \
271         TocBackend.h \
272         Trans.h \
273         Undo.h \
274         update_flags.h \
275         VCBackend.h \
276         version.h \
277         VSpace.h \
278         WordLangTuple.h \
279         WordList.h
280
281 STANDALONEFILES = \
282         Layout.cpp
283
284
285 lyxcore.cpp:
286         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
287
288 if MONOLITHIC_CORE
289
290 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
291 CLEANFILES += lyxcore.cpp
292
293 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
294
295 else
296
297 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
298
299 endif
300
301 #########################  Qt stuff  ##############################
302
303 MOCHEADER = Compare.h
304
305 if INSTALL_WINDOWS
306
307 MOCHEADER += Server.h
308 MOCFLAG = -D_WIN32
309
310 endif
311
312 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
313
314 BUILT_SOURCES += $(MOCEDFILES)
315 CLEANFILES += $(MOCEDFILES)
316
317 moc_%.cpp: %.h
318         $(MOC4) $(MOCFLAG) -o $@ $<
319
320 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
321
322 ############################### Graphics ##############################
323
324 noinst_LIBRARIES += liblyxgraphics.a
325
326 liblyxgraphics_a_SOURCES = \
327         graphics/GraphicsCache.h \
328         graphics/GraphicsCache.cpp \
329         graphics/GraphicsCacheItem.h \
330         graphics/GraphicsCacheItem.cpp \
331         graphics/GraphicsConverter.h \
332         graphics/GraphicsConverter.cpp \
333         graphics/GraphicsImage.h \
334         graphics/GraphicsLoader.h \
335         graphics/GraphicsLoader.cpp \
336         graphics/GraphicsParams.cpp \
337         graphics/GraphicsParams.h \
338         graphics/GraphicsTypes.h \
339         graphics/PreviewImage.h \
340         graphics/PreviewImage.cpp \
341         graphics/PreviewLoader.h \
342         graphics/PreviewLoader.cpp \
343         graphics/Previews.h \
344         graphics/Previews.cpp
345
346
347 ############################### Mathed  ##############################
348
349 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
350
351 noinst_LIBRARIES += liblyxmathed.a
352
353 SOURCEFILESMATHED = \
354         mathed/InsetMathAMSArray.cpp \
355         mathed/InsetMathArray.cpp \
356         mathed/InsetMathBig.cpp \
357         mathed/InsetMathBoldSymbol.cpp \
358         mathed/InsetMathBox.cpp \
359         mathed/InsetMathBrace.cpp \
360         mathed/InsetMath.cpp \
361         mathed/InsetMathCases.cpp \
362         mathed/InsetMathChar.cpp \
363         mathed/InsetMathColor.cpp \
364         mathed/CommandInset.cpp \
365         mathed/InsetMathComment.cpp \
366         mathed/InsetMathDecoration.cpp \
367         mathed/InsetMathDecoration.h \
368         mathed/InsetMathDelim.cpp \
369         mathed/InsetMathDiff.cpp \
370         mathed/InsetMathDots.cpp \
371         mathed/InsetMathEnsureMath.cpp \
372         mathed/InsetMathEnv.cpp \
373         mathed/InsetMathExFunc.cpp \
374         mathed/InsetMathExInt.cpp \
375         mathed/InsetMathFont.cpp \
376         mathed/InsetMathFontOld.cpp \
377         mathed/InsetMathFrac.cpp \
378         mathed/InsetMathGrid.cpp \
379         mathed/InsetMathHull.cpp \
380         mathed/InsetMathKern.cpp \
381         mathed/InsetMathLefteqn.cpp \
382         mathed/InsetMathLim.cpp \
383         mathed/MathMacro.cpp \
384         mathed/InsetMathMatrix.cpp \
385         mathed/InsetMathNest.cpp \
386         mathed/InsetMathNumber.cpp \
387         mathed/InsetMathOverset.cpp \
388         mathed/InsetMathPar.cpp \
389         mathed/InsetMathPhantom.cpp \
390         mathed/InsetMathRef.cpp \
391         mathed/InsetMathRoot.cpp \
392         mathed/InsetMathScript.cpp \
393         mathed/InsetMathSize.cpp \
394         mathed/InsetMathSpace.cpp \
395         mathed/InsetMathSpecialChar.cpp \
396         mathed/InsetMathSplit.cpp \
397         mathed/InsetMathSqrt.cpp \
398         mathed/InsetMathStackrel.cpp \
399         mathed/InsetMathString.cpp \
400         mathed/InsetMathSubstack.cpp \
401         mathed/InsetMathSymbol.cpp \
402         mathed/InsetMathTabular.cpp \
403         mathed/InsetMathUnderset.cpp \
404         mathed/InsetMathUnknown.cpp \
405         mathed/InsetMathXArrow.cpp \
406         mathed/InsetMathXYMatrix.cpp \
407         mathed/MathAtom.cpp \
408         mathed/MathAutoCorrect.cpp \
409         mathed/MathData.cpp \
410         mathed/MathExtern.cpp \
411         mathed/MathFactory.cpp \
412         mathed/MathMacroArgument.cpp \
413         mathed/MacroTable.cpp \
414         mathed/MathMacroTemplate.cpp \
415         mathed/MathParser.cpp \
416         mathed/MathStream.cpp \
417         mathed/MathSupport.cpp \
418         mathed/TextPainter.cpp
419
420 HEADERFILESMATHED = \
421         mathed/InsetMathAMSArray.h \
422         mathed/InsetMathArray.h \
423         mathed/InsetMathBig.h \
424         mathed/InsetMathBoldSymbol.h \
425         mathed/InsetMathBox.h \
426         mathed/InsetMathBrace.h \
427         mathed/InsetMathCases.h \
428         mathed/InsetMathChar.h \
429         mathed/InsetMathColor.h \
430         mathed/CommandInset.h \
431         mathed/InsetMathComment.h \
432         mathed/InsetMathDelim.h \
433         mathed/InsetMathDiff.h \
434         mathed/InsetMathDots.h \
435         mathed/InsetMathEnsureMath.h \
436         mathed/InsetMathEnv.h \
437         mathed/InsetMathExFunc.h \
438         mathed/InsetMathExInt.h \
439         mathed/InsetMathFont.h \
440         mathed/InsetMathFontOld.h \
441         mathed/InsetMathFrac.h \
442         mathed/InsetMathGrid.h \
443         mathed/InsetMath.h \
444         mathed/InsetMathHull.h \
445         mathed/InsetMathKern.h \
446         mathed/InsetMathLefteqn.h \
447         mathed/InsetMathLim.h \
448         mathed/MathMacro.h \
449         mathed/InsetMathMatrix.h \
450         mathed/InsetMathNest.h \
451         mathed/InsetMathNumber.h \
452         mathed/InsetMathOverset.h \
453         mathed/InsetMathPar.h \
454         mathed/InsetMathPhantom.h \
455         mathed/InsetMathRef.h \
456         mathed/InsetMathRoot.h \
457         mathed/InsetMathScript.h \
458         mathed/InsetMathSize.h \
459         mathed/InsetMathSpace.h \
460         mathed/InsetMathSpecialChar.h \
461         mathed/InsetMathSplit.h \
462         mathed/InsetMathSqrt.h \
463         mathed/InsetMathStackrel.h \
464         mathed/InsetMathString.h \
465         mathed/InsetMathSubstack.h \
466         mathed/InsetMathSymbol.h \
467         mathed/InsetMathTabular.h \
468         mathed/InsetMathUnderset.h \
469         mathed/InsetMathUnknown.h \
470         mathed/InsetMathXArrow.h \
471         mathed/InsetMathXYMatrix.h \
472         mathed/MathAtom.h \
473         mathed/MathAutoCorrect.h \
474         mathed/MathData.h \
475         mathed/MathCompletionList.h \
476         mathed/MathExtern.h \
477         mathed/MathFactory.h \
478         mathed/MathGridInfo.h \
479         mathed/MathMacroArgument.h \
480         mathed/MacroTable.h \
481         mathed/MathMacroTemplate.h \
482         mathed/MathParser.h \
483         mathed/MathParser_flags.h \
484         mathed/ReplaceData.h \
485         mathed/MathStream.h \
486         mathed/MathSupport.h \
487         mathed/TextPainter.h
488
489 lyxmathed.cpp:
490         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
491
492 if MONOLITHIC_MATHED
493
494 BUILT_SOURCES += lyxmathed.cpp
495 CLEANFILES += lyxmathed.cpp
496
497 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
498
499 else
500
501 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
502
503 endif
504
505 ############################### Insets  ##############################
506
507 noinst_LIBRARIES += liblyxinsets.a
508
509 SOURCEFILESINSETS = \
510         insets/ExternalSupport.cpp \
511         insets/ExternalTemplate.cpp \
512         insets/ExternalTransforms.cpp \
513         insets/RenderButton.cpp \
514         insets/RenderGraphic.cpp \
515         insets/RenderPreview.cpp \
516         insets/Inset.cpp \
517         insets/InsetBibitem.cpp \
518         insets/InsetBibtex.cpp \
519         insets/InsetBox.cpp \
520         insets/InsetBranch.cpp \
521         insets/InsetCaption.cpp \
522         insets/InsetCitation.cpp \
523         insets/InsetCollapsable.cpp \
524         insets/InsetCommand.cpp \
525         insets/InsetCommandParams.cpp \
526         insets/InsetERT.cpp \
527         insets/InsetExternal.cpp \
528         insets/InsetFlex.cpp \
529         insets/InsetFloat.cpp \
530         insets/InsetFloatList.cpp \
531         insets/InsetFoot.cpp \
532         insets/InsetFootlike.cpp \
533         insets/InsetGraphicsParams.cpp \
534         insets/InsetGraphics.cpp \
535         insets/InsetHyperlink.cpp \
536         insets/InsetInclude.cpp \
537         insets/InsetIndex.cpp \
538         insets/InsetInfo.cpp \
539         insets/InsetLabel.cpp \
540         insets/InsetLayout.cpp \
541         insets/InsetLine.cpp \
542         insets/InsetListings.cpp \
543         insets/InsetListingsParams.cpp \
544         insets/InsetMarginal.cpp \
545         insets/InsetNewline.cpp \
546         insets/InsetNewpage.cpp \
547         insets/InsetNomencl.cpp \
548         insets/InsetNote.cpp \
549         insets/InsetOptArg.cpp \
550         insets/InsetPhantom.cpp \
551         insets/InsetPreview.cpp \
552         insets/InsetQuotes.cpp \
553         insets/InsetRef.cpp \
554         insets/InsetSpace.cpp \
555         insets/InsetSpecialChar.cpp \
556         insets/InsetTabular.cpp \
557         insets/InsetText.cpp \
558         insets/InsetTOC.cpp \
559         insets/InsetVSpace.cpp \
560         insets/InsetWrap.cpp
561
562 HEADERFILESINSETS = \
563         insets/ExternalSupport.h \
564         insets/ExternalTemplate.h \
565         insets/ExternalTransforms.h \
566         insets/RenderBase.h \
567         insets/RenderButton.h \
568         insets/RenderGraphic.h \
569         insets/RenderPreview.h \
570         insets/Inset.h \
571         insets/InsetBibitem.h \
572         insets/InsetBibtex.h \
573         insets/InsetBox.h \
574         insets/InsetBranch.h \
575         insets/InsetCaption.h \
576         insets/InsetCitation.h \
577         insets/InsetCode.h \
578         insets/InsetCollapsable.h \
579         insets/InsetCommand.h \
580         insets/InsetCommandParams.h \
581         insets/InsetERT.h \
582         insets/InsetExternal.h \
583         insets/InsetFlex.h \
584         insets/InsetFloat.h \
585         insets/InsetFoot.h \
586         insets/InsetFloatList.h \
587         insets/InsetFootlike.h \
588         insets/InsetGraphicsParams.h \
589         insets/InsetGraphics.h \
590         insets/InsetHyperlink.h \
591         insets/InsetInclude.h \
592         insets/InsetIndex.h \
593         insets/InsetInfo.h \
594         insets/InsetPreview.h \
595         insets/InsetLabel.h \
596         insets/InsetLayout.h \
597         insets/InsetLine.h \
598         insets/InsetListings.h \
599         insets/InsetListingsParams.h \
600         insets/InsetMarginal.h \
601         insets/InsetNewline.h \
602         insets/InsetNewpage.h \
603         insets/InsetNomencl.h \
604         insets/InsetNote.h \
605         insets/InsetOptArg.h \
606         insets/InsetPhantom.h \
607         insets/InsetQuotes.h \
608         insets/InsetRef.h \
609         insets/InsetSpace.h \
610         insets/InsetSpecialChar.h \
611         insets/InsetTabular.h \
612         insets/InsetText.h \
613         insets/InsetTOC.h \
614         insets/InsetVSpace.h \
615         insets/InsetWrap.h
616
617 #       insets/InsetList.cpp \
618 #       insets/InsetList.h \
619 #       insets/InsetSection.h \
620 #       insets/InsetSection.cpp
621
622 lyxinsets.cpp:
623         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
624
625 if MONOLITHIC_INSETS
626
627 BUILT_SOURCES += lyxinsets.cpp
628 CLEANFILES += lyxinsets.cpp
629
630 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
631
632 else
633
634 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
635
636 endif