]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
4be7c7b9c07456e98af923bb6da50fa252d0b6d0
[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 noinst_PROGRAMS = $(FRONTENDS_PROGS)
25 EXTRA_PROGRAMS = lyx-qt4
26
27 lyx_qt4_LDADD = \
28         liblyxcore.la \
29         liblyxmathed.la \
30         liblyxinsets.la \
31         frontends/liblyxfrontends.la \
32         frontends/qt4/liblyxqt4.la \
33         frontends/controllers/liblyxcontrollers.la \
34         liblyxgraphics.la \
35         support/liblyxsupport.la \
36         $(OTHERLIBS) \
37         $(QT4_LIB) 
38
39 lyx$(EXEEXT): $(FRONTENDS_PROGS)
40         rm -f $@
41         $(LN_S) $< $@
42
43 if LYX_WIN_RESOURCE
44 .rc.o:
45         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
46         windres -I. --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
47 endif
48
49 #lyx_LDFLAGS=-Wl,-O1
50
51 BUILT_SOURCES = $(PCH_FILE)
52
53 if USE_ASPELL
54 ASPELL = ASpell.cpp ASpell_local.h
55 endif
56 if USE_PSPELL
57 PSPELL = PSpell.cpp PSpell.h
58 endif
59 if USE_ISPELL
60 ISPELL = ISpell.cpp ISpell.h
61 endif
62
63 # These four objects are linked as object files as they are not
64 # referenced within the core and therefore are not picked up
65 # by the linker without looping over libs. We do not want that,
66 # and in fact libtools seems not able to do that.
67 lyx_qt4_SOURCES = \
68         main.cpp \
69         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
70         Box.cpp \
71         Box.h \
72         Dimension.cpp \
73         Dimension.h \
74         PrinterParams.cpp \
75         PrinterParams.h \
76         Thesaurus.cpp \
77         Thesaurus.h
78
79 if LYX_WIN_RESOURCE
80 lyx_qt4_SOURCES += lyxwinres.rc
81 endif
82
83 liblyxcore_la_SOURCES = \
84         Author.cpp \
85         Author.h \
86         Biblio.h \
87         Biblio.cpp \
88         Bidi.cpp \
89         Bidi.h \
90         boost.cpp \
91         BranchList.cpp \
92         BranchList.h \
93         Buffer.cpp \
94         buffer_funcs.cpp \
95         buffer_funcs.h \
96         Buffer.h \
97         BufferList.cpp \
98         BufferList.h \
99         BufferParams.cpp \
100         BufferParams.h \
101         BufferView.cpp \
102         bufferview_funcs.cpp \
103         bufferview_funcs.h \
104         BufferView.h \
105         Bullet.cpp \
106         Bullet.h \
107         Changes.cpp \
108         Changes.h \
109         Chktex.cpp \
110         Chktex.h \
111         Color.cpp \
112         Color.h \
113         config.h.in \
114         ConverterCache.cpp \
115         ConverterCache.h \
116         Converter.cpp \
117         Converter.h \
118         CoordCache.cpp \
119         CoordCache.h \
120         Counters.cpp \
121         Counters.h \
122         Cursor.cpp \
123         Cursor.h \
124         CursorSlice.cpp \
125         CursorSlice.h \
126         CutAndPaste.cpp \
127         CutAndPaste.h \
128         debug.cpp \
129         debug.h \
130         DepTable.cpp \
131         DepTable.h \
132         DispatchResult.h \
133         DocIterator.cpp \
134         DocIterator.h \
135         Encoding.cpp \
136         Encoding.h \
137         ErrorList.cpp \
138         ErrorList.h \
139         Exporter.cpp \
140         Exporter.h \
141         factory.cpp \
142         factory.h \
143         Floating.cpp \
144         Floating.h \
145         FloatList.cpp \
146         FloatList.h \
147         Font.cpp \
148         Font.h \
149         FontIterator.cpp \
150         FontIterator.h \
151         Format.cpp \
152         Format.h \
153         FuncRequest.cpp \
154         FuncRequest.h \
155         FuncStatus.cpp \
156         FuncStatus.h \
157         gettext.cpp \
158         gettext.h \
159         Graph.cpp \
160         Graph.h \
161         Importer.cpp \
162         Importer.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         Length.cpp \
182         Length.h \
183         lengthcommon.cpp \
184         lengthcommon.h \
185         Lexer.cpp \
186         Lexer.h \
187         lfuns.h \
188         LyXAction.cpp \
189         LyXAction.h \
190         callback.cpp \
191         callback.h \
192         LyX.cpp \
193         lyxfind.cpp \
194         lyxfind.h \
195         LyXFunc.cpp \
196         LyXFunc.h \
197         LyX.h \
198         lyxlayout_ptr_fwd.h \
199         LyXRC.cpp \
200         LyXRC.h \
201         Server.cpp \
202         Server.h \
203         ServerSocket.cpp \
204         ServerSocket.h \
205         LyXVC.cpp \
206         LyXVC.h \
207         MenuBackend.cpp \
208         MenuBackend.h \
209         Messages.cpp \
210         Messages.h \
211         MetricsInfo.cpp \
212         MetricsInfo.h \
213         Mover.cpp \
214         Mover.h \
215         output.cpp \
216         output_docbook.cpp \
217         output_docbook.h \
218         output.h \
219         output_latex.cpp \
220         output_latex.h \
221         OutputParams.cpp \
222         OutputParams.h \
223         output_plaintext.cpp \
224         output_plaintext.h \
225         paper.h \
226         Paragraph.cpp \
227         paragraph_funcs.cpp \
228         paragraph_funcs.h \
229         Paragraph.h \
230         ParagraphList.h \
231         ParagraphMetrics.cpp \
232         ParagraphMetrics.h \
233         ParagraphParameters.cpp \
234         ParagraphParameters.h \
235         ParIterator.cpp \
236         ParIterator.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         toc.cpp \
265         toc.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 pkglib_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 pkglib_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/InsetMathBinom.cpp \
323         mathed/InsetMathBinom.h \
324         mathed/InsetMathBoldSymbol.cpp \
325         mathed/InsetMathBoldSymbol.h \
326         mathed/InsetMathBox.cpp \
327         mathed/InsetMathBoxed.cpp \
328         mathed/InsetMathBoxed.h \
329         mathed/InsetMathBox.h \
330         mathed/InsetMathBrace.cpp \
331         mathed/InsetMathBrace.h \
332         mathed/InsetMath.cpp \
333         mathed/InsetMathCases.cpp \
334         mathed/InsetMathCases.h \
335         mathed/InsetMathChar.cpp \
336         mathed/InsetMathChar.h \
337         mathed/InsetMathColor.cpp \
338         mathed/InsetMathColor.h \
339         mathed/CommandInset.cpp \
340         mathed/CommandInset.h \
341         mathed/InsetMathComment.cpp \
342         mathed/InsetMathComment.h \
343         mathed/InsetMathDecoration.cpp \
344         mathed/InsetMathDecoration.h \
345         mathed/InsetMathDelim.cpp \
346         mathed/InsetMathDelim.h \
347         mathed/InsetMathDFrac.cpp \
348         mathed/InsetMathDFrac.h \
349         mathed/InsetMathDiff.cpp \
350         mathed/InsetMathDiff.h \
351         mathed/InsetMathDots.cpp \
352         mathed/InsetMathDots.h \
353         mathed/InsetMathEnv.cpp \
354         mathed/InsetMathEnv.h \
355         mathed/InsetMathExFunc.cpp \
356         mathed/InsetMathExFunc.h \
357         mathed/InsetMathExInt.cpp \
358         mathed/InsetMathExInt.h \
359         mathed/InsetMathFBox.cpp \
360         mathed/InsetMathFBox.h \
361         mathed/InsetMathFont.cpp \
362         mathed/InsetMathFont.h \
363         mathed/InsetMathFontOld.cpp \
364         mathed/InsetMathFontOld.h \
365         mathed/InsetMathFracBase.cpp \
366         mathed/InsetMathFracBase.h \
367         mathed/InsetMathFrac.cpp \
368         mathed/InsetMathFrac.h \
369         mathed/InsetMathFrameBox.cpp \
370         mathed/InsetMathFrameBox.h \
371         mathed/InsetMathGrid.cpp \
372         mathed/InsetMathGrid.h \
373         mathed/InsetMath.h \
374         mathed/InsetMathHull.cpp \
375         mathed/InsetMathHull.h \
376         mathed/InsetMathKern.cpp \
377         mathed/InsetMathKern.h \
378         mathed/InsetMathLefteqn.cpp \
379         mathed/InsetMathLefteqn.h \
380         mathed/InsetMathLim.cpp \
381         mathed/InsetMathLim.h \
382         mathed/MathMacro.cpp \
383         mathed/MathMacro.h \
384         mathed/InsetMathMakebox.cpp \
385         mathed/InsetMathMakebox.h \
386         mathed/InsetMathMatrix.cpp \
387         mathed/InsetMathMatrix.h \
388         mathed/InsetMathNest.cpp \
389         mathed/InsetMathNest.h \
390         mathed/InsetMathNumber.cpp \
391         mathed/InsetMathNumber.h \
392         mathed/InsetMathOverset.cpp \
393         mathed/InsetMathOverset.h \
394         mathed/InsetMathPar.cpp \
395         mathed/InsetMathPar.h \
396         mathed/InsetMathPhantom.cpp \
397         mathed/InsetMathPhantom.h \
398         mathed/InsetMathRef.cpp \
399         mathed/InsetMathRef.h \
400         mathed/InsetMathRoot.cpp \
401         mathed/InsetMathRoot.h \
402         mathed/InsetMathScript.cpp \
403         mathed/InsetMathScript.h \
404         mathed/InsetMathSize.cpp \
405         mathed/InsetMathSize.h \
406         mathed/InsetMathSpace.cpp \
407         mathed/InsetMathSpace.h \
408         mathed/InsetMathSplit.cpp \
409         mathed/InsetMathSplit.h \
410         mathed/InsetMathSqrt.cpp \
411         mathed/InsetMathSqrt.h \
412         mathed/InsetMathStackrel.cpp \
413         mathed/InsetMathStackrel.h \
414         mathed/InsetMathString.cpp \
415         mathed/InsetMathString.h \
416         mathed/InsetMathSubstack.cpp \
417         mathed/InsetMathSubstack.h \
418         mathed/InsetMathSymbol.cpp \
419         mathed/InsetMathSymbol.h \
420         mathed/InsetMathTabular.cpp \
421         mathed/InsetMathTabular.h \
422         mathed/InsetMathTFrac.cpp \
423         mathed/InsetMathTFrac.h \
424         mathed/InsetMathUnderset.cpp \
425         mathed/InsetMathUnderset.h \
426         mathed/InsetMathUnknown.cpp \
427         mathed/InsetMathUnknown.h \
428         mathed/InsetMathXArrow.cpp \
429         mathed/InsetMathXArrow.h \
430         mathed/InsetMathXYMatrix.cpp \
431         mathed/InsetMathXYMatrix.h \
432         mathed/MathAtom.cpp \
433         mathed/MathAtom.h \
434         mathed/MathAutoCorrect.cpp \
435         mathed/MathAutoCorrect.h \
436         mathed/MathData.cpp \
437         mathed/MathData.h \
438         mathed/MathExtern.cpp \
439         mathed/MathExtern.h \
440         mathed/MathFactory.cpp \
441         mathed/MathFactory.h \
442         mathed/MathGridInfo.h \
443         mathed/MathMacroArgument.cpp \
444         mathed/MathMacroArgument.h \
445         mathed/MacroTable.cpp \
446         mathed/MacroTable.h \
447         mathed/MathMacroTemplate.cpp \
448         mathed/MathMacroTemplate.h \
449         mathed/MathParser.cpp \
450         mathed/MathParser.h \
451         mathed/ReplaceData.h \
452         mathed/MathStream.cpp \
453         mathed/MathStream.h \
454         mathed/MathSupport.cpp \
455         mathed/MathSupport.h \
456         mathed/TextPainter.cpp \
457         mathed/TextPainter.h 
458 #       mathed/InsetMathMBox.cpp
459 #       mathed/InsetMathMBox.h
460
461 ############################### Insets  ##############################
462
463 pkglib_LTLIBRARIES += liblyxinsets.la
464
465 EXTRA_DIST += \
466         insets/InsetTheorem.cpp \
467         insets/InsetTheorem.h
468
469 liblyxinsets_la_SOURCES = \
470         insets/MailInset.cpp \
471         insets/MailInset.h \
472         insets/ExternalSupport.cpp \
473         insets/ExternalSupport.h \
474         insets/ExternalTemplate.cpp \
475         insets/ExternalTemplate.h \
476         insets/ExternalTransforms.cpp \
477         insets/ExternalTransforms.h \
478         insets/RenderBase.h \
479         insets/RenderButton.cpp \
480         insets/RenderButton.h \
481         insets/RenderGraphic.cpp \
482         insets/RenderGraphic.h \
483         insets/RenderPreview.cpp \
484         insets/RenderPreview.h \
485         insets/Inset.h \
486         insets/Inset.cpp \
487         insets/InsetBibitem.cpp \
488         insets/InsetBibitem.h \
489         insets/InsetBibtex.cpp \
490         insets/InsetBibtex.h \
491         insets/InsetBox.cpp \
492         insets/InsetBox.h \
493         insets/InsetBranch.cpp \
494         insets/InsetBranch.h \
495         insets/InsetCaption.cpp \
496         insets/InsetCaption.h \
497         insets/InsetCharStyle.cpp \
498         insets/InsetCharStyle.h \
499         insets/InsetCitation.cpp \
500         insets/InsetCitation.h \
501         insets/InsetCollapsable.cpp \
502         insets/InsetCollapsable.h \
503         insets/InsetCommand.cpp \
504         insets/InsetCommand.h \
505         insets/InsetCommandParams.cpp \
506         insets/InsetCommandParams.h \
507         insets/InsetEnvironment.cpp \
508         insets/InsetEnvironment.h \
509         insets/InsetERT.cpp \
510         insets/InsetERT.h \
511         insets/InsetExternal.cpp \
512         insets/InsetExternal.h \
513         insets/InsetFloat.h \
514         insets/InsetFloat.cpp \
515         insets/InsetFloatList.cpp \
516         insets/InsetFloatList.h \
517         insets/InsetFoot.cpp \
518         insets/InsetFoot.h \
519         insets/InsetFootlike.cpp \
520         insets/InsetFootlike.h \
521         insets/InsetGraphicsParams.h \
522         insets/InsetGraphicsParams.cpp \
523         insets/InsetGraphics.cpp \
524         insets/InsetGraphics.h \
525         insets/InsetHFill.cpp \
526         insets/InsetHFill.h \
527         insets/InsetInclude.cpp \
528         insets/InsetInclude.h \
529         insets/InsetIndex.cpp \
530         insets/InsetIndex.h \
531         insets/InsetLabel.cpp \
532         insets/InsetLabel.h \
533         insets/InsetLine.cpp \
534         insets/InsetLine.h \
535         insets/InsetListings.h \
536         insets/InsetListings.cpp \
537         insets/InsetListingsParams.h \
538         insets/InsetListingsParams.cpp \
539         insets/InsetMarginal.h \
540         insets/InsetMarginal.cpp \
541         insets/InsetNewline.cpp \
542         insets/InsetNewline.h \
543         insets/InsetNomencl.cpp \
544         insets/InsetNomencl.h \
545         insets/InsetNote.cpp \
546         insets/InsetNote.h \
547         insets/InsetOptArg.cpp \
548         insets/InsetOptArg.h \
549         insets/InsetPagebreak.cpp \
550         insets/InsetPagebreak.h \
551         insets/InsetQuotes.cpp \
552         insets/InsetQuotes.h \
553         insets/InsetRef.cpp \
554         insets/InsetRef.h \
555         insets/InsetSpace.cpp \
556         insets/InsetSpace.h \
557         insets/InsetSpecialChar.cpp \
558         insets/InsetSpecialChar.h \
559         insets/InsetTabular.cpp \
560         insets/InsetTabular.h \
561         insets/InsetText.cpp \
562         insets/InsetText.h \
563         insets/InsetTOC.cpp \
564         insets/InsetTOC.h \
565         insets/InsetUrl.cpp \
566         insets/InsetUrl.h \
567         insets/InsetVSpace.cpp \
568         insets/InsetVSpace.h \
569         insets/InsetWrap.h \
570         insets/InsetWrap.cpp
571
572 #       insets/insetlist.C \
573 #       insets/insetlist.h \
574 #       insets/insetsection.h \
575 #       insets/insetsection.C \
576 #       insets/InsetTheorem.cpp \
577 #       insets/InsetTheorem.h
578