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