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