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