]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
InsetInfo: Output 'undefined' instead of an error message for undefined shortcut
[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
9 if BUILD_CLIENT_SUBDIR
10 CLIENT = client
11 endif
12
13 SUBDIRS = support frontends . $(CLIENT) tex2lyx
14
15 EXTRA_DIST = Section.h \
16         Section.cpp \
17         Variables.cpp \
18         Variables.h \
19         paper.h \
20         pch.h
21
22 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
23
24 noinst_LTLIBRARIES = liblyxcore.la
25 bin_PROGRAMS = lyx
26
27 lyx_LDADD = \
28         liblyxcore.la \
29         liblyxmathed.la \
30         liblyxinsets.la \
31         frontends/liblyxfrontends.la \
32         frontends/qt4/liblyxqt4.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         BiblioInfo.h \
66         BiblioInfo.cpp \
67         Box.cpp \
68         Box.h \
69         Dimension.cpp \
70         Dimension.h \
71         PrinterParams.cpp \
72         PrinterParams.h \
73         Thesaurus.cpp \
74         Thesaurus.h
75
76 if LYX_WIN_RESOURCE
77 lyx_SOURCES += lyxwinres.rc
78 endif
79
80 SOURCEFILESCORE = \
81         Author.cpp \
82         Bidi.cpp \
83         boost.cpp \
84         BranchList.cpp \
85         Buffer.cpp \
86         buffer_funcs.cpp \
87         BufferList.cpp \
88         BufferParams.cpp \
89         BufferView.cpp \
90         Bullet.cpp \
91         Changes.cpp \
92         Chktex.cpp \
93         CmdDef.cpp \
94         Color.cpp \
95         ConverterCache.cpp \
96         Converter.cpp \
97         CoordCache.cpp \
98         Counters.cpp \
99         Cursor.cpp \
100         CursorSlice.cpp \
101         CutAndPaste.cpp \
102         DepTable.cpp \
103         DocIterator.cpp \
104         Encoding.cpp \
105         ErrorList.cpp \
106         Exporter.cpp \
107         factory.cpp \
108         Floating.cpp \
109         FloatList.cpp \
110         FontInfo.cpp \
111         FontList.cpp \
112         Font.cpp \
113         Format.cpp \
114         FuncRequest.cpp \
115         FuncStatus.cpp \
116         Graph.cpp \
117         InsetIterator.cpp \
118         InsetList.cpp \
119         Intl.cpp \
120         KeyMap.cpp \
121         KeySequence.cpp \
122         Language.cpp \
123         LaTeX.cpp \
124         LaTeXFeatures.cpp \
125         LayoutFile.cpp \
126         Length.cpp \
127         lengthcommon.cpp \
128         Lexer.cpp \
129         LyX.cpp \
130         LyXAction.cpp \
131         lyxfind.cpp \
132         LyXFunc.cpp \
133         LyXRC.cpp \
134         LyXVC.cpp \
135         MetricsInfo.cpp \
136         ModuleList.cpp \
137         Mover.cpp \
138         output_docbook.cpp \
139         output.cpp \
140         output_latex.cpp \
141         OutputParams.cpp \
142         output_plaintext.cpp \
143         Paragraph.cpp \
144         paragraph_funcs.cpp \
145         ParagraphMetrics.cpp \
146         ParagraphParameters.cpp \
147         ParIterator.cpp \
148         PDFOptions.cpp \
149         Row.cpp \
150         rowpainter.cpp \
151         Server.cpp \
152         ServerSocket.cpp \
153         sgml.cpp \
154         Session.cpp \
155         Spacing.cpp \
156         TexRow.cpp \
157         Text.cpp \
158         Text2.cpp \
159         Text3.cpp \
160         TexStream.cpp \
161         TextClass.cpp \
162         TextMetrics.cpp \
163         TocBackend.cpp \
164         Trans.cpp \
165         Undo.cpp \
166         VCBackend.cpp \
167         version.cpp \
168         VSpace.cpp \
169         WordList.cpp
170
171 HEADERFILESCORE = \
172         Author.h \
173         Bidi.h \
174         BranchList.h \
175         buffer_funcs.h \
176         Buffer.h \
177         BufferList.h \
178         BufferParams.h \
179         BufferView.h \
180         Bullet.h \
181         Citation.h \
182         Changes.h \
183         Chktex.h \
184         CmdDef.h \
185         ColorCode.h \
186         Color.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         InsetIterator.h \
214         InsetList.h \
215         Intl.h \
216         KeyMap.h \
217         KeySequence.h \
218         Language.h \
219         LaTeXFeatures.h \
220         LaTeX.h \
221         Layout.h \
222         LayoutEnums.h \
223         LayoutFile.h \
224         Length.h \
225         Lexer.h \
226         LyXAction.h \
227         lyxfind.h \
228         LyXFunc.h \
229         LyX.h \
230         LyXRC.h \
231         LyXVC.h \
232         MetricsInfo.h \
233         ModuleList.h \
234         Mover.h \
235         output_docbook.h \
236         output.h \
237         output_latex.h \
238         OutputParams.h \
239         output_plaintext.h \
240         paper.h \
241         paragraph_funcs.h \
242         Paragraph.h \
243         ParagraphList.h \
244         ParagraphMetrics.h \
245         ParagraphParameters.h \
246         ParIterator.h \
247         PDFOptions.h \
248         Row.h \
249         rowpainter.h \
250         Server.h \
251         ServerSocket.h \
252         Session.h \
253         sgml.h \
254         Spacing.h \
255         SpellBase.h \
256         TexRow.h \
257         TexStream.h \
258         Text.h \
259         TextClass.h \
260         TextMetrics.h \
261         TocBackend.h \
262         Trans.h \
263         Undo.h \
264         update_flags.h \
265         VCBackend.h \
266         version.h \
267         VSpace.h \
268         WordLangTuple.h \
269         WordList.h
270
271 STANDALONEFILES = \
272         Layout.cpp
273
274
275 lyxcore.cpp:
276         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
277
278 if MONOLITHIC_CORE
279
280 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
281 CLEANFILES += lyxcore.cpp
282
283 liblyxcore_la_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
284
285 else
286
287 liblyxcore_la_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
288
289 endif
290
291 ############################### Graphics ##############################
292
293 noinst_LTLIBRARIES += liblyxgraphics.la
294
295 liblyxgraphics_la_SOURCES = \
296         graphics/GraphicsCache.h \
297         graphics/GraphicsCache.cpp \
298         graphics/GraphicsCacheItem.h \
299         graphics/GraphicsCacheItem.cpp \
300         graphics/GraphicsConverter.h \
301         graphics/GraphicsConverter.cpp \
302         graphics/GraphicsImage.h \
303         graphics/GraphicsImage.cpp \
304         graphics/GraphicsLoader.h \
305         graphics/GraphicsLoader.cpp \
306         graphics/GraphicsParams.cpp \
307         graphics/GraphicsParams.h \
308         graphics/GraphicsTypes.h \
309         graphics/PreviewImage.h \
310         graphics/PreviewImage.cpp \
311         graphics/PreviewLoader.h \
312         graphics/PreviewLoader.cpp \
313         graphics/Previews.h \
314         graphics/Previews.cpp
315
316
317 ############################### Mathed  ##############################
318
319 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
320
321 noinst_LTLIBRARIES += liblyxmathed.la
322
323 SOURCEFILESMATHED = \
324         mathed/InsetMathAMSArray.cpp \
325         mathed/InsetMathArray.cpp \
326         mathed/InsetMathBig.cpp \
327         mathed/InsetMathBoldSymbol.cpp \
328         mathed/InsetMathBox.cpp \
329         mathed/InsetMathBrace.cpp \
330         mathed/InsetMath.cpp \
331         mathed/InsetMathCases.cpp \
332         mathed/InsetMathChar.cpp \
333         mathed/InsetMathColor.cpp \
334         mathed/CommandInset.cpp \
335         mathed/InsetMathComment.cpp \
336         mathed/InsetMathDecoration.cpp \
337         mathed/InsetMathDecoration.h \
338         mathed/InsetMathDelim.cpp \
339         mathed/InsetMathDiff.cpp \
340         mathed/InsetMathDots.cpp \
341         mathed/InsetMathEnv.cpp \
342         mathed/InsetMathExFunc.cpp \
343         mathed/InsetMathExInt.cpp \
344         mathed/InsetMathFont.cpp \
345         mathed/InsetMathFontOld.cpp \
346         mathed/InsetMathFrac.cpp \
347         mathed/InsetMathGrid.cpp \
348         mathed/InsetMathHull.cpp \
349         mathed/InsetMathKern.cpp \
350         mathed/InsetMathLefteqn.cpp \
351         mathed/InsetMathLim.cpp \
352         mathed/MathMacro.cpp \
353         mathed/InsetMathMatrix.cpp \
354         mathed/InsetMathNest.cpp \
355         mathed/InsetMathNumber.cpp \
356         mathed/InsetMathOverset.cpp \
357         mathed/InsetMathPar.cpp \
358         mathed/InsetMathPhantom.cpp \
359         mathed/InsetMathRef.cpp \
360         mathed/InsetMathRoot.cpp \
361         mathed/InsetMathScript.cpp \
362         mathed/InsetMathSize.cpp \
363         mathed/InsetMathSpace.cpp \
364         mathed/InsetMathSplit.cpp \
365         mathed/InsetMathSqrt.cpp \
366         mathed/InsetMathStackrel.cpp \
367         mathed/InsetMathString.cpp \
368         mathed/InsetMathSubstack.cpp \
369         mathed/InsetMathSymbol.cpp \
370         mathed/InsetMathTabular.cpp \
371         mathed/InsetMathUnderset.cpp \
372         mathed/InsetMathUnknown.cpp \
373         mathed/InsetMathXArrow.cpp \
374         mathed/InsetMathXYMatrix.cpp \
375         mathed/MathAtom.cpp \
376         mathed/MathAutoCorrect.cpp \
377         mathed/MathData.cpp \
378         mathed/MathExtern.cpp \
379         mathed/MathFactory.cpp \
380         mathed/MathMacroArgument.cpp \
381         mathed/MacroTable.cpp \
382         mathed/MathMacroTemplate.cpp \
383         mathed/MathParser.cpp \
384         mathed/MathStream.cpp \
385         mathed/MathSupport.cpp \
386         mathed/TextPainter.cpp
387
388 HEADERFILESMATHED = \
389         mathed/InsetMathAMSArray.h \
390         mathed/InsetMathArray.h \
391         mathed/InsetMathBig.h \
392         mathed/InsetMathBoldSymbol.h \
393         mathed/InsetMathBox.h \
394         mathed/InsetMathBrace.h \
395         mathed/InsetMathCases.h \
396         mathed/InsetMathChar.h \
397         mathed/InsetMathColor.h \
398         mathed/CommandInset.h \
399         mathed/InsetMathComment.h \
400         mathed/InsetMathDelim.h \
401         mathed/InsetMathDiff.h \
402         mathed/InsetMathDots.h \
403         mathed/InsetMathEnv.h \
404         mathed/InsetMathExFunc.h \
405         mathed/InsetMathExInt.h \
406         mathed/InsetMathFont.h \
407         mathed/InsetMathFontOld.h \
408         mathed/InsetMathFrac.h \
409         mathed/InsetMathGrid.h \
410         mathed/InsetMath.h \
411         mathed/InsetMathHull.h \
412         mathed/InsetMathKern.h \
413         mathed/InsetMathLefteqn.h \
414         mathed/InsetMathLim.h \
415         mathed/MathMacro.h \
416         mathed/InsetMathMatrix.h \
417         mathed/InsetMathNest.h \
418         mathed/InsetMathNumber.h \
419         mathed/InsetMathOverset.h \
420         mathed/InsetMathPar.h \
421         mathed/InsetMathPhantom.h \
422         mathed/InsetMathRef.h \
423         mathed/InsetMathRoot.h \
424         mathed/InsetMathScript.h \
425         mathed/InsetMathSize.h \
426         mathed/InsetMathSpace.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/ReplaceData.h \
450         mathed/MathStream.h \
451         mathed/MathSupport.h \
452         mathed/TextPainter.h 
453
454 lyxmathed.cpp:
455         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
456
457 if MONOLITHIC_MATHED
458
459 BUILT_SOURCES += lyxmathed.cpp
460 CLEANFILES += lyxmathed.cpp
461
462 liblyxmathed_la_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
463
464 else
465
466 liblyxmathed_la_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED) 
467
468 endif
469
470 ############################### Insets  ##############################
471
472 noinst_LTLIBRARIES += liblyxinsets.la
473
474 SOURCEFILESINSETS = \
475         insets/ExternalSupport.cpp \
476         insets/ExternalTemplate.cpp \
477         insets/ExternalTransforms.cpp \
478         insets/RenderButton.cpp \
479         insets/RenderGraphic.cpp \
480         insets/RenderPreview.cpp \
481         insets/Inset.cpp \
482         insets/InsetBibitem.cpp \
483         insets/InsetBibtex.cpp \
484         insets/InsetBox.cpp \
485         insets/InsetBranch.cpp \
486         insets/InsetCaption.cpp \
487         insets/InsetCitation.cpp \
488         insets/InsetCollapsable.cpp \
489         insets/InsetCommand.cpp \
490         insets/InsetCommandParams.cpp \
491         insets/InsetERT.cpp \
492         insets/InsetExternal.cpp \
493         insets/InsetFlex.cpp \
494         insets/InsetFloat.cpp \
495         insets/InsetFloatList.cpp \
496         insets/InsetFoot.cpp \
497         insets/InsetFootlike.cpp \
498         insets/InsetGraphicsParams.cpp \
499         insets/InsetGraphics.cpp \
500         insets/InsetHyperlink.cpp \
501         insets/InsetInclude.cpp \
502         insets/InsetIndex.cpp \
503         insets/InsetInfo.cpp \
504         insets/InsetLabel.cpp \
505         insets/InsetLayout.cpp \
506         insets/InsetLine.cpp \
507         insets/InsetListings.cpp \
508         insets/InsetListingsParams.cpp \
509         insets/InsetMarginal.cpp \
510         insets/InsetNewline.cpp \
511         insets/InsetNewpage.cpp \
512         insets/InsetNomencl.cpp \
513         insets/InsetNote.cpp \
514         insets/InsetOptArg.cpp \
515         insets/InsetQuotes.cpp \
516         insets/InsetRef.cpp \
517         insets/InsetSpace.cpp \
518         insets/InsetSpecialChar.cpp \
519         insets/InsetTabular.cpp \
520         insets/InsetText.cpp \
521         insets/InsetTOC.cpp \
522         insets/InsetVSpace.cpp \
523         insets/InsetWrap.cpp
524
525 HEADERFILESINSETS = \
526         insets/ExternalSupport.h \
527         insets/ExternalTemplate.h \
528         insets/ExternalTransforms.h \
529         insets/RenderBase.h \
530         insets/RenderButton.h \
531         insets/RenderGraphic.h \
532         insets/RenderPreview.h \
533         insets/Inset.h \
534         insets/InsetBibitem.h \
535         insets/InsetBibtex.h \
536         insets/InsetBox.h \
537         insets/InsetBranch.h \
538         insets/InsetCaption.h \
539         insets/InsetCitation.h \
540         insets/InsetCode.h \
541         insets/InsetCollapsable.h \
542         insets/InsetCommand.h \
543         insets/InsetCommandParams.h \
544         insets/InsetERT.h \
545         insets/InsetExternal.h \
546         insets/InsetFlex.h \
547         insets/InsetFloat.h \
548         insets/InsetFoot.h \
549         insets/InsetFloatList.h \
550         insets/InsetFootlike.h \
551         insets/InsetGraphicsParams.h \
552         insets/InsetGraphics.h \
553         insets/InsetHyperlink.h \
554         insets/InsetInclude.h \
555         insets/InsetIndex.h \
556         insets/InsetInfo.h \
557         insets/InsetLabel.h \
558         insets/InsetLayout.h \
559         insets/InsetLine.h \
560         insets/InsetListings.h \
561         insets/InsetListingsParams.h \
562         insets/InsetMarginal.h \
563         insets/InsetNewline.h \
564         insets/InsetNewpage.h \
565         insets/InsetNomencl.h \
566         insets/InsetNote.h \
567         insets/InsetOptArg.h \
568         insets/InsetQuotes.h \
569         insets/InsetRef.h \
570         insets/InsetSpace.h \
571         insets/InsetSpecialChar.h \
572         insets/InsetTabular.h \
573         insets/InsetText.h \
574         insets/InsetTOC.h \
575         insets/InsetVSpace.h \
576         insets/InsetWrap.h
577
578 #       insets/InsetList.cpp \
579 #       insets/InsetList.h \
580 #       insets/InsetSection.h \
581 #       insets/InsetSection.cpp
582
583 lyxinsets.cpp:
584         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
585
586 if MONOLITHIC_INSETS
587
588 BUILT_SOURCES += lyxinsets.cpp
589 CLEANFILES += lyxinsets.cpp
590
591 liblyxinsets_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
592
593 else
594
595 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
596
597 endif