]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
next ones
[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         frontends/controllers/liblyxcontrollers.la \
33         liblyxgraphics.la \
34         support/liblyxsupport.la \
35         $(OTHERLIBS) \
36         $(QT4_LIB) 
37
38 if LYX_WIN_RESOURCE
39 .rc.o:
40         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
41         windres -I. --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
42 endif
43
44 #lyx_LDFLAGS=-Wl,-O1
45
46 BUILT_SOURCES = $(PCH_FILE)
47
48 if USE_ASPELL
49 ASPELL = ASpell.cpp ASpell_local.h
50 endif
51 if USE_PSPELL
52 PSPELL = PSpell.cpp PSpell.h
53 endif
54 if USE_ISPELL
55 ISPELL = ISpell.cpp ISpell.h
56 endif
57
58 # These four objects are linked as object files as they are not
59 # referenced within the core and therefore are not picked up
60 # by the linker without looping over libs. We do not want that,
61 # and in fact libtools seems not able to do that.
62 lyx_SOURCES = \
63         main.cpp \
64         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
65         Box.cpp \
66         Box.h \
67         Dimension.cpp \
68         Dimension.h \
69         PrinterParams.cpp \
70         PrinterParams.h \
71         Thesaurus.cpp \
72         Thesaurus.h
73
74 if LYX_WIN_RESOURCE
75 lyx_SOURCES += lyxwinres.rc
76 endif
77
78 liblyxcore_la_SOURCES = \
79         Author.cpp \
80         Author.h \
81         BiblioInfo.h \
82         BiblioInfo.cpp \
83         Bidi.cpp \
84         Bidi.h \
85         boost.cpp \
86         BranchList.cpp \
87         BranchList.h \
88         Buffer.cpp \
89         buffer_funcs.cpp \
90         buffer_funcs.h \
91         Buffer.h \
92         BufferList.cpp \
93         BufferList.h \
94         BufferParams.cpp \
95         BufferParams.h \
96         BufferView.cpp \
97         BufferView.h \
98         Bullet.cpp \
99         Bullet.h \
100         Changes.cpp \
101         Changes.h \
102         Chktex.cpp \
103         Chktex.h \
104         Color.cpp \
105         Color.h \
106         config.h.in \
107         ConverterCache.cpp \
108         ConverterCache.h \
109         Converter.cpp \
110         Converter.h \
111         CoordCache.cpp \
112         CoordCache.h \
113         Counters.cpp \
114         Counters.h \
115         Cursor.cpp \
116         Cursor.h \
117         CursorSlice.cpp \
118         CursorSlice.h \
119         CutAndPaste.cpp \
120         CutAndPaste.h \
121         debug.cpp \
122         debug.h \
123         DepTable.cpp \
124         DepTable.h \
125         DispatchResult.h \
126         DocIterator.cpp \
127         DocIterator.h \
128         EmbeddedFiles.h \
129         EmbeddedFiles.cpp \
130         Encoding.cpp \
131         Encoding.h \
132         ErrorList.cpp \
133         ErrorList.h \
134         Exporter.cpp \
135         Exporter.h \
136         factory.cpp \
137         factory.h \
138         Floating.cpp \
139         Floating.h \
140         FloatList.cpp \
141         FloatList.h \
142         Font.cpp \
143         Font.h \
144         FontIterator.cpp \
145         FontIterator.h \
146         Format.cpp \
147         Format.h \
148         FuncRequest.cpp \
149         FuncRequest.h \
150         FuncStatus.cpp \
151         FuncStatus.h \
152         gettext.cpp \
153         gettext.h \
154         Graph.cpp \
155         Graph.h \
156         Importer.cpp \
157         Importer.h \
158         InsetIterator.cpp \
159         InsetIterator.h \
160         InsetList.cpp \
161         InsetList.h \
162         Intl.cpp \
163         Intl.h \
164         KeyMap.cpp \
165         KeyMap.h \
166         KeySequence.cpp \
167         KeySequence.h \
168         Language.cpp \
169         Language.h \
170         LaTeX.cpp \
171         LaTeXFeatures.cpp \
172         LaTeXFeatures.h \
173         LaTeX.h \
174         Layout.cpp \
175         Layout.h \
176         LayoutEnum.h \
177         Length.cpp \
178         Length.h \
179         lengthcommon.cpp \
180         lengthcommon.h \
181         Lexer.cpp \
182         Lexer.h \
183         lfuns.h \
184         LyXAction.cpp \
185         LyXAction.h \
186         LyX.cpp \
187         lyxfind.cpp \
188         lyxfind.h \
189         LyXFunc.cpp \
190         LyXFunc.h \
191         LyX.h \
192         lyxlayout_ptr_fwd.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/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/InsetInclude.cpp \
524         insets/InsetInclude.h \
525         insets/InsetIndex.cpp \
526         insets/InsetIndex.h \
527         insets/InsetLabel.cpp \
528         insets/InsetLabel.h \
529         insets/InsetLine.cpp \
530         insets/InsetLine.h \
531         insets/InsetListings.h \
532         insets/InsetListings.cpp \
533         insets/InsetListingsParams.h \
534         insets/InsetListingsParams.cpp \
535         insets/InsetMarginal.h \
536         insets/InsetMarginal.cpp \
537         insets/InsetNewline.cpp \
538         insets/InsetNewline.h \
539         insets/InsetNomencl.cpp \
540         insets/InsetNomencl.h \
541         insets/InsetNote.cpp \
542         insets/InsetNote.h \
543         insets/InsetOptArg.cpp \
544         insets/InsetOptArg.h \
545         insets/InsetPagebreak.cpp \
546         insets/InsetPagebreak.h \
547         insets/InsetQuotes.cpp \
548         insets/InsetQuotes.h \
549         insets/InsetRef.cpp \
550         insets/InsetRef.h \
551         insets/InsetSpace.cpp \
552         insets/InsetSpace.h \
553         insets/InsetSpecialChar.cpp \
554         insets/InsetSpecialChar.h \
555         insets/InsetTabular.cpp \
556         insets/InsetTabular.h \
557         insets/InsetText.cpp \
558         insets/InsetText.h \
559         insets/InsetTOC.cpp \
560         insets/InsetTOC.h \
561         insets/InsetUrl.cpp \
562         insets/InsetUrl.h \
563         insets/InsetVSpace.cpp \
564         insets/InsetVSpace.h \
565         insets/InsetWrap.h \
566         insets/InsetWrap.cpp
567
568 #       insets/insetlist.C \
569 #       insets/insetlist.h \
570 #       insets/insetsection.h \
571 #       insets/insetsection.C \
572 #       insets/InsetTheorem.cpp \
573 #       insets/InsetTheorem.h
574