1 include $(top_srcdir)/config/common.am
3 ############################### Core ##############################
5 DISTCLEANFILES += libintl.h
7 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS) $(HUNSPELL_CFLAGS)
8 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_INCLUDES)
10 if BUILD_CLIENT_SUBDIR
14 SUBDIRS = support frontends . $(CLIENT) tex2lyx
18 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) \
19 $(ENCHANT_LIBS) $(HUNSPELL_LIBS) @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
21 noinst_LIBRARIES = liblyxcore.a
28 frontends/liblyxfrontends.a \
29 frontends/qt4/liblyxqt4.a \
31 support/liblyxsupport.a \
38 cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
39 windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
43 lyx_LDFLAGS = -framework AppKit -framework ApplicationServices
48 BUILT_SOURCES = $(PCH_FILE)
51 APPLESPELL = AppleSpellChecker.cpp AppleSpellChecker.h
55 ASPELL = AspellChecker.cpp AspellChecker.h
56 PWL = PersonalWordList.cpp PersonalWordList.h
60 ENCHANT = EnchantChecker.cpp EnchantChecker.h
61 PWL = PersonalWordList.cpp PersonalWordList.h
65 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
66 PWL = PersonalWordList.cpp PersonalWordList.h
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.
96 lyx_SOURCES += lyxwinres.rc
148 LayoutModuleList.cpp \
165 output_plaintext.cpp \
167 ParagraphMetrics.cpp \
168 ParagraphParameters.cpp \
273 ParagraphParameters.h \
304 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
308 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
309 CLEANFILES += lyxcore.cpp
311 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
315 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
319 ######################### Qt stuff ##############################
321 MOCHEADER = Compare.h
325 MOCHEADER += Server.h
330 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
332 BUILT_SOURCES += $(MOCEDFILES)
333 CLEANFILES += $(MOCEDFILES)
336 $(MOC4) $(MOCFLAG) -o $@ $<
338 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
340 ############################### Graphics ##############################
342 noinst_LIBRARIES += liblyxgraphics.a
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
365 ############################### Mathed ##############################
367 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
369 noinst_LIBRARIES += liblyxmathed.a
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
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 \
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 \
496 mathed/MathAutoCorrect.h \
498 mathed/MathCompletionList.h \
499 mathed/MathExtern.h \
500 mathed/MathFactory.h \
501 mathed/MathGridInfo.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 \
514 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
518 BUILT_SOURCES += lyxmathed.cpp
519 CLEANFILES += lyxmathed.cpp
521 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
525 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
529 ############################### Insets ##############################
531 noinst_LIBRARIES += liblyxinsets.a
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 \
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 \
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 \
598 insets/InsetArgument.h \
599 insets/InsetBibitem.h \
600 insets/InsetBibtex.h \
602 insets/InsetBranch.h \
603 insets/InsetCaption.h \
604 insets/InsetCitation.h \
606 insets/InsetCollapsable.h \
607 insets/InsetCommand.h \
608 insets/InsetCommandParams.h \
610 insets/InsetExternal.h \
612 insets/InsetFloat.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 \
623 insets/InsetIPAMacro.h \
624 insets/InsetPreview.h \
625 insets/InsetLabel.h \
626 insets/InsetLayout.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 \
635 insets/InsetPhantom.h \
636 insets/InsetQuotes.h \
638 insets/InsetScript.h \
639 insets/InsetSpace.h \
640 insets/InsetSpecialChar.h \
641 insets/InsetTabular.h \
644 insets/InsetVSpace.h \
647 # insets/InsetList.cpp \
648 # insets/InsetList.h \
649 # insets/InsetSection.h \
650 # insets/InsetSection.cpp
653 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
657 BUILT_SOURCES += lyxinsets.cpp
658 CLEANFILES += lyxinsets.cpp
660 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
664 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)