]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
431ebc0e69e8ddf8cc34806764ed94230c0b3d95
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 DISTCLEANFILES += config.h libintl.h version.cpp stamp-version version.cpp-tmp
6
7 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
8
9 SUBDIRS = support frontends .
10
11 EXTRA_DIST = config.h.in stamp-h.in version.cpp.in \
12         Section.h \
13         Section.cpp \
14         Variables.cpp \
15         Variables.h \
16         paper.h \
17         pch.h
18
19 LYX_PRE_LIBS = liblyxmathed.la liblyxinsets.la \
20         frontends/liblyxfrontends.la
21
22 LYX_POST_LIBS = frontends/controllers/liblyxcontrollers.la \
23         liblyxgraphics.la \
24         support/liblyxsupport.la
25
26 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
27
28 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
29
30 pkglib_LTLIBRARIES = liblyxcore.la
31 noinst_PROGRAMS = $(FRONTENDS_PROGS)
32 EXTRA_PROGRAMS = lyx-qt4
33
34 lyx_qt4_LDADD = liblyxcore.la  $(LYX_PRE_LIBS) \
35         frontends/qt4/liblyxqt4.la $(LYX_POST_LIBS) $(OTHERLIBS) $(QT4_LIB) 
36 lyx_qt4_SOURCES = main.cpp
37
38 lyx$(EXEEXT): $(FRONTENDS_PROGS)
39         rm -f $@
40         $(LN_S) $< $@
41
42 #lyx_LDFLAGS=-Wl,-O1
43
44 BUILT_SOURCES = $(PCH_FILE) version.cpp
45
46 if USE_ASPELL
47 ASPELL = ASpell.cpp ASpell_local.h
48 endif
49 if USE_PSPELL
50 PSPELL = PSpell.cpp PSpell.h
51 endif
52 if USE_ISPELL
53 ISPELL = ISpell.cpp ISpell.h
54 endif
55
56
57 liblyxcore_la_SOURCES = \
58         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
59         Author.cpp \
60         Author.h \
61         Bidi.cpp \
62         Bidi.h \
63         boost.cpp \
64         Box.cpp \
65         Box.h \
66         BranchList.cpp \
67         BranchList.h \
68         Buffer.cpp \
69         buffer_funcs.cpp \
70         buffer_funcs.h \
71         Buffer.h \
72         BufferList.cpp \
73         BufferList.h \
74         BufferParams.cpp \
75         BufferParams.h \
76         BufferView.cpp \
77         bufferview_funcs.cpp \
78         bufferview_funcs.h \
79         BufferView.h \
80         Bullet.cpp \
81         Bullet.h \
82         Changes.cpp \
83         Changes.h \
84         Chktex.cpp \
85         Chktex.h \
86         Color.cpp \
87         Color.h \
88         config.h.in \
89         ConverterCache.cpp \
90         ConverterCache.h \
91         Converter.cpp \
92         Converter.h \
93         CoordCache.cpp \
94         CoordCache.h \
95         Counters.cpp \
96         Counters.h \
97         Cursor.cpp \
98         Cursor.h \
99         CursorSlice.cpp \
100         CursorSlice.h \
101         CutAndPaste.cpp \
102         CutAndPaste.h \
103         debug.cpp \
104         debug.h \
105         DepTable.cpp \
106         DepTable.h \
107         Dimension.cpp \
108         Dimension.h \
109         DispatchResult.h \
110         DocIterator.cpp \
111         DocIterator.h \
112         Encoding.cpp \
113         Encoding.h \
114         ErrorList.cpp \
115         ErrorList.h \
116         Exporter.cpp \
117         Exporter.h \
118         factory.cpp \
119         factory.h \
120         Floating.cpp \
121         Floating.h \
122         FloatList.cpp \
123         FloatList.h \
124         Font.cpp \
125         Font.h \
126         FontIterator.cpp \
127         FontIterator.h \
128         Format.cpp \
129         Format.h \
130         FuncRequest.cpp \
131         FuncRequest.h \
132         FuncStatus.cpp \
133         FuncStatus.h \
134         gettext.cpp \
135         gettext.h \
136         Graph.cpp \
137         Graph.h \
138         Importer.cpp \
139         Importer.h \
140         InsetIterator.cpp \
141         InsetIterator.h \
142         InsetList.cpp \
143         InsetList.h \
144         Intl.cpp \
145         Intl.h \
146         KeyMap.cpp \
147         KeyMap.h \
148         KeySequence.cpp \
149         KeySequence.h \
150         Language.cpp \
151         Language.h \
152         LaTeX.cpp \
153         LaTeXFeatures.cpp \
154         LaTeXFeatures.h \
155         LaTeX.h \
156         Layout.cpp \
157         Layout.h \
158         Length.cpp \
159         Length.h \
160         lengthcommon.cpp \
161         lengthcommon.h \
162         Lexer.cpp \
163         Lexer.h \
164         lfuns.h \
165         LyXAction.cpp \
166         LyXAction.h \
167         callback.cpp \
168         callback.h \
169         LyX.cpp \
170         lyxfind.cpp \
171         lyxfind.h \
172         LyXFunc.cpp \
173         LyXFunc.h \
174         LyX.h \
175         lyxlayout_ptr_fwd.h \
176         LyXRC.cpp \
177         LyXRC.h \
178         Server.cpp \
179         Server.h \
180         ServerSocket.cpp \
181         ServerSocket.h \
182         LyXVC.cpp \
183         LyXVC.h \
184         MenuBackend.cpp \
185         MenuBackend.h \
186         Messages.cpp \
187         Messages.h \
188         MetricsInfo.cpp \
189         MetricsInfo.h \
190         Mover.cpp \
191         Mover.h \
192         output.cpp \
193         output_docbook.cpp \
194         output_docbook.h \
195         output.h \
196         output_latex.cpp \
197         output_latex.h \
198         OutputParams.cpp \
199         OutputParams.h \
200         output_plaintext.cpp \
201         output_plaintext.h \
202         paper.h \
203         Paragraph.cpp \
204         paragraph_funcs.cpp \
205         paragraph_funcs.h \
206         Paragraph.h \
207         ParagraphList.h \
208         ParagraphMetrics.cpp \
209         ParagraphMetrics.h \
210         ParagraphParameters.cpp \
211         ParagraphParameters.h \
212         ParIterator.cpp \
213         ParIterator.h \
214         PrinterParams.cpp \
215         PrinterParams.h \
216         Row.cpp \
217         Row.h \
218         rowpainter.cpp \
219         rowpainter.h \
220         Session.cpp \
221         Session.h \
222         sgml.cpp \
223         sgml.h \
224         Spacing.cpp \
225         Spacing.h \
226         SpellBase.h \
227         TexRow.cpp \
228         TexRow.h \
229         TexStream.cpp \
230         TexStream.h \
231         Text.h \
232         Text.cpp \
233         Text2.cpp \
234         Text3.cpp \
235         TextClass.cpp \
236         TextClass.h \
237         TextClassList.cpp \
238         TextClassList.h \
239         TextMetrics.cpp \
240         TextMetrics.h \
241         Thesaurus.cpp \
242         Thesaurus.h \
243         TocBackend.cpp \
244         TocBackend.h \
245         toc.cpp \
246         toc.h \
247         ToolbarBackend.cpp \
248         ToolbarBackend.h \
249         Trans.cpp \
250         Trans.h \
251         Undo.cpp \
252         Undo.h \
253         update_flags.h \
254         VCBackend.cpp \
255         VCBackend.h \
256         version.cpp \
257         version.h \
258         WordLangTuple.h \
259         VSpace.cpp \
260         VSpace.h
261
262 version.cpp: stamp-version
263         @:
264
265 stamp-version: version.cpp-tmp
266         if cmp -s $< version.cpp ; then \
267                 : ;\
268         else \
269                 rm -f version.cpp ;\
270                 cp $< version.cpp ;\
271         fi
272         echo timestamp > $@
273
274
275 ############################### Graphics ##############################
276
277 pkglib_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 pkglib_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 pkglib_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/InsetCharStyle.cpp \
493         insets/InsetCharStyle.h \
494         insets/InsetCitation.cpp \
495         insets/InsetCitation.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/InsetFloat.h \
509         insets/InsetFloat.cpp \
510         insets/InsetFloatList.cpp \
511         insets/InsetFloatList.h \
512         insets/InsetFoot.cpp \
513         insets/InsetFoot.h \
514         insets/InsetFootlike.cpp \
515         insets/InsetFootlike.h \
516         insets/InsetGraphicsParams.h \
517         insets/InsetGraphicsParams.cpp \
518         insets/InsetGraphics.cpp \
519         insets/InsetGraphics.h \
520         insets/InsetHFill.cpp \
521         insets/InsetHFill.h \
522         insets/InsetInclude.cpp \
523         insets/InsetInclude.h \
524         insets/InsetIndex.cpp \
525         insets/InsetIndex.h \
526         insets/InsetLabel.cpp \
527         insets/InsetLabel.h \
528         insets/InsetLine.cpp \
529         insets/InsetLine.h \
530         insets/InsetListings.h \
531         insets/InsetListings.cpp \
532         insets/InsetListingsParams.h \
533         insets/InsetListingsParams.cpp \
534         insets/InsetMarginal.h \
535         insets/InsetMarginal.cpp \
536         insets/InsetNewline.cpp \
537         insets/InsetNewline.h \
538         insets/InsetNomencl.cpp \
539         insets/InsetNomencl.h \
540         insets/InsetNote.cpp \
541         insets/InsetNote.h \
542         insets/InsetOptArg.cpp \
543         insets/InsetOptArg.h \
544         insets/InsetPagebreak.cpp \
545         insets/InsetPagebreak.h \
546         insets/InsetQuotes.cpp \
547         insets/InsetQuotes.h \
548         insets/InsetRef.cpp \
549         insets/InsetRef.h \
550         insets/InsetSpace.cpp \
551         insets/InsetSpace.h \
552         insets/InsetSpecialChar.cpp \
553         insets/InsetSpecialChar.h \
554         insets/InsetTabular.cpp \
555         insets/InsetTabular.h \
556         insets/InsetText.cpp \
557         insets/InsetText.h \
558         insets/InsetTOC.cpp \
559         insets/InsetTOC.h \
560         insets/InsetUrl.cpp \
561         insets/InsetUrl.h \
562         insets/InsetVSpace.cpp \
563         insets/InsetVSpace.h \
564         insets/InsetWrap.h \
565         insets/InsetWrap.cpp
566
567 #       insets/insetlist.C \
568 #       insets/insetlist.h \
569 #       insets/insetsection.h \
570 #       insets/insetsection.C \
571 #       insets/InsetTheorem.cpp \
572 #       insets/InsetTheorem.h
573