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