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