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