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