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