]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
d616d4476f68d40394efef57008a87e11331ab90
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 DISTCLEANFILES += config.h libintl.h
6
7 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES)
8 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) 
9
10 if BUILD_CLIENT_SUBDIR
11 CLIENT = client
12 endif
13
14 SUBDIRS = support frontends . $(CLIENT) tex2lyx
15
16 EXTRA_DIST = Section.h \
17         Section.cpp \
18         Variables.cpp \
19         Variables.h \
20         paper.h \
21         pch.h
22
23 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) \
24             @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI)
25
26 noinst_LIBRARIES = liblyxcore.a
27 bin_PROGRAMS = lyx
28
29 lyx_LDADD = \
30         liblyxcore.a \
31         liblyxmathed.a \
32         liblyxinsets.a \
33         frontends/liblyxfrontends.a \
34         frontends/qt4/liblyxqt4.a \
35         liblyxgraphics.a \
36         support/liblyxsupport.a \
37         $(OTHERLIBS) \
38         $(QT4_LDFLAGS) \
39         $(QT4_LIB) 
40
41 if LYX_WIN_RESOURCE
42 .rc.o:
43         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
44         windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
45 endif
46
47 #lyx_LDFLAGS=-Wl,-O1
48
49 BUILT_SOURCES = $(PCH_FILE)
50
51 if USE_ASPELL
52 ASPELL = ASpell.cpp ASpell_local.h
53 endif
54
55 # These four objects are linked as object files as they are not
56 # referenced within the core and therefore are not picked up
57 # by the linker without looping over libs. We do not want that,
58 # and in fact libtools seems not able to do that.
59 lyx_SOURCES = \
60         main.cpp \
61         $(ASPELL) SpellBase.cpp \
62         BiblioInfo.h \
63         BiblioInfo.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 SOURCEFILESCORE = \
78         Author.cpp \
79         Bidi.cpp \
80         boost.cpp \
81         BranchList.cpp \
82         Buffer.cpp \
83         buffer_funcs.cpp \
84         BufferList.cpp \
85         BufferParams.cpp \
86         BufferView.cpp \
87         Bullet.cpp \
88         Changes.cpp \
89         Chktex.cpp \
90         CmdDef.cpp \
91         Color.cpp \
92         ConverterCache.cpp \
93         Converter.cpp \
94         CoordCache.cpp \
95         Counters.cpp \
96         Cursor.cpp \
97         CursorSlice.cpp \
98         CutAndPaste.cpp \
99         DepTable.cpp \
100         DocIterator.cpp \
101         Encoding.cpp \
102         ErrorList.cpp \
103         Exporter.cpp \
104         factory.cpp \
105         Floating.cpp \
106         FloatList.cpp \
107         FontInfo.cpp \
108         FontList.cpp \
109         Font.cpp \
110         Format.cpp \
111         FuncRequest.cpp \
112         FuncStatus.cpp \
113         Graph.cpp \
114         InsetIterator.cpp \
115         InsetList.cpp \
116         Intl.cpp \
117         KeyMap.cpp \
118         KeySequence.cpp \
119         Language.cpp \
120         LaTeX.cpp \
121         LaTeXFeatures.cpp \
122         LayoutFile.cpp \
123         Length.cpp \
124         lengthcommon.cpp \
125         Lexer.cpp \
126         LyX.cpp \
127         LyXAction.cpp \
128         lyxfind.cpp \
129         LyXFunc.cpp \
130         LyXRC.cpp \
131         LyXVC.cpp \
132         MetricsInfo.cpp \
133         ModuleList.cpp \
134         Mover.cpp \
135         output_docbook.cpp \
136         output.cpp \
137         output_latex.cpp \
138         OutputParams.cpp \
139         output_plaintext.cpp \
140         Paragraph.cpp \
141         paragraph_funcs.cpp \
142         ParagraphMetrics.cpp \
143         ParagraphParameters.cpp \
144         ParIterator.cpp \
145         PDFOptions.cpp \
146         Row.cpp \
147         rowpainter.cpp \
148         Server.cpp \
149         ServerSocket.cpp \
150         sgml.cpp \
151         Session.cpp \
152         Spacing.cpp \
153         TexRow.cpp \
154         Text.cpp \
155         Text2.cpp \
156         Text3.cpp \
157         TexStream.cpp \
158         TextClass.cpp \
159         TextMetrics.cpp \
160         TocBackend.cpp \
161         Trans.cpp \
162         Undo.cpp \
163         VCBackend.cpp \
164         version.cpp \
165         VSpace.cpp \
166         WordList.cpp
167
168 HEADERFILESCORE = \
169         Author.h \
170         Bidi.h \
171         BranchList.h \
172         buffer_funcs.h \
173         Buffer.h \
174         BufferList.h \
175         BufferParams.h \
176         BufferView.h \
177         Bullet.h \
178         Citation.h \
179         Changes.h \
180         Chktex.h \
181         CmdDef.h \
182         ColorCode.h \
183         Color.h \
184         CompletionList.h \
185         ConverterCache.h \
186         Converter.h \
187         CoordCache.h \
188         Counters.h \
189         Cursor.h \
190         CursorSlice.h \
191         CutAndPaste.h \
192         DepTable.h \
193         DispatchResult.h \
194         DocIterator.h \
195         Encoding.h \
196         ErrorList.h \
197         Exporter.h \
198         factory.h \
199         Floating.h \
200         FloatList.h \
201         Font.h \
202         FontEnums.h \
203         FontInfo.h \
204         FontList.h \
205         Format.h \
206         FuncCode.h \
207         FuncRequest.h \
208         FuncStatus.h \
209         Graph.h \
210         InsetIterator.h \
211         InsetList.h \
212         Intl.h \
213         KeyMap.h \
214         KeySequence.h \
215         Language.h \
216         LaTeXFeatures.h \
217         LaTeX.h \
218         Layout.h \
219         LayoutEnums.h \
220         LayoutFile.h \
221         Length.h \
222         Lexer.h \
223         LyXAction.h \
224         lyxfind.h \
225         LyXFunc.h \
226         LyX.h \
227         LyXRC.h \
228         LyXVC.h \
229         MetricsInfo.h \
230         ModuleList.h \
231         Mover.h \
232         output_docbook.h \
233         output.h \
234         output_latex.h \
235         OutputParams.h \
236         output_plaintext.h \
237         paper.h \
238         paragraph_funcs.h \
239         Paragraph.h \
240         ParagraphList.h \
241         ParagraphMetrics.h \
242         ParagraphParameters.h \
243         ParIterator.h \
244         PDFOptions.h \
245         Row.h \
246         rowpainter.h \
247         Server.h \
248         ServerSocket.h \
249         Session.h \
250         sgml.h \
251         Spacing.h \
252         SpellBase.h \
253         TexRow.h \
254         TexStream.h \
255         Text.h \
256         TextClass.h \
257         TextMetrics.h \
258         TocBackend.h \
259         Trans.h \
260         Undo.h \
261         update_flags.h \
262         VCBackend.h \
263         version.h \
264         VSpace.h \
265         WordLangTuple.h \
266         WordList.h
267
268 STANDALONEFILES = \
269         Layout.cpp
270
271
272 lyxcore.cpp:
273         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
274
275 if MONOLITHIC_CORE
276
277 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
278 CLEANFILES += lyxcore.cpp
279
280 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
281
282 else
283
284 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
285
286 endif
287
288 ############################### Graphics ##############################
289
290 noinst_LIBRARIES += liblyxgraphics.a
291
292 liblyxgraphics_a_SOURCES = \
293         graphics/GraphicsCache.h \
294         graphics/GraphicsCache.cpp \
295         graphics/GraphicsCacheItem.h \
296         graphics/GraphicsCacheItem.cpp \
297         graphics/GraphicsConverter.h \
298         graphics/GraphicsConverter.cpp \
299         graphics/GraphicsImage.h \
300         graphics/GraphicsLoader.h \
301         graphics/GraphicsLoader.cpp \
302         graphics/GraphicsParams.cpp \
303         graphics/GraphicsParams.h \
304         graphics/GraphicsTypes.h \
305         graphics/PreviewImage.h \
306         graphics/PreviewImage.cpp \
307         graphics/PreviewLoader.h \
308         graphics/PreviewLoader.cpp \
309         graphics/Previews.h \
310         graphics/Previews.cpp
311
312
313 ############################### Mathed  ##############################
314
315 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
316
317 noinst_LIBRARIES += liblyxmathed.a
318
319 SOURCEFILESMATHED = \
320         mathed/InsetMathAMSArray.cpp \
321         mathed/InsetMathArray.cpp \
322         mathed/InsetMathBig.cpp \
323         mathed/InsetMathBoldSymbol.cpp \
324         mathed/InsetMathBox.cpp \
325         mathed/InsetMathBrace.cpp \
326         mathed/InsetMath.cpp \
327         mathed/InsetMathCases.cpp \
328         mathed/InsetMathChar.cpp \
329         mathed/InsetMathColor.cpp \
330         mathed/CommandInset.cpp \
331         mathed/InsetMathComment.cpp \
332         mathed/InsetMathDecoration.cpp \
333         mathed/InsetMathDecoration.h \
334         mathed/InsetMathDelim.cpp \
335         mathed/InsetMathDiff.cpp \
336         mathed/InsetMathDots.cpp \
337         mathed/InsetMathEnsureMath.cpp \
338         mathed/InsetMathEnv.cpp \
339         mathed/InsetMathExFunc.cpp \
340         mathed/InsetMathExInt.cpp \
341         mathed/InsetMathFont.cpp \
342         mathed/InsetMathFontOld.cpp \
343         mathed/InsetMathFrac.cpp \
344         mathed/InsetMathGrid.cpp \
345         mathed/InsetMathHull.cpp \
346         mathed/InsetMathKern.cpp \
347         mathed/InsetMathLefteqn.cpp \
348         mathed/InsetMathLim.cpp \
349         mathed/MathMacro.cpp \
350         mathed/InsetMathMatrix.cpp \
351         mathed/InsetMathNest.cpp \
352         mathed/InsetMathNumber.cpp \
353         mathed/InsetMathOverset.cpp \
354         mathed/InsetMathPar.cpp \
355         mathed/InsetMathPhantom.cpp \
356         mathed/InsetMathRef.cpp \
357         mathed/InsetMathRoot.cpp \
358         mathed/InsetMathScript.cpp \
359         mathed/InsetMathSize.cpp \
360         mathed/InsetMathSpace.cpp \
361         mathed/InsetMathSpecialChar.cpp \
362         mathed/InsetMathSplit.cpp \
363         mathed/InsetMathSqrt.cpp \
364         mathed/InsetMathStackrel.cpp \
365         mathed/InsetMathString.cpp \
366         mathed/InsetMathSubstack.cpp \
367         mathed/InsetMathSymbol.cpp \
368         mathed/InsetMathTabular.cpp \
369         mathed/InsetMathUnderset.cpp \
370         mathed/InsetMathUnknown.cpp \
371         mathed/InsetMathXArrow.cpp \
372         mathed/InsetMathXYMatrix.cpp \
373         mathed/MathAtom.cpp \
374         mathed/MathAutoCorrect.cpp \
375         mathed/MathData.cpp \
376         mathed/MathExtern.cpp \
377         mathed/MathFactory.cpp \
378         mathed/MathMacroArgument.cpp \
379         mathed/MacroTable.cpp \
380         mathed/MathMacroTemplate.cpp \
381         mathed/MathParser.cpp \
382         mathed/MathStream.cpp \
383         mathed/MathSupport.cpp \
384         mathed/TextPainter.cpp
385
386 HEADERFILESMATHED = \
387         mathed/InsetMathAMSArray.h \
388         mathed/InsetMathArray.h \
389         mathed/InsetMathBig.h \
390         mathed/InsetMathBoldSymbol.h \
391         mathed/InsetMathBox.h \
392         mathed/InsetMathBrace.h \
393         mathed/InsetMathCases.h \
394         mathed/InsetMathChar.h \
395         mathed/InsetMathColor.h \
396         mathed/CommandInset.h \
397         mathed/InsetMathComment.h \
398         mathed/InsetMathDelim.h \
399         mathed/InsetMathDiff.h \
400         mathed/InsetMathDots.h \
401         mathed/InsetMathEnsureMath.h \
402         mathed/InsetMathEnv.h \
403         mathed/InsetMathExFunc.h \
404         mathed/InsetMathExInt.h \
405         mathed/InsetMathFont.h \
406         mathed/InsetMathFontOld.h \
407         mathed/InsetMathFrac.h \
408         mathed/InsetMathGrid.h \
409         mathed/InsetMath.h \
410         mathed/InsetMathHull.h \
411         mathed/InsetMathKern.h \
412         mathed/InsetMathLefteqn.h \
413         mathed/InsetMathLim.h \
414         mathed/MathMacro.h \
415         mathed/InsetMathMatrix.h \
416         mathed/InsetMathNest.h \
417         mathed/InsetMathNumber.h \
418         mathed/InsetMathOverset.h \
419         mathed/InsetMathPar.h \
420         mathed/InsetMathPhantom.h \
421         mathed/InsetMathRef.h \
422         mathed/InsetMathRoot.h \
423         mathed/InsetMathScript.h \
424         mathed/InsetMathSize.h \
425         mathed/InsetMathSpace.h \
426         mathed/InsetMathSpecialChar.h \
427         mathed/InsetMathSplit.h \
428         mathed/InsetMathSqrt.h \
429         mathed/InsetMathStackrel.h \
430         mathed/InsetMathString.h \
431         mathed/InsetMathSubstack.h \
432         mathed/InsetMathSymbol.h \
433         mathed/InsetMathTabular.h \
434         mathed/InsetMathUnderset.h \
435         mathed/InsetMathUnknown.h \
436         mathed/InsetMathXArrow.h \
437         mathed/InsetMathXYMatrix.h \
438         mathed/MathAtom.h \
439         mathed/MathAutoCorrect.h \
440         mathed/MathData.h \
441         mathed/MathCompletionList.h \
442         mathed/MathExtern.h \
443         mathed/MathFactory.h \
444         mathed/MathGridInfo.h \
445         mathed/MathMacroArgument.h \
446         mathed/MacroTable.h \
447         mathed/MathMacroTemplate.h \
448         mathed/MathParser.h \
449         mathed/MathParser_flags.h \
450         mathed/ReplaceData.h \
451         mathed/MathStream.h \
452         mathed/MathSupport.h \
453         mathed/TextPainter.h 
454
455 lyxmathed.cpp:
456         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
457
458 if MONOLITHIC_MATHED
459
460 BUILT_SOURCES += lyxmathed.cpp
461 CLEANFILES += lyxmathed.cpp
462
463 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
464
465 else
466
467 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
468
469 endif
470
471 ############################### Insets  ##############################
472
473 noinst_LIBRARIES += liblyxinsets.a
474
475 SOURCEFILESINSETS = \
476         insets/ExternalSupport.cpp \
477         insets/ExternalTemplate.cpp \
478         insets/ExternalTransforms.cpp \
479         insets/RenderButton.cpp \
480         insets/RenderGraphic.cpp \
481         insets/RenderPreview.cpp \
482         insets/Inset.cpp \
483         insets/InsetBibitem.cpp \
484         insets/InsetBibtex.cpp \
485         insets/InsetBox.cpp \
486         insets/InsetBranch.cpp \
487         insets/InsetCaption.cpp \
488         insets/InsetCitation.cpp \
489         insets/InsetCollapsable.cpp \
490         insets/InsetCommand.cpp \
491         insets/InsetCommandParams.cpp \
492         insets/InsetERT.cpp \
493         insets/InsetExternal.cpp \
494         insets/InsetFlex.cpp \
495         insets/InsetFloat.cpp \
496         insets/InsetFloatList.cpp \
497         insets/InsetFoot.cpp \
498         insets/InsetFootlike.cpp \
499         insets/InsetGraphicsParams.cpp \
500         insets/InsetGraphics.cpp \
501         insets/InsetHyperlink.cpp \
502         insets/InsetInclude.cpp \
503         insets/InsetIndex.cpp \
504         insets/InsetInfo.cpp \
505         insets/InsetLabel.cpp \
506         insets/InsetLayout.cpp \
507         insets/InsetLine.cpp \
508         insets/InsetListings.cpp \
509         insets/InsetListingsParams.cpp \
510         insets/InsetMarginal.cpp \
511         insets/InsetNewline.cpp \
512         insets/InsetNewpage.cpp \
513         insets/InsetNomencl.cpp \
514         insets/InsetNote.cpp \
515         insets/InsetOptArg.cpp \
516         insets/InsetPhantom.cpp \
517         insets/InsetQuotes.cpp \
518         insets/InsetRef.cpp \
519         insets/InsetSpace.cpp \
520         insets/InsetSpecialChar.cpp \
521         insets/InsetTabular.cpp \
522         insets/InsetText.cpp \
523         insets/InsetTOC.cpp \
524         insets/InsetVSpace.cpp \
525         insets/InsetWrap.cpp
526
527 HEADERFILESINSETS = \
528         insets/ExternalSupport.h \
529         insets/ExternalTemplate.h \
530         insets/ExternalTransforms.h \
531         insets/RenderBase.h \
532         insets/RenderButton.h \
533         insets/RenderGraphic.h \
534         insets/RenderPreview.h \
535         insets/Inset.h \
536         insets/InsetBibitem.h \
537         insets/InsetBibtex.h \
538         insets/InsetBox.h \
539         insets/InsetBranch.h \
540         insets/InsetCaption.h \
541         insets/InsetCitation.h \
542         insets/InsetCode.h \
543         insets/InsetCollapsable.h \
544         insets/InsetCommand.h \
545         insets/InsetCommandParams.h \
546         insets/InsetERT.h \
547         insets/InsetExternal.h \
548         insets/InsetFlex.h \
549         insets/InsetFloat.h \
550         insets/InsetFoot.h \
551         insets/InsetFloatList.h \
552         insets/InsetFootlike.h \
553         insets/InsetGraphicsParams.h \
554         insets/InsetGraphics.h \
555         insets/InsetHyperlink.h \
556         insets/InsetInclude.h \
557         insets/InsetIndex.h \
558         insets/InsetInfo.h \
559         insets/InsetLabel.h \
560         insets/InsetLayout.h \
561         insets/InsetLine.h \
562         insets/InsetListings.h \
563         insets/InsetListingsParams.h \
564         insets/InsetMarginal.h \
565         insets/InsetNewline.h \
566         insets/InsetNewpage.h \
567         insets/InsetNomencl.h \
568         insets/InsetNote.h \
569         insets/InsetOptArg.h \
570         insets/InsetPhantom.h \
571         insets/InsetQuotes.h \
572         insets/InsetRef.h \
573         insets/InsetSpace.h \
574         insets/InsetSpecialChar.h \
575         insets/InsetTabular.h \
576         insets/InsetText.h \
577         insets/InsetTOC.h \
578         insets/InsetVSpace.h \
579         insets/InsetWrap.h
580
581 #       insets/InsetList.cpp \
582 #       insets/InsetList.h \
583 #       insets/InsetSection.h \
584 #       insets/InsetSection.cpp
585
586 lyxinsets.cpp:
587         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
588
589 if MONOLITHIC_INSETS
590
591 BUILT_SOURCES += lyxinsets.cpp
592 CLEANFILES += lyxinsets.cpp
593
594 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
595
596 else
597
598 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
599
600 endif