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