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