1 include $(top_srcdir)/config/common.am
3 ############################### Core ##############################
5 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS) $(HUNSPELL_CFLAGS)
6 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
12 SUBDIRS = support frontends . $(CLIENT) tex2lyx
16 OTHERLIBS = $(BOOST_LIBS) $(MYTHES_LIBS) $(ENCHANT_LIBS) $(HUNSPELL_LIBS) \
17 @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
19 noinst_LIBRARIES = liblyxcore.a
26 frontends/liblyxfrontends.a \
27 frontends/qt4/liblyxqt4.a \
29 support/liblyxsupport.a \
36 cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
37 windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
41 lyx_LDFLAGS = -framework AppKit -framework ApplicationServices
46 BUILT_SOURCES = $(PCH_FILE)
49 APPLESPELL = AppleSpellChecker.cpp AppleSpellChecker.h
53 ASPELL = AspellChecker.cpp AspellChecker.h
54 PWL = PersonalWordList.cpp PersonalWordList.h
58 ENCHANT = EnchantChecker.cpp EnchantChecker.h
59 PWL = PersonalWordList.cpp PersonalWordList.h
63 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
64 PWL = PersonalWordList.cpp PersonalWordList.h
67 # These four objects are linked as object files as they are not
68 # referenced within the core and therefore are not picked up
69 # by the linker without looping over libs. We do not want that,
70 # and in fact libtools seems not able to do that.
94 lyx_SOURCES += lyxwinres.rc
122 BufferEncodings.cpp \
147 LayoutModuleList.cpp \
164 output_plaintext.cpp \
166 ParagraphMetrics.cpp \
167 ParagraphParameters.cpp \
272 ParagraphParameters.h \
302 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
306 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
307 CLEANFILES += lyxcore.cpp
309 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
313 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
317 ######################### Qt stuff ##############################
319 MOCHEADER = Compare.h
323 MOCHEADER += Server.h
328 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
330 BUILT_SOURCES += $(MOCEDFILES)
331 CLEANFILES += $(MOCEDFILES)
334 $(MOC4) $(MOCFLAG) -o $@ $<
336 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
338 ############################### Graphics ##############################
340 noinst_LIBRARIES += liblyxgraphics.a
342 liblyxgraphics_a_SOURCES = \
343 graphics/epstools.h \
344 graphics/epstools.cpp \
345 graphics/GraphicsCache.h \
346 graphics/GraphicsCache.cpp \
347 graphics/GraphicsCacheItem.h \
348 graphics/GraphicsCacheItem.cpp \
349 graphics/GraphicsConverter.h \
350 graphics/GraphicsConverter.cpp \
351 graphics/GraphicsImage.h \
352 graphics/GraphicsLoader.h \
353 graphics/GraphicsLoader.cpp \
354 graphics/GraphicsParams.cpp \
355 graphics/GraphicsParams.h \
356 graphics/GraphicsTypes.h \
357 graphics/PreviewImage.h \
358 graphics/PreviewImage.cpp \
359 graphics/PreviewLoader.h \
360 graphics/PreviewLoader.cpp
363 ############################### Mathed ##############################
365 noinst_LIBRARIES += liblyxmathed.a
367 SOURCEFILESMATHED = \
368 mathed/CommandInset.cpp \
369 mathed/InsetMathAMSArray.cpp \
370 mathed/InsetMathArray.cpp \
371 mathed/InsetMathBig.cpp \
372 mathed/InsetMathBoldSymbol.cpp \
373 mathed/InsetMathBox.cpp \
374 mathed/InsetMathBrace.cpp \
375 mathed/InsetMath.cpp \
376 mathed/InsetMathCases.cpp \
377 mathed/InsetMathChar.cpp \
378 mathed/InsetMathColor.cpp \
379 mathed/InsetMathComment.cpp \
380 mathed/InsetMathDecoration.cpp \
381 mathed/InsetMathDecoration.h \
382 mathed/InsetMathDelim.cpp \
383 mathed/InsetMathDiff.cpp \
384 mathed/InsetMathDots.cpp \
385 mathed/InsetMathEnsureMath.cpp \
386 mathed/InsetMathEnv.cpp \
387 mathed/InsetMathExFunc.cpp \
388 mathed/InsetMathExInt.cpp \
389 mathed/InsetMathFont.cpp \
390 mathed/InsetMathFontOld.cpp \
391 mathed/InsetMathFrac.cpp \
392 mathed/InsetMathGrid.cpp \
393 mathed/InsetMathHull.cpp \
394 mathed/InsetMathKern.cpp \
395 mathed/InsetMathLefteqn.cpp \
396 mathed/InsetMathLim.cpp \
397 mathed/InsetMathCancel.cpp \
398 mathed/InsetMathCancelto.cpp \
399 mathed/InsetMathMatrix.cpp \
400 mathed/InsetMathNest.cpp \
401 mathed/InsetMathNumber.cpp \
402 mathed/InsetMathOverset.cpp \
403 mathed/InsetMathPar.cpp \
404 mathed/InsetMathPhantom.cpp \
405 mathed/InsetMathRef.cpp \
406 mathed/InsetMathRoot.cpp \
407 mathed/InsetMathScript.cpp \
408 mathed/InsetMathSideset.cpp \
409 mathed/InsetMathSize.cpp \
410 mathed/InsetMathSpace.cpp \
411 mathed/InsetMathSpecialChar.cpp \
412 mathed/InsetMathSplit.cpp \
413 mathed/InsetMathSqrt.cpp \
414 mathed/InsetMathStackrel.cpp \
415 mathed/InsetMathString.cpp \
416 mathed/InsetMathSubstack.cpp \
417 mathed/InsetMathSymbol.cpp \
418 mathed/InsetMathTabular.cpp \
419 mathed/InsetMathUnderset.cpp \
420 mathed/InsetMathUnknown.cpp \
421 mathed/InsetMathXArrow.cpp \
422 mathed/InsetMathXYMatrix.cpp \
423 mathed/InsetMathDiagram.cpp \
424 mathed/MathAtom.cpp \
425 mathed/MathAutoCorrect.cpp \
426 mathed/MathData.cpp \
427 mathed/MathExtern.cpp \
428 mathed/MathFactory.cpp \
429 mathed/MathMacro.cpp \
430 mathed/MathMacroArgument.cpp \
431 mathed/MacroTable.cpp \
432 mathed/MathMacroTemplate.cpp \
433 mathed/MathParser.cpp \
434 mathed/MathStream.cpp \
435 mathed/MathSupport.cpp \
436 mathed/TextPainter.cpp
438 HEADERFILESMATHED = \
439 mathed/CommandInset.h \
440 mathed/InsetMathAMSArray.h \
441 mathed/InsetMathArray.h \
442 mathed/InsetMathBig.h \
443 mathed/InsetMathBoldSymbol.h \
444 mathed/InsetMathBox.h \
445 mathed/InsetMathBrace.h \
446 mathed/InsetMathCancel.h \
447 mathed/InsetMathCancelto.h \
448 mathed/InsetMathCases.h \
449 mathed/InsetMathChar.h \
450 mathed/InsetMathColor.h \
451 mathed/InsetMathComment.h \
452 mathed/InsetMathDelim.h \
453 mathed/InsetMathDiff.h \
454 mathed/InsetMathDots.h \
455 mathed/InsetMathEnsureMath.h \
456 mathed/InsetMathEnv.h \
457 mathed/InsetMathExFunc.h \
458 mathed/InsetMathExInt.h \
459 mathed/InsetMathFont.h \
460 mathed/InsetMathFontOld.h \
461 mathed/InsetMathFrac.h \
462 mathed/InsetMathGrid.h \
464 mathed/InsetMathHull.h \
465 mathed/InsetMathKern.h \
466 mathed/InsetMathLefteqn.h \
467 mathed/InsetMathLim.h \
468 mathed/InsetMathMatrix.h \
469 mathed/InsetMathNest.h \
470 mathed/InsetMathNumber.h \
471 mathed/InsetMathOverset.h \
472 mathed/InsetMathPar.h \
473 mathed/InsetMathPhantom.h \
474 mathed/InsetMathRef.h \
475 mathed/InsetMathRoot.h \
476 mathed/InsetMathScript.h \
477 mathed/InsetMathSideset.h \
478 mathed/InsetMathSize.h \
479 mathed/InsetMathSpace.h \
480 mathed/InsetMathSpecialChar.h \
481 mathed/InsetMathSplit.h \
482 mathed/InsetMathSqrt.h \
483 mathed/InsetMathStackrel.h \
484 mathed/InsetMathString.h \
485 mathed/InsetMathSubstack.h \
486 mathed/InsetMathSymbol.h \
487 mathed/InsetMathTabular.h \
488 mathed/InsetMathUnderset.h \
489 mathed/InsetMathUnknown.h \
490 mathed/InsetMathXArrow.h \
491 mathed/InsetMathXYMatrix.h \
492 mathed/InsetMathDiagram.h \
494 mathed/MathAutoCorrect.h \
496 mathed/MathCompletionList.h \
497 mathed/MathExtern.h \
498 mathed/MathFactory.h \
500 mathed/MathMacroArgument.h \
501 mathed/MacroTable.h \
502 mathed/MathMacroTemplate.h \
503 mathed/MathParser.h \
504 mathed/MathParser_flags.h \
505 mathed/ReplaceData.h \
506 mathed/MathStream.h \
507 mathed/MathSupport.h \
511 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
515 BUILT_SOURCES += lyxmathed.cpp
516 CLEANFILES += lyxmathed.cpp
518 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
522 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
526 ############################### Insets ##############################
528 noinst_LIBRARIES += liblyxinsets.a
530 SOURCEFILESINSETS = \
531 insets/ExternalSupport.cpp \
532 insets/ExternalTemplate.cpp \
533 insets/ExternalTransforms.cpp \
534 insets/RenderButton.cpp \
535 insets/RenderGraphic.cpp \
536 insets/RenderPreview.cpp \
538 insets/InsetArgument.cpp \
539 insets/InsetBibitem.cpp \
540 insets/InsetBibtex.cpp \
541 insets/InsetBox.cpp \
542 insets/InsetBranch.cpp \
543 insets/InsetCaption.cpp \
544 insets/InsetCitation.cpp \
545 insets/InsetCollapsable.cpp \
546 insets/InsetCommand.cpp \
547 insets/InsetCommandParams.cpp \
548 insets/InsetERT.cpp \
549 insets/InsetExternal.cpp \
550 insets/InsetFlex.cpp \
551 insets/InsetFloat.cpp \
552 insets/InsetFloatList.cpp \
553 insets/InsetFoot.cpp \
554 insets/InsetFootlike.cpp \
555 insets/InsetGraphicsParams.cpp \
556 insets/InsetGraphics.cpp \
557 insets/InsetHyperlink.cpp \
558 insets/InsetInclude.cpp \
559 insets/InsetIndex.cpp \
560 insets/InsetInfo.cpp \
561 insets/InsetIPA.cpp \
562 insets/InsetIPAMacro.cpp \
563 insets/InsetLabel.cpp \
564 insets/InsetLayout.cpp \
565 insets/InsetLine.cpp \
566 insets/InsetListings.cpp \
567 insets/InsetListingsParams.cpp \
568 insets/InsetMarginal.cpp \
569 insets/InsetNewline.cpp \
570 insets/InsetNewpage.cpp \
571 insets/InsetNomencl.cpp \
572 insets/InsetNote.cpp \
573 insets/InsetPhantom.cpp \
574 insets/InsetPreview.cpp \
575 insets/InsetQuotes.cpp \
576 insets/InsetRef.cpp \
577 insets/InsetScript.cpp \
578 insets/InsetSeparator.cpp \
579 insets/InsetSpace.cpp \
580 insets/InsetSpecialChar.cpp \
581 insets/InsetTabular.cpp \
582 insets/InsetText.cpp \
583 insets/InsetTOC.cpp \
584 insets/InsetVSpace.cpp \
587 HEADERFILESINSETS = \
588 insets/ExternalSupport.h \
589 insets/ExternalTemplate.h \
590 insets/ExternalTransforms.h \
591 insets/RenderBase.h \
592 insets/RenderButton.h \
593 insets/RenderGraphic.h \
594 insets/RenderPreview.h \
596 insets/InsetArgument.h \
597 insets/InsetBibitem.h \
598 insets/InsetBibtex.h \
600 insets/InsetBranch.h \
601 insets/InsetCaption.h \
602 insets/InsetCitation.h \
604 insets/InsetCollapsable.h \
605 insets/InsetCommand.h \
606 insets/InsetCommandParams.h \
608 insets/InsetExternal.h \
610 insets/InsetFloat.h \
612 insets/InsetFloatList.h \
613 insets/InsetFootlike.h \
614 insets/InsetGraphicsParams.h \
615 insets/InsetGraphics.h \
616 insets/InsetHyperlink.h \
617 insets/InsetInclude.h \
618 insets/InsetIndex.h \
621 insets/InsetIPAMacro.h \
622 insets/InsetPreview.h \
623 insets/InsetLabel.h \
624 insets/InsetLayout.h \
626 insets/InsetListings.h \
627 insets/InsetListingsParams.h \
628 insets/InsetMarginal.h \
629 insets/InsetNewline.h \
630 insets/InsetNewpage.h \
631 insets/InsetNomencl.h \
633 insets/InsetPhantom.h \
634 insets/InsetQuotes.h \
636 insets/InsetScript.h \
637 insets/InsetSeparator.h \
638 insets/InsetSpace.h \
639 insets/InsetSpecialChar.h \
640 insets/InsetTabular.h \
643 insets/InsetVSpace.h \
646 # insets/InsetList.cpp \
647 # insets/InsetList.h \
648 # insets/InsetSection.h \
649 # insets/InsetSection.cpp
652 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
656 BUILT_SOURCES += lyxinsets.cpp
657 CLEANFILES += lyxinsets.cpp
659 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
663 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
668 ############################## Tests ##################################
673 alltests: check alltests-recursive
675 alltests-recursive: check_layout
676 @srcdir=$(srcdir) $(srcdir)/tests/test_layout; \
677 if test $$? -eq 0; then \
678 echo -e "====================\nlayout tests passed.\n===================="; \
680 echo -e "====================\nlayout tests failed.\n===================="; \
682 cd tex2lyx; $(MAKE) alltests-recursive
685 cd tex2lyx; $(MAKE) updatetests
691 ADD_FRAMEWORKS = -framework QtGui -framework QtCore -framework AppKit -framework ApplicationServices
694 check_layout_CPPFLAGS = $(AM_CPPFLAGS)
695 check_layout_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT4_CORE_LIBS) $(LIBSHLWAPI)
696 check_layout_LDFLAGS = $(QT4_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
697 check_layout_SOURCES = \
698 insets/InsetLayout.cpp \
710 tests/check_layout.cpp \
712 tests/dummy_functions.cpp
714 .PHONY: alltests alltests-recursive updatetests