]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Cosmetics.
[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 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         callback.cpp \
187         callback.h \
188         LyX.cpp \
189         lyxfind.cpp \
190         lyxfind.h \
191         LyXFunc.cpp \
192         LyXFunc.h \
193         LyX.h \
194         lyxlayout_ptr_fwd.h \
195         LyXRC.cpp \
196         LyXRC.h \
197         Server.cpp \
198         Server.h \
199         ServerSocket.cpp \
200         ServerSocket.h \
201         LyXVC.cpp \
202         LyXVC.h \
203         MenuBackend.cpp \
204         MenuBackend.h \
205         Messages.cpp \
206         Messages.h \
207         MetricsInfo.cpp \
208         MetricsInfo.h \
209         ModuleList.cpp \
210         ModuleList.h \
211         Mover.cpp \
212         Mover.h \
213         output.cpp \
214         output_docbook.cpp \
215         output_docbook.h \
216         output.h \
217         output_latex.cpp \
218         output_latex.h \
219         OutputParams.cpp \
220         OutputParams.h \
221         output_plaintext.cpp \
222         output_plaintext.h \
223         paper.h \
224         Paragraph.cpp \
225         paragraph_funcs.cpp \
226         paragraph_funcs.h \
227         Paragraph.h \
228         ParagraphList.h \
229         ParagraphMetrics.cpp \
230         ParagraphMetrics.h \
231         ParagraphParameters.cpp \
232         ParagraphParameters.h \
233         ParIterator.cpp \
234         ParIterator.h \
235         PDFOptions.cpp \
236         PDFOptions.h \
237         Row.cpp \
238         Row.h \
239         rowpainter.cpp \
240         rowpainter.h \
241         Session.cpp \
242         Session.h \
243         sgml.cpp \
244         sgml.h \
245         Spacing.cpp \
246         Spacing.h \
247         SpellBase.h \
248         TexRow.cpp \
249         TexRow.h \
250         TexStream.cpp \
251         TexStream.h \
252         Text.h \
253         Text.cpp \
254         Text2.cpp \
255         Text3.cpp \
256         TextClass.cpp \
257         TextClass.h \
258         TextClassList.cpp \
259         TextClassList.h \
260         TextMetrics.cpp \
261         TextMetrics.h \
262         TocBackend.cpp \
263         TocBackend.h \
264         ToolbarBackend.cpp \
265         ToolbarBackend.h \
266         Trans.cpp \
267         Trans.h \
268         Undo.cpp \
269         Undo.h \
270         update_flags.h \
271         VCBackend.cpp \
272         VCBackend.h \
273         version.cpp \
274         version.h \
275         WordLangTuple.h \
276         VSpace.cpp \
277         VSpace.h
278 ############################### Graphics ##############################
279
280 pkglib_LTLIBRARIES += liblyxgraphics.la
281
282 liblyxgraphics_la_SOURCES = \
283         graphics/GraphicsCache.h \
284         graphics/GraphicsCache.cpp \
285         graphics/GraphicsCacheItem.h \
286         graphics/GraphicsCacheItem.cpp \
287         graphics/GraphicsConverter.h \
288         graphics/GraphicsConverter.cpp \
289         graphics/GraphicsImage.h \
290         graphics/GraphicsImage.cpp \
291         graphics/GraphicsLoader.h \
292         graphics/GraphicsLoader.cpp \
293         graphics/GraphicsParams.cpp \
294         graphics/GraphicsParams.h \
295         graphics/LoaderQueue.h \
296         graphics/LoaderQueue.cpp \
297         graphics/GraphicsTypes.h \
298         graphics/GraphicsTypes.cpp \
299         graphics/PreviewImage.h \
300         graphics/PreviewImage.cpp \
301         graphics/PreviewLoader.h \
302         graphics/PreviewLoader.cpp \
303         graphics/Previews.h \
304         graphics/Previews.cpp
305
306
307 ############################### Mathed  ##############################
308
309 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
310
311 pkglib_LTLIBRARIES += liblyxmathed.la
312
313 liblyxmathed_la_SOURCES = \
314         mathed/InsetMathAMSArray.cpp \
315         mathed/InsetMathAMSArray.h \
316         mathed/InsetMathArray.cpp \
317         mathed/InsetMathArray.h \
318         mathed/InsetMathBig.cpp \
319         mathed/InsetMathBig.h \
320         mathed/InsetMathBinom.cpp \
321         mathed/InsetMathBinom.h \
322         mathed/InsetMathBoldSymbol.cpp \
323         mathed/InsetMathBoldSymbol.h \
324         mathed/InsetMathBox.cpp \
325         mathed/InsetMathBoxed.cpp \
326         mathed/InsetMathBoxed.h \
327         mathed/InsetMathBox.h \
328         mathed/InsetMathBrace.cpp \
329         mathed/InsetMathBrace.h \
330         mathed/InsetMath.cpp \
331         mathed/InsetMathCases.cpp \
332         mathed/InsetMathCases.h \
333         mathed/InsetMathChar.cpp \
334         mathed/InsetMathChar.h \
335         mathed/InsetMathColor.cpp \
336         mathed/InsetMathColor.h \
337         mathed/CommandInset.cpp \
338         mathed/CommandInset.h \
339         mathed/InsetMathComment.cpp \
340         mathed/InsetMathComment.h \
341         mathed/InsetMathDecoration.cpp \
342         mathed/InsetMathDecoration.h \
343         mathed/InsetMathDelim.cpp \
344         mathed/InsetMathDelim.h \
345         mathed/InsetMathDFrac.cpp \
346         mathed/InsetMathDFrac.h \
347         mathed/InsetMathDiff.cpp \
348         mathed/InsetMathDiff.h \
349         mathed/InsetMathDots.cpp \
350         mathed/InsetMathDots.h \
351         mathed/InsetMathEnv.cpp \
352         mathed/InsetMathEnv.h \
353         mathed/InsetMathExFunc.cpp \
354         mathed/InsetMathExFunc.h \
355         mathed/InsetMathExInt.cpp \
356         mathed/InsetMathExInt.h \
357         mathed/InsetMathFBox.cpp \
358         mathed/InsetMathFBox.h \
359         mathed/InsetMathFont.cpp \
360         mathed/InsetMathFont.h \
361         mathed/InsetMathFontOld.cpp \
362         mathed/InsetMathFontOld.h \
363         mathed/InsetMathFracBase.cpp \
364         mathed/InsetMathFracBase.h \
365         mathed/InsetMathFrac.cpp \
366         mathed/InsetMathFrac.h \
367         mathed/InsetMathFrameBox.cpp \
368         mathed/InsetMathFrameBox.h \
369         mathed/InsetMathGrid.cpp \
370         mathed/InsetMathGrid.h \
371         mathed/InsetMath.h \
372         mathed/InsetMathHull.cpp \
373         mathed/InsetMathHull.h \
374         mathed/InsetMathKern.cpp \
375         mathed/InsetMathKern.h \
376         mathed/InsetMathLefteqn.cpp \
377         mathed/InsetMathLefteqn.h \
378         mathed/InsetMathLim.cpp \
379         mathed/InsetMathLim.h \
380         mathed/MathMacro.cpp \
381         mathed/MathMacro.h \
382         mathed/InsetMathMakebox.cpp \
383         mathed/InsetMathMakebox.h \
384         mathed/InsetMathMatrix.cpp \
385         mathed/InsetMathMatrix.h \
386         mathed/InsetMathNest.cpp \
387         mathed/InsetMathNest.h \
388         mathed/InsetMathNumber.cpp \
389         mathed/InsetMathNumber.h \
390         mathed/InsetMathOverset.cpp \
391         mathed/InsetMathOverset.h \
392         mathed/InsetMathPar.cpp \
393         mathed/InsetMathPar.h \
394         mathed/InsetMathPhantom.cpp \
395         mathed/InsetMathPhantom.h \
396         mathed/InsetMathRef.cpp \
397         mathed/InsetMathRef.h \
398         mathed/InsetMathRoot.cpp \
399         mathed/InsetMathRoot.h \
400         mathed/InsetMathScript.cpp \
401         mathed/InsetMathScript.h \
402         mathed/InsetMathSize.cpp \
403         mathed/InsetMathSize.h \
404         mathed/InsetMathSpace.cpp \
405         mathed/InsetMathSpace.h \
406         mathed/InsetMathSplit.cpp \
407         mathed/InsetMathSplit.h \
408         mathed/InsetMathSqrt.cpp \
409         mathed/InsetMathSqrt.h \
410         mathed/InsetMathStackrel.cpp \
411         mathed/InsetMathStackrel.h \
412         mathed/InsetMathString.cpp \
413         mathed/InsetMathString.h \
414         mathed/InsetMathSubstack.cpp \
415         mathed/InsetMathSubstack.h \
416         mathed/InsetMathSymbol.cpp \
417         mathed/InsetMathSymbol.h \
418         mathed/InsetMathTabular.cpp \
419         mathed/InsetMathTabular.h \
420         mathed/InsetMathTFrac.cpp \
421         mathed/InsetMathTFrac.h \
422         mathed/InsetMathUnderset.cpp \
423         mathed/InsetMathUnderset.h \
424         mathed/InsetMathUnknown.cpp \
425         mathed/InsetMathUnknown.h \
426         mathed/InsetMathXArrow.cpp \
427         mathed/InsetMathXArrow.h \
428         mathed/InsetMathXYMatrix.cpp \
429         mathed/InsetMathXYMatrix.h \
430         mathed/MathAtom.cpp \
431         mathed/MathAtom.h \
432         mathed/MathAutoCorrect.cpp \
433         mathed/MathAutoCorrect.h \
434         mathed/MathData.cpp \
435         mathed/MathData.h \
436         mathed/MathExtern.cpp \
437         mathed/MathExtern.h \
438         mathed/MathFactory.cpp \
439         mathed/MathFactory.h \
440         mathed/MathGridInfo.h \
441         mathed/MathMacroArgument.cpp \
442         mathed/MathMacroArgument.h \
443         mathed/MacroTable.cpp \
444         mathed/MacroTable.h \
445         mathed/MathMacroTemplate.cpp \
446         mathed/MathMacroTemplate.h \
447         mathed/MathParser.cpp \
448         mathed/MathParser.h \
449         mathed/ReplaceData.h \
450         mathed/MathStream.cpp \
451         mathed/MathStream.h \
452         mathed/MathSupport.cpp \
453         mathed/MathSupport.h \
454         mathed/TextPainter.cpp \
455         mathed/TextPainter.h 
456 #       mathed/InsetMathMBox.cpp
457 #       mathed/InsetMathMBox.h
458
459 ############################### Insets  ##############################
460
461 pkglib_LTLIBRARIES += liblyxinsets.la
462
463 EXTRA_DIST += \
464         insets/InsetTheorem.cpp \
465         insets/InsetTheorem.h
466
467 liblyxinsets_la_SOURCES = \
468         insets/MailInset.cpp \
469         insets/MailInset.h \
470         insets/ExternalSupport.cpp \
471         insets/ExternalSupport.h \
472         insets/ExternalTemplate.cpp \
473         insets/ExternalTemplate.h \
474         insets/ExternalTransforms.cpp \
475         insets/ExternalTransforms.h \
476         insets/RenderBase.h \
477         insets/RenderButton.cpp \
478         insets/RenderButton.h \
479         insets/RenderGraphic.cpp \
480         insets/RenderGraphic.h \
481         insets/RenderPreview.cpp \
482         insets/RenderPreview.h \
483         insets/Inset.h \
484         insets/Inset.cpp \
485         insets/InsetBibitem.cpp \
486         insets/InsetBibitem.h \
487         insets/InsetBibtex.cpp \
488         insets/InsetBibtex.h \
489         insets/InsetBox.cpp \
490         insets/InsetBox.h \
491         insets/InsetBranch.cpp \
492         insets/InsetBranch.h \
493         insets/InsetCaption.cpp \
494         insets/InsetCaption.h \
495         insets/InsetCitation.cpp \
496         insets/InsetCitation.h \
497         insets/InsetCollapsable.cpp \
498         insets/InsetCollapsable.h \
499         insets/InsetCommand.cpp \
500         insets/InsetCommand.h \
501         insets/InsetCommandParams.cpp \
502         insets/InsetCommandParams.h \
503         insets/InsetEnvironment.cpp \
504         insets/InsetEnvironment.h \
505         insets/InsetERT.cpp \
506         insets/InsetERT.h \
507         insets/InsetExternal.cpp \
508         insets/InsetExternal.h \
509         insets/InsetFlex.h \
510         insets/InsetFlex.cpp \
511         insets/InsetFloat.h \
512         insets/InsetFloat.cpp \
513         insets/InsetFloatList.cpp \
514         insets/InsetFloatList.h \
515         insets/InsetFoot.cpp \
516         insets/InsetFoot.h \
517         insets/InsetFootlike.cpp \
518         insets/InsetFootlike.h \
519         insets/InsetGraphicsParams.h \
520         insets/InsetGraphicsParams.cpp \
521         insets/InsetGraphics.cpp \
522         insets/InsetGraphics.h \
523         insets/InsetHFill.cpp \
524         insets/InsetHFill.h \
525         insets/InsetInclude.cpp \
526         insets/InsetInclude.h \
527         insets/InsetIndex.cpp \
528         insets/InsetIndex.h \
529         insets/InsetLabel.cpp \
530         insets/InsetLabel.h \
531         insets/InsetLine.cpp \
532         insets/InsetLine.h \
533         insets/InsetListings.h \
534         insets/InsetListings.cpp \
535         insets/InsetListingsParams.h \
536         insets/InsetListingsParams.cpp \
537         insets/InsetMarginal.h \
538         insets/InsetMarginal.cpp \
539         insets/InsetNewline.cpp \
540         insets/InsetNewline.h \
541         insets/InsetNomencl.cpp \
542         insets/InsetNomencl.h \
543         insets/InsetNote.cpp \
544         insets/InsetNote.h \
545         insets/InsetOptArg.cpp \
546         insets/InsetOptArg.h \
547         insets/InsetPagebreak.cpp \
548         insets/InsetPagebreak.h \
549         insets/InsetQuotes.cpp \
550         insets/InsetQuotes.h \
551         insets/InsetRef.cpp \
552         insets/InsetRef.h \
553         insets/InsetSpace.cpp \
554         insets/InsetSpace.h \
555         insets/InsetSpecialChar.cpp \
556         insets/InsetSpecialChar.h \
557         insets/InsetTabular.cpp \
558         insets/InsetTabular.h \
559         insets/InsetText.cpp \
560         insets/InsetText.h \
561         insets/InsetTOC.cpp \
562         insets/InsetTOC.h \
563         insets/InsetUrl.cpp \
564         insets/InsetUrl.h \
565         insets/InsetVSpace.cpp \
566         insets/InsetVSpace.h \
567         insets/InsetWrap.h \
568         insets/InsetWrap.cpp
569
570 #       insets/insetlist.C \
571 #       insets/insetlist.h \
572 #       insets/insetsection.h \
573 #       insets/insetsection.C \
574 #       insets/InsetTheorem.cpp \
575 #       insets/InsetTheorem.h
576