]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
fix warning on possibly(?) unused precompiled headers due to different -fPic settings...
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 DISTCLEANFILES += config.h libintl.h version.cpp stamp-version version.cpp-tmp
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 stamp-h.in version.cpp.in \
14         Section.h \
15         Section.cpp \
16         Variables.cpp \
17         Variables.h \
18         paper.h \
19         pch.h
20
21 LYX_PRE_LIBS = liblyxmathed.la liblyxinsets.la \
22         frontends/liblyxfrontends.la
23
24 LYX_POST_LIBS = frontends/controllers/liblyxcontrollers.la \
25         liblyxgraphics.la \
26         support/liblyxsupport.la
27
28 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
29
30 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
31
32 pkglib_LTLIBRARIES = liblyxcore.la
33 noinst_PROGRAMS = $(FRONTENDS_PROGS)
34 EXTRA_PROGRAMS = lyx-qt4
35
36 lyx_qt4_LDADD = liblyxcore.la  $(LYX_PRE_LIBS) \
37         frontends/qt4/liblyxqt4.la $(LYX_POST_LIBS) $(OTHERLIBS) $(QT4_LIB) 
38 lyx_qt4_SOURCES = main.cpp
39
40 lyx$(EXEEXT): $(FRONTENDS_PROGS)
41         rm -f $@
42         $(LN_S) $< $@
43
44 #lyx_LDFLAGS=-Wl,-O1
45
46 BUILT_SOURCES = $(PCH_FILE) version.cpp
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
59 liblyxcore_la_SOURCES = \
60         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
61         Author.cpp \
62         Author.h \
63         Bidi.cpp \
64         Bidi.h \
65         boost.cpp \
66         Box.cpp \
67         Box.h \
68         BranchList.cpp \
69         BranchList.h \
70         Buffer.cpp \
71         buffer_funcs.cpp \
72         buffer_funcs.h \
73         Buffer.h \
74         BufferList.cpp \
75         BufferList.h \
76         BufferParams.cpp \
77         BufferParams.h \
78         BufferView.cpp \
79         bufferview_funcs.cpp \
80         bufferview_funcs.h \
81         BufferView.h \
82         Bullet.cpp \
83         Bullet.h \
84         Changes.cpp \
85         Changes.h \
86         Chktex.cpp \
87         Chktex.h \
88         Color.cpp \
89         Color.h \
90         config.h.in \
91         ConverterCache.cpp \
92         ConverterCache.h \
93         Converter.cpp \
94         Converter.h \
95         CoordCache.cpp \
96         CoordCache.h \
97         Counters.cpp \
98         Counters.h \
99         Cursor.cpp \
100         Cursor.h \
101         CursorSlice.cpp \
102         CursorSlice.h \
103         CutAndPaste.cpp \
104         CutAndPaste.h \
105         debug.cpp \
106         debug.h \
107         DepTable.cpp \
108         DepTable.h \
109         Dimension.cpp \
110         Dimension.h \
111         DispatchResult.h \
112         DocIterator.cpp \
113         DocIterator.h \
114         Encoding.cpp \
115         Encoding.h \
116         ErrorList.cpp \
117         ErrorList.h \
118         Exporter.cpp \
119         Exporter.h \
120         factory.cpp \
121         factory.h \
122         Floating.cpp \
123         Floating.h \
124         FloatList.cpp \
125         FloatList.h \
126         Font.cpp \
127         Font.h \
128         FontIterator.cpp \
129         FontIterator.h \
130         Format.cpp \
131         Format.h \
132         FuncRequest.cpp \
133         FuncRequest.h \
134         FuncStatus.cpp \
135         FuncStatus.h \
136         gettext.cpp \
137         gettext.h \
138         Graph.cpp \
139         Graph.h \
140         Importer.cpp \
141         Importer.h \
142         InsetIterator.cpp \
143         InsetIterator.h \
144         InsetList.cpp \
145         InsetList.h \
146         Intl.cpp \
147         Intl.h \
148         KeyMap.cpp \
149         KeyMap.h \
150         KeySequence.cpp \
151         KeySequence.h \
152         Language.cpp \
153         Language.h \
154         LaTeX.cpp \
155         LaTeXFeatures.cpp \
156         LaTeXFeatures.h \
157         LaTeX.h \
158         Layout.cpp \
159         Layout.h \
160         Length.cpp \
161         Length.h \
162         lengthcommon.cpp \
163         lengthcommon.h \
164         Lexer.cpp \
165         Lexer.h \
166         lfuns.h \
167         LyXAction.cpp \
168         LyXAction.h \
169         callback.cpp \
170         callback.h \
171         LyX.cpp \
172         lyxfind.cpp \
173         lyxfind.h \
174         LyXFunc.cpp \
175         LyXFunc.h \
176         LyX.h \
177         lyxlayout_ptr_fwd.h \
178         LyXRC.cpp \
179         LyXRC.h \
180         Server.cpp \
181         Server.h \
182         ServerSocket.cpp \
183         ServerSocket.h \
184         LyXVC.cpp \
185         LyXVC.h \
186         MenuBackend.cpp \
187         MenuBackend.h \
188         Messages.cpp \
189         Messages.h \
190         MetricsInfo.cpp \
191         MetricsInfo.h \
192         Mover.cpp \
193         Mover.h \
194         output.cpp \
195         output_docbook.cpp \
196         output_docbook.h \
197         output.h \
198         output_latex.cpp \
199         output_latex.h \
200         OutputParams.cpp \
201         OutputParams.h \
202         output_plaintext.cpp \
203         output_plaintext.h \
204         paper.h \
205         Paragraph.cpp \
206         paragraph_funcs.cpp \
207         paragraph_funcs.h \
208         Paragraph.h \
209         ParagraphList.h \
210         ParagraphMetrics.cpp \
211         ParagraphMetrics.h \
212         ParagraphParameters.cpp \
213         ParagraphParameters.h \
214         ParIterator.cpp \
215         ParIterator.h \
216         PrinterParams.cpp \
217         PrinterParams.h \
218         Row.cpp \
219         Row.h \
220         rowpainter.cpp \
221         rowpainter.h \
222         Session.cpp \
223         Session.h \
224         sgml.cpp \
225         sgml.h \
226         Spacing.cpp \
227         Spacing.h \
228         SpellBase.h \
229         TexRow.cpp \
230         TexRow.h \
231         TexStream.cpp \
232         TexStream.h \
233         Text.h \
234         Text.cpp \
235         Text2.cpp \
236         Text3.cpp \
237         TextClass.cpp \
238         TextClass.h \
239         TextClassList.cpp \
240         TextClassList.h \
241         TextMetrics.cpp \
242         TextMetrics.h \
243         Thesaurus.cpp \
244         Thesaurus.h \
245         TocBackend.cpp \
246         TocBackend.h \
247         toc.cpp \
248         toc.h \
249         ToolbarBackend.cpp \
250         ToolbarBackend.h \
251         Trans.cpp \
252         Trans.h \
253         Undo.cpp \
254         Undo.h \
255         update_flags.h \
256         VCBackend.cpp \
257         VCBackend.h \
258         version.cpp \
259         version.h \
260         WordLangTuple.h \
261         VSpace.cpp \
262         VSpace.h
263
264 version.cpp: stamp-version
265         @:
266
267 stamp-version: version.cpp-tmp
268         if cmp -s $< version.cpp ; then \
269                 : ;\
270         else \
271                 rm -f version.cpp ;\
272                 cp $< version.cpp ;\
273         fi
274         echo timestamp > $@
275
276
277 ############################### Graphics ##############################
278
279 pkglib_LTLIBRARIES += liblyxgraphics.la
280
281 liblyxgraphics_la_SOURCES = \
282         graphics/GraphicsCache.h \
283         graphics/GraphicsCache.cpp \
284         graphics/GraphicsCacheItem.h \
285         graphics/GraphicsCacheItem.cpp \
286         graphics/GraphicsConverter.h \
287         graphics/GraphicsConverter.cpp \
288         graphics/GraphicsImage.h \
289         graphics/GraphicsImage.cpp \
290         graphics/GraphicsLoader.h \
291         graphics/GraphicsLoader.cpp \
292         graphics/GraphicsParams.cpp \
293         graphics/GraphicsParams.h \
294         graphics/LoaderQueue.h \
295         graphics/LoaderQueue.cpp \
296         graphics/GraphicsTypes.h \
297         graphics/GraphicsTypes.cpp \
298         graphics/PreviewImage.h \
299         graphics/PreviewImage.cpp \
300         graphics/PreviewLoader.h \
301         graphics/PreviewLoader.cpp \
302         graphics/Previews.h \
303         graphics/Previews.cpp
304
305
306 ############################### Mathed  ##############################
307
308 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
309
310 pkglib_LTLIBRARIES += liblyxmathed.la
311
312 liblyxmathed_la_SOURCES = \
313         mathed/InsetMathAMSArray.cpp \
314         mathed/InsetMathAMSArray.h \
315         mathed/InsetMathArray.cpp \
316         mathed/InsetMathArray.h \
317         mathed/InsetMathBig.cpp \
318         mathed/InsetMathBig.h \
319         mathed/InsetMathBinom.cpp \
320         mathed/InsetMathBinom.h \
321         mathed/InsetMathBoldSymbol.cpp \
322         mathed/InsetMathBoldSymbol.h \
323         mathed/InsetMathBox.cpp \
324         mathed/InsetMathBoxed.cpp \
325         mathed/InsetMathBoxed.h \
326         mathed/InsetMathBox.h \
327         mathed/InsetMathBrace.cpp \
328         mathed/InsetMathBrace.h \
329         mathed/InsetMath.cpp \
330         mathed/InsetMathCases.cpp \
331         mathed/InsetMathCases.h \
332         mathed/InsetMathChar.cpp \
333         mathed/InsetMathChar.h \
334         mathed/InsetMathColor.cpp \
335         mathed/InsetMathColor.h \
336         mathed/CommandInset.cpp \
337         mathed/CommandInset.h \
338         mathed/InsetMathComment.cpp \
339         mathed/InsetMathComment.h \
340         mathed/InsetMathDecoration.cpp \
341         mathed/InsetMathDecoration.h \
342         mathed/InsetMathDelim.cpp \
343         mathed/InsetMathDelim.h \
344         mathed/InsetMathDFrac.cpp \
345         mathed/InsetMathDFrac.h \
346         mathed/InsetMathDiff.cpp \
347         mathed/InsetMathDiff.h \
348         mathed/InsetMathDots.cpp \
349         mathed/InsetMathDots.h \
350         mathed/InsetMathEnv.cpp \
351         mathed/InsetMathEnv.h \
352         mathed/InsetMathExFunc.cpp \
353         mathed/InsetMathExFunc.h \
354         mathed/InsetMathExInt.cpp \
355         mathed/InsetMathExInt.h \
356         mathed/InsetMathFBox.cpp \
357         mathed/InsetMathFBox.h \
358         mathed/InsetMathFont.cpp \
359         mathed/InsetMathFont.h \
360         mathed/InsetMathFontOld.cpp \
361         mathed/InsetMathFontOld.h \
362         mathed/InsetMathFracBase.cpp \
363         mathed/InsetMathFracBase.h \
364         mathed/InsetMathFrac.cpp \
365         mathed/InsetMathFrac.h \
366         mathed/InsetMathFrameBox.cpp \
367         mathed/InsetMathFrameBox.h \
368         mathed/InsetMathGrid.cpp \
369         mathed/InsetMathGrid.h \
370         mathed/InsetMath.h \
371         mathed/InsetMathHull.cpp \
372         mathed/InsetMathHull.h \
373         mathed/InsetMathKern.cpp \
374         mathed/InsetMathKern.h \
375         mathed/InsetMathLefteqn.cpp \
376         mathed/InsetMathLefteqn.h \
377         mathed/InsetMathLim.cpp \
378         mathed/InsetMathLim.h \
379         mathed/MathMacro.cpp \
380         mathed/MathMacro.h \
381         mathed/InsetMathMakebox.cpp \
382         mathed/InsetMathMakebox.h \
383         mathed/InsetMathMatrix.cpp \
384         mathed/InsetMathMatrix.h \
385         mathed/InsetMathNest.cpp \
386         mathed/InsetMathNest.h \
387         mathed/InsetMathNumber.cpp \
388         mathed/InsetMathNumber.h \
389         mathed/InsetMathOverset.cpp \
390         mathed/InsetMathOverset.h \
391         mathed/InsetMathPar.cpp \
392         mathed/InsetMathPar.h \
393         mathed/InsetMathPhantom.cpp \
394         mathed/InsetMathPhantom.h \
395         mathed/InsetMathRef.cpp \
396         mathed/InsetMathRef.h \
397         mathed/InsetMathRoot.cpp \
398         mathed/InsetMathRoot.h \
399         mathed/InsetMathScript.cpp \
400         mathed/InsetMathScript.h \
401         mathed/InsetMathSize.cpp \
402         mathed/InsetMathSize.h \
403         mathed/InsetMathSpace.cpp \
404         mathed/InsetMathSpace.h \
405         mathed/InsetMathSplit.cpp \
406         mathed/InsetMathSplit.h \
407         mathed/InsetMathSqrt.cpp \
408         mathed/InsetMathSqrt.h \
409         mathed/InsetMathStackrel.cpp \
410         mathed/InsetMathStackrel.h \
411         mathed/InsetMathString.cpp \
412         mathed/InsetMathString.h \
413         mathed/InsetMathSubstack.cpp \
414         mathed/InsetMathSubstack.h \
415         mathed/InsetMathSymbol.cpp \
416         mathed/InsetMathSymbol.h \
417         mathed/InsetMathTabular.cpp \
418         mathed/InsetMathTabular.h \
419         mathed/InsetMathTFrac.cpp \
420         mathed/InsetMathTFrac.h \
421         mathed/InsetMathUnderset.cpp \
422         mathed/InsetMathUnderset.h \
423         mathed/InsetMathUnknown.cpp \
424         mathed/InsetMathUnknown.h \
425         mathed/InsetMathXArrow.cpp \
426         mathed/InsetMathXArrow.h \
427         mathed/InsetMathXYMatrix.cpp \
428         mathed/InsetMathXYMatrix.h \
429         mathed/MathAtom.cpp \
430         mathed/MathAtom.h \
431         mathed/MathAutoCorrect.cpp \
432         mathed/MathAutoCorrect.h \
433         mathed/MathData.cpp \
434         mathed/MathData.h \
435         mathed/MathExtern.cpp \
436         mathed/MathExtern.h \
437         mathed/MathFactory.cpp \
438         mathed/MathFactory.h \
439         mathed/MathGridInfo.h \
440         mathed/MathMacroArgument.cpp \
441         mathed/MathMacroArgument.h \
442         mathed/MacroTable.cpp \
443         mathed/MacroTable.h \
444         mathed/MathMacroTemplate.cpp \
445         mathed/MathMacroTemplate.h \
446         mathed/MathParser.cpp \
447         mathed/MathParser.h \
448         mathed/ReplaceData.h \
449         mathed/MathStream.cpp \
450         mathed/MathStream.h \
451         mathed/MathSupport.cpp \
452         mathed/MathSupport.h \
453         mathed/TextPainter.cpp \
454         mathed/TextPainter.h 
455 #       mathed/InsetMathMBox.cpp
456 #       mathed/InsetMathMBox.h
457
458 ############################### Insets  ##############################
459
460 pkglib_LTLIBRARIES += liblyxinsets.la
461
462 EXTRA_DIST += \
463         insets/InsetTheorem.cpp \
464         insets/InsetTheorem.h
465
466 liblyxinsets_la_SOURCES = \
467         insets/MailInset.cpp \
468         insets/MailInset.h \
469         insets/ExternalSupport.cpp \
470         insets/ExternalSupport.h \
471         insets/ExternalTemplate.cpp \
472         insets/ExternalTemplate.h \
473         insets/ExternalTransforms.cpp \
474         insets/ExternalTransforms.h \
475         insets/RenderBase.h \
476         insets/RenderButton.cpp \
477         insets/RenderButton.h \
478         insets/RenderGraphic.cpp \
479         insets/RenderGraphic.h \
480         insets/RenderPreview.cpp \
481         insets/RenderPreview.h \
482         insets/Inset.h \
483         insets/Inset.cpp \
484         insets/InsetBibitem.cpp \
485         insets/InsetBibitem.h \
486         insets/InsetBibtex.cpp \
487         insets/InsetBibtex.h \
488         insets/InsetBox.cpp \
489         insets/InsetBox.h \
490         insets/InsetBranch.cpp \
491         insets/InsetBranch.h \
492         insets/InsetCaption.cpp \
493         insets/InsetCaption.h \
494         insets/InsetCharStyle.cpp \
495         insets/InsetCharStyle.h \
496         insets/InsetCitation.cpp \
497         insets/InsetCitation.h \
498         insets/InsetCollapsable.cpp \
499         insets/InsetCollapsable.h \
500         insets/InsetCommand.cpp \
501         insets/InsetCommand.h \
502         insets/InsetCommandParams.cpp \
503         insets/InsetCommandParams.h \
504         insets/InsetEnvironment.cpp \
505         insets/InsetEnvironment.h \
506         insets/InsetERT.cpp \
507         insets/InsetERT.h \
508         insets/InsetExternal.cpp \
509         insets/InsetExternal.h \
510         insets/InsetFloat.h \
511         insets/InsetFloat.cpp \
512         insets/InsetFloatList.cpp \
513         insets/InsetFloatList.h \
514         insets/InsetFoot.cpp \
515         insets/InsetFoot.h \
516         insets/InsetFootlike.cpp \
517         insets/InsetFootlike.h \
518         insets/InsetGraphicsParams.h \
519         insets/InsetGraphicsParams.cpp \
520         insets/InsetGraphics.cpp \
521         insets/InsetGraphics.h \
522         insets/InsetHFill.cpp \
523         insets/InsetHFill.h \
524         insets/InsetInclude.cpp \
525         insets/InsetInclude.h \
526         insets/InsetIndex.cpp \
527         insets/InsetIndex.h \
528         insets/InsetLabel.cpp \
529         insets/InsetLabel.h \
530         insets/InsetLine.cpp \
531         insets/InsetLine.h \
532         insets/InsetListings.h \
533         insets/InsetListings.cpp \
534         insets/InsetListingsParams.h \
535         insets/InsetListingsParams.cpp \
536         insets/InsetMarginal.h \
537         insets/InsetMarginal.cpp \
538         insets/InsetNewline.cpp \
539         insets/InsetNewline.h \
540         insets/InsetNomencl.cpp \
541         insets/InsetNomencl.h \
542         insets/InsetNote.cpp \
543         insets/InsetNote.h \
544         insets/InsetOptArg.cpp \
545         insets/InsetOptArg.h \
546         insets/InsetPagebreak.cpp \
547         insets/InsetPagebreak.h \
548         insets/InsetQuotes.cpp \
549         insets/InsetQuotes.h \
550         insets/InsetRef.cpp \
551         insets/InsetRef.h \
552         insets/InsetSpace.cpp \
553         insets/InsetSpace.h \
554         insets/InsetSpecialChar.cpp \
555         insets/InsetSpecialChar.h \
556         insets/InsetTabular.cpp \
557         insets/InsetTabular.h \
558         insets/InsetText.cpp \
559         insets/InsetText.h \
560         insets/InsetTOC.cpp \
561         insets/InsetTOC.h \
562         insets/InsetUrl.cpp \
563         insets/InsetUrl.h \
564         insets/InsetVSpace.cpp \
565         insets/InsetVSpace.h \
566         insets/InsetWrap.h \
567         insets/InsetWrap.cpp
568
569 #       insets/insetlist.C \
570 #       insets/insetlist.h \
571 #       insets/insetsection.h \
572 #       insets/insetsection.C \
573 #       insets/InsetTheorem.cpp \
574 #       insets/InsetTheorem.h
575