]> git.lyx.org Git - features.git/blob - src/Makefile.am
dissolve Importer 'class' to LyXFunc/Converter
[features.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         CmdDef.cpp \
104         CmdDef.h \
105         Color.cpp \
106         Color.h \
107         config.h.in \
108         ConverterCache.cpp \
109         ConverterCache.h \
110         Converter.cpp \
111         Converter.h \
112         CoordCache.cpp \
113         CoordCache.h \
114         Counters.cpp \
115         Counters.h \
116         Cursor.cpp \
117         Cursor.h \
118         CursorSlice.cpp \
119         CursorSlice.h \
120         CutAndPaste.cpp \
121         CutAndPaste.h \
122         debug.cpp \
123         debug.h \
124         DepTable.cpp \
125         DepTable.h \
126         DispatchResult.h \
127         DocIterator.cpp \
128         DocIterator.h \
129         EmbeddedFiles.h \
130         EmbeddedFiles.cpp \
131         Encoding.cpp \
132         Encoding.h \
133         ErrorList.cpp \
134         ErrorList.h \
135         Exporter.cpp \
136         Exporter.h \
137         factory.cpp \
138         factory.h \
139         Floating.cpp \
140         Floating.h \
141         FloatList.cpp \
142         FloatList.h \
143         Font.cpp \
144         Font.h \
145         FontIterator.cpp \
146         FontIterator.h \
147         FontList.cpp \
148         FontList.h \
149         Format.cpp \
150         Format.h \
151         FuncRequest.cpp \
152         FuncRequest.h \
153         FuncStatus.cpp \
154         FuncStatus.h \
155         gettext.cpp \
156         gettext.h \
157         Graph.cpp \
158         Graph.h \
159         InsetIterator.cpp \
160         InsetIterator.h \
161         InsetList.cpp \
162         InsetList.h \
163         Intl.cpp \
164         Intl.h \
165         KeyMap.cpp \
166         KeyMap.h \
167         KeySequence.cpp \
168         KeySequence.h \
169         Language.cpp \
170         Language.h \
171         LaTeX.cpp \
172         LaTeXFeatures.cpp \
173         LaTeXFeatures.h \
174         LaTeX.h \
175         Layout.cpp \
176         Layout.h \
177         LayoutPtr.h \
178         LayoutEnums.h \
179         Length.cpp \
180         Length.h \
181         lengthcommon.cpp \
182         Lexer.cpp \
183         Lexer.h \
184         lfuns.h \
185         LyXAction.cpp \
186         LyXAction.h \
187         LyX.cpp \
188         lyxfind.cpp \
189         lyxfind.h \
190         LyXFunc.cpp \
191         LyXFunc.h \
192         LyX.h \
193         LyXRC.cpp \
194         LyXRC.h \
195         Server.cpp \
196         Server.h \
197         ServerSocket.cpp \
198         ServerSocket.h \
199         LyXVC.cpp \
200         LyXVC.h \
201         MenuBackend.cpp \
202         MenuBackend.h \
203         Messages.cpp \
204         Messages.h \
205         MetricsInfo.cpp \
206         MetricsInfo.h \
207         ModuleList.cpp \
208         ModuleList.h \
209         Mover.cpp \
210         Mover.h \
211         output.cpp \
212         output_docbook.cpp \
213         output_docbook.h \
214         output.h \
215         output_latex.cpp \
216         output_latex.h \
217         OutputParams.cpp \
218         OutputParams.h \
219         output_plaintext.cpp \
220         output_plaintext.h \
221         paper.h \
222         Paragraph.cpp \
223         paragraph_funcs.cpp \
224         paragraph_funcs.h \
225         Paragraph.h \
226         ParagraphList.h \
227         ParagraphMetrics.cpp \
228         ParagraphMetrics.h \
229         ParagraphParameters.cpp \
230         ParagraphParameters.h \
231         ParIterator.cpp \
232         ParIterator.h \
233         PDFOptions.cpp \
234         PDFOptions.h \
235         Row.cpp \
236         Row.h \
237         rowpainter.cpp \
238         rowpainter.h \
239         Session.cpp \
240         Session.h \
241         sgml.cpp \
242         sgml.h \
243         Spacing.cpp \
244         Spacing.h \
245         SpellBase.h \
246         TexRow.cpp \
247         TexRow.h \
248         TexStream.cpp \
249         TexStream.h \
250         Text.h \
251         Text.cpp \
252         Text2.cpp \
253         Text3.cpp \
254         TextClass.cpp \
255         TextClass.h \
256         TextClassList.cpp \
257         TextClassList.h \
258         TextMetrics.cpp \
259         TextMetrics.h \
260         TocBackend.cpp \
261         TocBackend.h \
262         ToolbarBackend.cpp \
263         ToolbarBackend.h \
264         Trans.cpp \
265         Trans.h \
266         Undo.cpp \
267         Undo.h \
268         update_flags.h \
269         VCBackend.cpp \
270         VCBackend.h \
271         version.cpp \
272         version.h \
273         WordLangTuple.h \
274         VSpace.cpp \
275         VSpace.h
276 ############################### Graphics ##############################
277
278 noinst_LTLIBRARIES += liblyxgraphics.la
279
280 liblyxgraphics_la_SOURCES = \
281         graphics/GraphicsCache.h \
282         graphics/GraphicsCache.cpp \
283         graphics/GraphicsCacheItem.h \
284         graphics/GraphicsCacheItem.cpp \
285         graphics/GraphicsConverter.h \
286         graphics/GraphicsConverter.cpp \
287         graphics/GraphicsImage.h \
288         graphics/GraphicsImage.cpp \
289         graphics/GraphicsLoader.h \
290         graphics/GraphicsLoader.cpp \
291         graphics/GraphicsParams.cpp \
292         graphics/GraphicsParams.h \
293         graphics/LoaderQueue.h \
294         graphics/LoaderQueue.cpp \
295         graphics/GraphicsTypes.h \
296         graphics/GraphicsTypes.cpp \
297         graphics/PreviewImage.h \
298         graphics/PreviewImage.cpp \
299         graphics/PreviewLoader.h \
300         graphics/PreviewLoader.cpp \
301         graphics/Previews.h \
302         graphics/Previews.cpp
303
304
305 ############################### Mathed  ##############################
306
307 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
308
309 noinst_LTLIBRARIES += liblyxmathed.la
310
311 liblyxmathed_la_SOURCES = \
312         mathed/InsetMathAMSArray.cpp \
313         mathed/InsetMathAMSArray.h \
314         mathed/InsetMathArray.cpp \
315         mathed/InsetMathArray.h \
316         mathed/InsetMathBig.cpp \
317         mathed/InsetMathBig.h \
318         mathed/InsetMathBinom.cpp \
319         mathed/InsetMathBinom.h \
320         mathed/InsetMathBoldSymbol.cpp \
321         mathed/InsetMathBoldSymbol.h \
322         mathed/InsetMathBox.cpp \
323         mathed/InsetMathBoxed.cpp \
324         mathed/InsetMathBoxed.h \
325         mathed/InsetMathBox.h \
326         mathed/InsetMathBrace.cpp \
327         mathed/InsetMathBrace.h \
328         mathed/InsetMath.cpp \
329         mathed/InsetMathCases.cpp \
330         mathed/InsetMathCases.h \
331         mathed/InsetMathChar.cpp \
332         mathed/InsetMathChar.h \
333         mathed/InsetMathColor.cpp \
334         mathed/InsetMathColor.h \
335         mathed/CommandInset.cpp \
336         mathed/CommandInset.h \
337         mathed/InsetMathComment.cpp \
338         mathed/InsetMathComment.h \
339         mathed/InsetMathDecoration.cpp \
340         mathed/InsetMathDecoration.h \
341         mathed/InsetMathDelim.cpp \
342         mathed/InsetMathDelim.h \
343         mathed/InsetMathDFrac.cpp \
344         mathed/InsetMathDFrac.h \
345         mathed/InsetMathDiff.cpp \
346         mathed/InsetMathDiff.h \
347         mathed/InsetMathDots.cpp \
348         mathed/InsetMathDots.h \
349         mathed/InsetMathEnv.cpp \
350         mathed/InsetMathEnv.h \
351         mathed/InsetMathExFunc.cpp \
352         mathed/InsetMathExFunc.h \
353         mathed/InsetMathExInt.cpp \
354         mathed/InsetMathExInt.h \
355         mathed/InsetMathFBox.cpp \
356         mathed/InsetMathFBox.h \
357         mathed/InsetMathFont.cpp \
358         mathed/InsetMathFont.h \
359         mathed/InsetMathFontOld.cpp \
360         mathed/InsetMathFontOld.h \
361         mathed/InsetMathFracBase.cpp \
362         mathed/InsetMathFracBase.h \
363         mathed/InsetMathFrac.cpp \
364         mathed/InsetMathFrac.h \
365         mathed/InsetMathFrameBox.cpp \
366         mathed/InsetMathFrameBox.h \
367         mathed/InsetMathGrid.cpp \
368         mathed/InsetMathGrid.h \
369         mathed/InsetMath.h \
370         mathed/InsetMathHull.cpp \
371         mathed/InsetMathHull.h \
372         mathed/InsetMathKern.cpp \
373         mathed/InsetMathKern.h \
374         mathed/InsetMathLefteqn.cpp \
375         mathed/InsetMathLefteqn.h \
376         mathed/InsetMathLim.cpp \
377         mathed/InsetMathLim.h \
378         mathed/MathMacro.cpp \
379         mathed/MathMacro.h \
380         mathed/InsetMathMakebox.cpp \
381         mathed/InsetMathMakebox.h \
382         mathed/InsetMathMatrix.cpp \
383         mathed/InsetMathMatrix.h \
384         mathed/InsetMathNest.cpp \
385         mathed/InsetMathNest.h \
386         mathed/InsetMathNumber.cpp \
387         mathed/InsetMathNumber.h \
388         mathed/InsetMathOverset.cpp \
389         mathed/InsetMathOverset.h \
390         mathed/InsetMathPar.cpp \
391         mathed/InsetMathPar.h \
392         mathed/InsetMathPhantom.cpp \
393         mathed/InsetMathPhantom.h \
394         mathed/InsetMathRef.cpp \
395         mathed/InsetMathRef.h \
396         mathed/InsetMathRoot.cpp \
397         mathed/InsetMathRoot.h \
398         mathed/InsetMathScript.cpp \
399         mathed/InsetMathScript.h \
400         mathed/InsetMathSize.cpp \
401         mathed/InsetMathSize.h \
402         mathed/InsetMathSpace.cpp \
403         mathed/InsetMathSpace.h \
404         mathed/InsetMathSplit.cpp \
405         mathed/InsetMathSplit.h \
406         mathed/InsetMathSqrt.cpp \
407         mathed/InsetMathSqrt.h \
408         mathed/InsetMathStackrel.cpp \
409         mathed/InsetMathStackrel.h \
410         mathed/InsetMathString.cpp \
411         mathed/InsetMathString.h \
412         mathed/InsetMathSubstack.cpp \
413         mathed/InsetMathSubstack.h \
414         mathed/InsetMathSymbol.cpp \
415         mathed/InsetMathSymbol.h \
416         mathed/InsetMathTabular.cpp \
417         mathed/InsetMathTabular.h \
418         mathed/InsetMathTFrac.cpp \
419         mathed/InsetMathTFrac.h \
420         mathed/InsetMathUnderset.cpp \
421         mathed/InsetMathUnderset.h \
422         mathed/InsetMathUnknown.cpp \
423         mathed/InsetMathUnknown.h \
424         mathed/InsetMathXArrow.cpp \
425         mathed/InsetMathXArrow.h \
426         mathed/InsetMathXYMatrix.cpp \
427         mathed/InsetMathXYMatrix.h \
428         mathed/MathAtom.cpp \
429         mathed/MathAtom.h \
430         mathed/MathAutoCorrect.cpp \
431         mathed/MathAutoCorrect.h \
432         mathed/MathData.cpp \
433         mathed/MathData.h \
434         mathed/MathExtern.cpp \
435         mathed/MathExtern.h \
436         mathed/MathFactory.cpp \
437         mathed/MathFactory.h \
438         mathed/MathGridInfo.h \
439         mathed/MathMacroArgument.cpp \
440         mathed/MathMacroArgument.h \
441         mathed/MacroTable.cpp \
442         mathed/MacroTable.h \
443         mathed/MathMacroTemplate.cpp \
444         mathed/MathMacroTemplate.h \
445         mathed/MathParser.cpp \
446         mathed/MathParser.h \
447         mathed/ReplaceData.h \
448         mathed/MathStream.cpp \
449         mathed/MathStream.h \
450         mathed/MathSupport.cpp \
451         mathed/MathSupport.h \
452         mathed/TextPainter.cpp \
453         mathed/TextPainter.h 
454 #       mathed/InsetMathMBox.cpp
455 #       mathed/InsetMathMBox.h
456
457 ############################### Insets  ##############################
458
459 noinst_LTLIBRARIES += liblyxinsets.la
460
461 EXTRA_DIST += \
462         insets/InsetTheorem.cpp \
463         insets/InsetTheorem.h
464
465 liblyxinsets_la_SOURCES = \
466         insets/MailInset.cpp \
467         insets/MailInset.h \
468         insets/ExternalSupport.cpp \
469         insets/ExternalSupport.h \
470         insets/ExternalTemplate.cpp \
471         insets/ExternalTemplate.h \
472         insets/ExternalTransforms.cpp \
473         insets/ExternalTransforms.h \
474         insets/RenderBase.h \
475         insets/RenderButton.cpp \
476         insets/RenderButton.h \
477         insets/RenderGraphic.cpp \
478         insets/RenderGraphic.h \
479         insets/RenderPreview.cpp \
480         insets/RenderPreview.h \
481         insets/Inset.h \
482         insets/Inset.cpp \
483         insets/InsetBibitem.cpp \
484         insets/InsetBibitem.h \
485         insets/InsetBibtex.cpp \
486         insets/InsetBibtex.h \
487         insets/InsetBox.cpp \
488         insets/InsetBox.h \
489         insets/InsetBranch.cpp \
490         insets/InsetBranch.h \
491         insets/InsetCaption.cpp \
492         insets/InsetCaption.h \
493         insets/InsetCitation.cpp \
494         insets/InsetCitation.h \
495         insets/InsetCode.h \
496         insets/InsetCollapsable.cpp \
497         insets/InsetCollapsable.h \
498         insets/InsetCommand.cpp \
499         insets/InsetCommand.h \
500         insets/InsetCommandParams.cpp \
501         insets/InsetCommandParams.h \
502         insets/InsetEnvironment.cpp \
503         insets/InsetEnvironment.h \
504         insets/InsetERT.cpp \
505         insets/InsetERT.h \
506         insets/InsetExternal.cpp \
507         insets/InsetExternal.h \
508         insets/InsetFlex.h \
509         insets/InsetFlex.cpp \
510         insets/InsetFloat.h \
511         insets/InsetFloat.cpp \
512         insets/InsetFloatList.cpp \
513         insets/InsetFloatList.h \
514         insets/InsetFoot.cpp \
515         insets/InsetFoot.h \
516         insets/InsetFootlike.cpp \
517         insets/InsetFootlike.h \
518         insets/InsetGraphicsParams.h \
519         insets/InsetGraphicsParams.cpp \
520         insets/InsetGraphics.cpp \
521         insets/InsetGraphics.h \
522         insets/InsetHFill.cpp \
523         insets/InsetHFill.h \
524         insets/InsetHyperlink.cpp \
525         insets/InsetHyperlink.h \
526         insets/InsetInclude.cpp \
527         insets/InsetInclude.h \
528         insets/InsetIndex.cpp \
529         insets/InsetIndex.h \
530         insets/InsetInfo.cpp \
531         insets/InsetInfo.h \
532         insets/InsetLabel.cpp \
533         insets/InsetLabel.h \
534         insets/InsetLine.cpp \
535         insets/InsetLine.h \
536         insets/InsetListings.h \
537         insets/InsetListings.cpp \
538         insets/InsetListingsParams.h \
539         insets/InsetListingsParams.cpp \
540         insets/InsetMarginal.h \
541         insets/InsetMarginal.cpp \
542         insets/InsetNewline.cpp \
543         insets/InsetNewline.h \
544         insets/InsetNomencl.cpp \
545         insets/InsetNomencl.h \
546         insets/InsetNote.cpp \
547         insets/InsetNote.h \
548         insets/InsetOptArg.cpp \
549         insets/InsetOptArg.h \
550         insets/InsetPagebreak.cpp \
551         insets/InsetPagebreak.h \
552         insets/InsetQuotes.cpp \
553         insets/InsetQuotes.h \
554         insets/InsetRef.cpp \
555         insets/InsetRef.h \
556         insets/InsetSpace.cpp \
557         insets/InsetSpace.h \
558         insets/InsetSpecialChar.cpp \
559         insets/InsetSpecialChar.h \
560         insets/InsetTabular.cpp \
561         insets/InsetTabular.h \
562         insets/InsetText.cpp \
563         insets/InsetText.h \
564         insets/InsetTOC.cpp \
565         insets/InsetTOC.h \
566         insets/InsetVSpace.cpp \
567         insets/InsetVSpace.h \
568         insets/InsetWrap.h \
569         insets/InsetWrap.cpp
570
571 #       insets/InsetList.cpp \
572 #       insets/InsetList.h \
573 #       insets/InsetSection.h \
574 #       insets/InsetSection.cpp \
575 #       insets/InsetTheorem.cpp \
576 #       insets/InsetTheorem.h
577