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