]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Fanfare! Qt is now also allowed in core!
[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) $(LIBPSAPI)
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) \
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         IndicesList.cpp \
115         InsetIterator.cpp \
116         InsetList.cpp \
117         Intl.cpp \
118         KeyMap.cpp \
119         KeySequence.cpp \
120         Language.cpp \
121         LaTeX.cpp \
122         LaTeXFeatures.cpp \
123         LayoutFile.cpp \
124         LayoutModuleList.cpp \
125         Length.cpp \
126         lengthcommon.cpp \
127         Lexer.cpp \
128         LyX.cpp \
129         LyXAction.cpp \
130         lyxfind.cpp \
131         LyXFunc.cpp \
132         LyXRC.cpp \
133         LyXVC.cpp \
134         MetricsInfo.cpp \
135         ModuleList.cpp \
136         Mover.cpp \
137         output_docbook.cpp \
138         output.cpp \
139         output_latex.cpp \
140         OutputParams.cpp \
141         output_plaintext.cpp \
142         Paragraph.cpp \
143         paragraph_funcs.cpp \
144         ParagraphMetrics.cpp \
145         ParagraphParameters.cpp \
146         ParIterator.cpp \
147         PDFOptions.cpp \
148         Row.cpp \
149         rowpainter.cpp \
150         Server.cpp \
151         ServerSocket.cpp \
152         sgml.cpp \
153         Session.cpp \
154         Spacing.cpp \
155         TexRow.cpp \
156         Text.cpp \
157         Text2.cpp \
158         Text3.cpp \
159         TexStream.cpp \
160         TextClass.cpp \
161         TextMetrics.cpp \
162         TocBackend.cpp \
163         Trans.cpp \
164         Undo.cpp \
165         VCBackend.cpp \
166         version.cpp \
167         VSpace.cpp \
168         WordList.cpp
169
170 HEADERFILESCORE = \
171         Author.h \
172         Bidi.h \
173         BranchList.h \
174         buffer_funcs.h \
175         Buffer.h \
176         BufferList.h \
177         BufferParams.h \
178         BufferView.h \
179         Bullet.h \
180         Citation.h \
181         Changes.h \
182         Chktex.h \
183         CmdDef.h \
184         ColorCode.h \
185         Color.h \
186         ColorSet.h \
187         CompletionList.h \
188         ConverterCache.h \
189         Converter.h \
190         CoordCache.h \
191         Counters.h \
192         Cursor.h \
193         CursorSlice.h \
194         CutAndPaste.h \
195         DepTable.h \
196         DispatchResult.h \
197         DocIterator.h \
198         Encoding.h \
199         ErrorList.h \
200         Exporter.h \
201         factory.h \
202         Floating.h \
203         FloatList.h \
204         Font.h \
205         FontEnums.h \
206         FontInfo.h \
207         FontList.h \
208         Format.h \
209         FuncCode.h \
210         FuncRequest.h \
211         FuncStatus.h \
212         Graph.h \
213         IndicesList.h \
214         InsetIterator.h \
215         InsetList.h \
216         Intl.h \
217         KeyMap.h \
218         KeySequence.h \
219         Language.h \
220         LaTeXFeatures.h \
221         LaTeX.h \
222         Layout.h \
223         LayoutEnums.h \
224         LayoutFile.h \
225         LayoutModuleList.h \
226         Length.h \
227         Lexer.h \
228         LyXAction.h \
229         lyxfind.h \
230         LyXFunc.h \
231         LyX.h \
232         LyXRC.h \
233         LyXVC.h \
234         MetricsInfo.h \
235         ModuleList.h \
236         Mover.h \
237         output_docbook.h \
238         output.h \
239         output_latex.h \
240         OutputParams.h \
241         output_plaintext.h \
242         paper.h \
243         paragraph_funcs.h \
244         Paragraph.h \
245         ParagraphList.h \
246         ParagraphMetrics.h \
247         ParagraphParameters.h \
248         ParIterator.h \
249         PDFOptions.h \
250         Row.h \
251         rowpainter.h \
252         Server.h \
253         ServerSocket.h \
254         Session.h \
255         sgml.h \
256         Spacing.h \
257         SpellChecker.h \
258         TexRow.h \
259         TexStream.h \
260         Text.h \
261         TextClass.h \
262         TextMetrics.h \
263         TocBackend.h \
264         Trans.h \
265         Undo.h \
266         update_flags.h \
267         VCBackend.h \
268         version.h \
269         VSpace.h \
270         WordLangTuple.h \
271         WordList.h
272
273 STANDALONEFILES = \
274         Layout.cpp
275
276
277 lyxcore.cpp:
278         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
279
280 if MONOLITHIC_CORE
281
282 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
283 CLEANFILES += lyxcore.cpp
284
285 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
286
287 else
288
289 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
290
291 endif
292
293 ############################### Graphics ##############################
294
295 noinst_LIBRARIES += liblyxgraphics.a
296
297 liblyxgraphics_a_SOURCES = \
298         graphics/GraphicsCache.h \
299         graphics/GraphicsCache.cpp \
300         graphics/GraphicsCacheItem.h \
301         graphics/GraphicsCacheItem.cpp \
302         graphics/GraphicsConverter.h \
303         graphics/GraphicsConverter.cpp \
304         graphics/GraphicsImage.h \
305         graphics/GraphicsLoader.h \
306         graphics/GraphicsLoader.cpp \
307         graphics/GraphicsParams.cpp \
308         graphics/GraphicsParams.h \
309         graphics/GraphicsTypes.h \
310         graphics/PreviewImage.h \
311         graphics/PreviewImage.cpp \
312         graphics/PreviewLoader.h \
313         graphics/PreviewLoader.cpp \
314         graphics/Previews.h \
315         graphics/Previews.cpp
316
317
318 ############################### Mathed  ##############################
319
320 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
321
322 noinst_LIBRARIES += liblyxmathed.a
323
324 SOURCEFILESMATHED = \
325         mathed/InsetMathAMSArray.cpp \
326         mathed/InsetMathArray.cpp \
327         mathed/InsetMathBig.cpp \
328         mathed/InsetMathBoldSymbol.cpp \
329         mathed/InsetMathBox.cpp \
330         mathed/InsetMathBrace.cpp \
331         mathed/InsetMath.cpp \
332         mathed/InsetMathCases.cpp \
333         mathed/InsetMathChar.cpp \
334         mathed/InsetMathColor.cpp \
335         mathed/CommandInset.cpp \
336         mathed/InsetMathComment.cpp \
337         mathed/InsetMathDecoration.cpp \
338         mathed/InsetMathDecoration.h \
339         mathed/InsetMathDelim.cpp \
340         mathed/InsetMathDiff.cpp \
341         mathed/InsetMathDots.cpp \
342         mathed/InsetMathEnsureMath.cpp \
343         mathed/InsetMathEnv.cpp \
344         mathed/InsetMathExFunc.cpp \
345         mathed/InsetMathExInt.cpp \
346         mathed/InsetMathFont.cpp \
347         mathed/InsetMathFontOld.cpp \
348         mathed/InsetMathFrac.cpp \
349         mathed/InsetMathGrid.cpp \
350         mathed/InsetMathHull.cpp \
351         mathed/InsetMathKern.cpp \
352         mathed/InsetMathLefteqn.cpp \
353         mathed/InsetMathLim.cpp \
354         mathed/MathMacro.cpp \
355         mathed/InsetMathMatrix.cpp \
356         mathed/InsetMathNest.cpp \
357         mathed/InsetMathNumber.cpp \
358         mathed/InsetMathOverset.cpp \
359         mathed/InsetMathPar.cpp \
360         mathed/InsetMathPhantom.cpp \
361         mathed/InsetMathRef.cpp \
362         mathed/InsetMathRoot.cpp \
363         mathed/InsetMathScript.cpp \
364         mathed/InsetMathSize.cpp \
365         mathed/InsetMathSpace.cpp \
366         mathed/InsetMathSpecialChar.cpp \
367         mathed/InsetMathSplit.cpp \
368         mathed/InsetMathSqrt.cpp \
369         mathed/InsetMathStackrel.cpp \
370         mathed/InsetMathString.cpp \
371         mathed/InsetMathSubstack.cpp \
372         mathed/InsetMathSymbol.cpp \
373         mathed/InsetMathTabular.cpp \
374         mathed/InsetMathUnderset.cpp \
375         mathed/InsetMathUnknown.cpp \
376         mathed/InsetMathXArrow.cpp \
377         mathed/InsetMathXYMatrix.cpp \
378         mathed/MathAtom.cpp \
379         mathed/MathAutoCorrect.cpp \
380         mathed/MathData.cpp \
381         mathed/MathExtern.cpp \
382         mathed/MathFactory.cpp \
383         mathed/MathMacroArgument.cpp \
384         mathed/MacroTable.cpp \
385         mathed/MathMacroTemplate.cpp \
386         mathed/MathParser.cpp \
387         mathed/MathStream.cpp \
388         mathed/MathSupport.cpp \
389         mathed/TextPainter.cpp
390
391 HEADERFILESMATHED = \
392         mathed/InsetMathAMSArray.h \
393         mathed/InsetMathArray.h \
394         mathed/InsetMathBig.h \
395         mathed/InsetMathBoldSymbol.h \
396         mathed/InsetMathBox.h \
397         mathed/InsetMathBrace.h \
398         mathed/InsetMathCases.h \
399         mathed/InsetMathChar.h \
400         mathed/InsetMathColor.h \
401         mathed/CommandInset.h \
402         mathed/InsetMathComment.h \
403         mathed/InsetMathDelim.h \
404         mathed/InsetMathDiff.h \
405         mathed/InsetMathDots.h \
406         mathed/InsetMathEnsureMath.h \
407         mathed/InsetMathEnv.h \
408         mathed/InsetMathExFunc.h \
409         mathed/InsetMathExInt.h \
410         mathed/InsetMathFont.h \
411         mathed/InsetMathFontOld.h \
412         mathed/InsetMathFrac.h \
413         mathed/InsetMathGrid.h \
414         mathed/InsetMath.h \
415         mathed/InsetMathHull.h \
416         mathed/InsetMathKern.h \
417         mathed/InsetMathLefteqn.h \
418         mathed/InsetMathLim.h \
419         mathed/MathMacro.h \
420         mathed/InsetMathMatrix.h \
421         mathed/InsetMathNest.h \
422         mathed/InsetMathNumber.h \
423         mathed/InsetMathOverset.h \
424         mathed/InsetMathPar.h \
425         mathed/InsetMathPhantom.h \
426         mathed/InsetMathRef.h \
427         mathed/InsetMathRoot.h \
428         mathed/InsetMathScript.h \
429         mathed/InsetMathSize.h \
430         mathed/InsetMathSpace.h \
431         mathed/InsetMathSpecialChar.h \
432         mathed/InsetMathSplit.h \
433         mathed/InsetMathSqrt.h \
434         mathed/InsetMathStackrel.h \
435         mathed/InsetMathString.h \
436         mathed/InsetMathSubstack.h \
437         mathed/InsetMathSymbol.h \
438         mathed/InsetMathTabular.h \
439         mathed/InsetMathUnderset.h \
440         mathed/InsetMathUnknown.h \
441         mathed/InsetMathXArrow.h \
442         mathed/InsetMathXYMatrix.h \
443         mathed/MathAtom.h \
444         mathed/MathAutoCorrect.h \
445         mathed/MathData.h \
446         mathed/MathCompletionList.h \
447         mathed/MathExtern.h \
448         mathed/MathFactory.h \
449         mathed/MathGridInfo.h \
450         mathed/MathMacroArgument.h \
451         mathed/MacroTable.h \
452         mathed/MathMacroTemplate.h \
453         mathed/MathParser.h \
454         mathed/MathParser_flags.h \
455         mathed/ReplaceData.h \
456         mathed/MathStream.h \
457         mathed/MathSupport.h \
458         mathed/TextPainter.h 
459
460 lyxmathed.cpp:
461         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
462
463 if MONOLITHIC_MATHED
464
465 BUILT_SOURCES += lyxmathed.cpp
466 CLEANFILES += lyxmathed.cpp
467
468 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
469
470 else
471
472 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
473
474 endif
475
476 ############################### Insets  ##############################
477
478 noinst_LIBRARIES += liblyxinsets.a
479
480 SOURCEFILESINSETS = \
481         insets/ExternalSupport.cpp \
482         insets/ExternalTemplate.cpp \
483         insets/ExternalTransforms.cpp \
484         insets/RenderButton.cpp \
485         insets/RenderGraphic.cpp \
486         insets/RenderPreview.cpp \
487         insets/Inset.cpp \
488         insets/InsetBibitem.cpp \
489         insets/InsetBibtex.cpp \
490         insets/InsetBox.cpp \
491         insets/InsetBranch.cpp \
492         insets/InsetCaption.cpp \
493         insets/InsetCitation.cpp \
494         insets/InsetCollapsable.cpp \
495         insets/InsetCommand.cpp \
496         insets/InsetCommandParams.cpp \
497         insets/InsetERT.cpp \
498         insets/InsetExternal.cpp \
499         insets/InsetFlex.cpp \
500         insets/InsetFloat.cpp \
501         insets/InsetFloatList.cpp \
502         insets/InsetFoot.cpp \
503         insets/InsetFootlike.cpp \
504         insets/InsetGraphicsParams.cpp \
505         insets/InsetGraphics.cpp \
506         insets/InsetHyperlink.cpp \
507         insets/InsetInclude.cpp \
508         insets/InsetIndex.cpp \
509         insets/InsetInfo.cpp \
510         insets/InsetLabel.cpp \
511         insets/InsetLayout.cpp \
512         insets/InsetLine.cpp \
513         insets/InsetListings.cpp \
514         insets/InsetListingsParams.cpp \
515         insets/InsetMarginal.cpp \
516         insets/InsetNewline.cpp \
517         insets/InsetNewpage.cpp \
518         insets/InsetNomencl.cpp \
519         insets/InsetNote.cpp \
520         insets/InsetOptArg.cpp \
521         insets/InsetPhantom.cpp \
522         insets/InsetQuotes.cpp \
523         insets/InsetRef.cpp \
524         insets/InsetSpace.cpp \
525         insets/InsetSpecialChar.cpp \
526         insets/InsetTabular.cpp \
527         insets/InsetText.cpp \
528         insets/InsetTOC.cpp \
529         insets/InsetVSpace.cpp \
530         insets/InsetWrap.cpp
531
532 HEADERFILESINSETS = \
533         insets/ExternalSupport.h \
534         insets/ExternalTemplate.h \
535         insets/ExternalTransforms.h \
536         insets/RenderBase.h \
537         insets/RenderButton.h \
538         insets/RenderGraphic.h \
539         insets/RenderPreview.h \
540         insets/Inset.h \
541         insets/InsetBibitem.h \
542         insets/InsetBibtex.h \
543         insets/InsetBox.h \
544         insets/InsetBranch.h \
545         insets/InsetCaption.h \
546         insets/InsetCitation.h \
547         insets/InsetCode.h \
548         insets/InsetCollapsable.h \
549         insets/InsetCommand.h \
550         insets/InsetCommandParams.h \
551         insets/InsetERT.h \
552         insets/InsetExternal.h \
553         insets/InsetFlex.h \
554         insets/InsetFloat.h \
555         insets/InsetFoot.h \
556         insets/InsetFloatList.h \
557         insets/InsetFootlike.h \
558         insets/InsetGraphicsParams.h \
559         insets/InsetGraphics.h \
560         insets/InsetHyperlink.h \
561         insets/InsetInclude.h \
562         insets/InsetIndex.h \
563         insets/InsetInfo.h \
564         insets/InsetLabel.h \
565         insets/InsetLayout.h \
566         insets/InsetLine.h \
567         insets/InsetListings.h \
568         insets/InsetListingsParams.h \
569         insets/InsetMarginal.h \
570         insets/InsetNewline.h \
571         insets/InsetNewpage.h \
572         insets/InsetNomencl.h \
573         insets/InsetNote.h \
574         insets/InsetOptArg.h \
575         insets/InsetPhantom.h \
576         insets/InsetQuotes.h \
577         insets/InsetRef.h \
578         insets/InsetSpace.h \
579         insets/InsetSpecialChar.h \
580         insets/InsetTabular.h \
581         insets/InsetText.h \
582         insets/InsetTOC.h \
583         insets/InsetVSpace.h \
584         insets/InsetWrap.h
585
586 #       insets/InsetList.cpp \
587 #       insets/InsetList.h \
588 #       insets/InsetSection.h \
589 #       insets/InsetSection.cpp
590
591 lyxinsets.cpp:
592         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
593
594 if MONOLITHIC_INSETS
595
596 BUILT_SOURCES += lyxinsets.cpp
597 CLEANFILES += lyxinsets.cpp
598
599 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
600
601 else
602
603 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
604
605 endif