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