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 \
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 noinst_LIBRARIES += liblyxmathed.a
369 SOURCEFILESMATHED = \
370 mathed/CommandInset.cpp \
371 mathed/InsetMathAMSArray.cpp \
372 mathed/InsetMathArray.cpp \
373 mathed/InsetMathBig.cpp \
374 mathed/InsetMathBoldSymbol.cpp \
375 mathed/InsetMathBox.cpp \
376 mathed/InsetMathBrace.cpp \
377 mathed/InsetMath.cpp \
378 mathed/InsetMathCases.cpp \
379 mathed/InsetMathChar.cpp \
380 mathed/InsetMathColor.cpp \
381 mathed/InsetMathComment.cpp \
382 mathed/InsetMathDecoration.cpp \
383 mathed/InsetMathDecoration.h \
384 mathed/InsetMathDelim.cpp \
385 mathed/InsetMathDiff.cpp \
386 mathed/InsetMathDots.cpp \
387 mathed/InsetMathEnsureMath.cpp \
388 mathed/InsetMathEnv.cpp \
389 mathed/InsetMathExFunc.cpp \
390 mathed/InsetMathExInt.cpp \
391 mathed/InsetMathFont.cpp \
392 mathed/InsetMathFontOld.cpp \
393 mathed/InsetMathFrac.cpp \
394 mathed/InsetMathGrid.cpp \
395 mathed/InsetMathHull.cpp \
396 mathed/InsetMathKern.cpp \
397 mathed/InsetMathLefteqn.cpp \
398 mathed/InsetMathLim.cpp \
399 mathed/InsetMathCancel.cpp \
400 mathed/InsetMathCancelto.cpp \
401 mathed/InsetMathMatrix.cpp \
402 mathed/InsetMathNest.cpp \
403 mathed/InsetMathNumber.cpp \
404 mathed/InsetMathOverset.cpp \
405 mathed/InsetMathPar.cpp \
406 mathed/InsetMathPhantom.cpp \
407 mathed/InsetMathRef.cpp \
408 mathed/InsetMathRoot.cpp \
409 mathed/InsetMathScript.cpp \
410 mathed/InsetMathSideset.cpp \
411 mathed/InsetMathSize.cpp \
412 mathed/InsetMathSpace.cpp \
413 mathed/InsetMathSpecialChar.cpp \
414 mathed/InsetMathSplit.cpp \
415 mathed/InsetMathSqrt.cpp \
416 mathed/InsetMathStackrel.cpp \
417 mathed/InsetMathString.cpp \
418 mathed/InsetMathSubstack.cpp \
419 mathed/InsetMathSymbol.cpp \
420 mathed/InsetMathTabular.cpp \
421 mathed/InsetMathUnderset.cpp \
422 mathed/InsetMathUnknown.cpp \
423 mathed/InsetMathXArrow.cpp \
424 mathed/InsetMathXYMatrix.cpp \
425 mathed/InsetMathDiagram.cpp \
426 mathed/MathAtom.cpp \
427 mathed/MathAutoCorrect.cpp \
428 mathed/MathData.cpp \
429 mathed/MathExtern.cpp \
430 mathed/MathFactory.cpp \
431 mathed/MathMacro.cpp \
432 mathed/MathMacroArgument.cpp \
433 mathed/MacroTable.cpp \
434 mathed/MathMacroTemplate.cpp \
435 mathed/MathParser.cpp \
436 mathed/MathStream.cpp \
437 mathed/MathSupport.cpp \
438 mathed/TextPainter.cpp
440 HEADERFILESMATHED = \
441 mathed/CommandInset.h \
442 mathed/InsetMathAMSArray.h \
443 mathed/InsetMathArray.h \
444 mathed/InsetMathBig.h \
445 mathed/InsetMathBoldSymbol.h \
446 mathed/InsetMathBox.h \
447 mathed/InsetMathBrace.h \
448 mathed/InsetMathCancel.h \
449 mathed/InsetMathCancelto.h \
450 mathed/InsetMathCases.h \
451 mathed/InsetMathChar.h \
452 mathed/InsetMathColor.h \
453 mathed/InsetMathComment.h \
454 mathed/InsetMathDelim.h \
455 mathed/InsetMathDiff.h \
456 mathed/InsetMathDots.h \
457 mathed/InsetMathEnsureMath.h \
458 mathed/InsetMathEnv.h \
459 mathed/InsetMathExFunc.h \
460 mathed/InsetMathExInt.h \
461 mathed/InsetMathFont.h \
462 mathed/InsetMathFontOld.h \
463 mathed/InsetMathFrac.h \
464 mathed/InsetMathGrid.h \
466 mathed/InsetMathHull.h \
467 mathed/InsetMathKern.h \
468 mathed/InsetMathLefteqn.h \
469 mathed/InsetMathLim.h \
470 mathed/InsetMathMatrix.h \
471 mathed/InsetMathNest.h \
472 mathed/InsetMathNumber.h \
473 mathed/InsetMathOverset.h \
474 mathed/InsetMathPar.h \
475 mathed/InsetMathPhantom.h \
476 mathed/InsetMathRef.h \
477 mathed/InsetMathRoot.h \
478 mathed/InsetMathScript.h \
479 mathed/InsetMathSideset.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 \
502 mathed/MathMacroArgument.h \
503 mathed/MacroTable.h \
504 mathed/MathMacroTemplate.h \
505 mathed/MathParser.h \
506 mathed/MathParser_flags.h \
507 mathed/ReplaceData.h \
508 mathed/MathStream.h \
509 mathed/MathSupport.h \
513 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
517 BUILT_SOURCES += lyxmathed.cpp
518 CLEANFILES += lyxmathed.cpp
520 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
524 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
528 ############################### Insets ##############################
530 noinst_LIBRARIES += liblyxinsets.a
532 SOURCEFILESINSETS = \
533 insets/ExternalSupport.cpp \
534 insets/ExternalTemplate.cpp \
535 insets/ExternalTransforms.cpp \
536 insets/RenderButton.cpp \
537 insets/RenderGraphic.cpp \
538 insets/RenderPreview.cpp \
540 insets/InsetArgument.cpp \
541 insets/InsetBibitem.cpp \
542 insets/InsetBibtex.cpp \
543 insets/InsetBox.cpp \
544 insets/InsetBranch.cpp \
545 insets/InsetCaption.cpp \
546 insets/InsetCitation.cpp \
547 insets/InsetCollapsable.cpp \
548 insets/InsetCommand.cpp \
549 insets/InsetCommandParams.cpp \
550 insets/InsetERT.cpp \
551 insets/InsetExternal.cpp \
552 insets/InsetFlex.cpp \
553 insets/InsetFloat.cpp \
554 insets/InsetFloatList.cpp \
555 insets/InsetFoot.cpp \
556 insets/InsetFootlike.cpp \
557 insets/InsetGraphicsParams.cpp \
558 insets/InsetGraphics.cpp \
559 insets/InsetHyperlink.cpp \
560 insets/InsetInclude.cpp \
561 insets/InsetIndex.cpp \
562 insets/InsetInfo.cpp \
563 insets/InsetIPA.cpp \
564 insets/InsetIPAMacro.cpp \
565 insets/InsetLabel.cpp \
566 insets/InsetLayout.cpp \
567 insets/InsetLine.cpp \
568 insets/InsetListings.cpp \
569 insets/InsetListingsParams.cpp \
570 insets/InsetMarginal.cpp \
571 insets/InsetNewline.cpp \
572 insets/InsetNewpage.cpp \
573 insets/InsetNomencl.cpp \
574 insets/InsetNote.cpp \
575 insets/InsetPhantom.cpp \
576 insets/InsetPreview.cpp \
577 insets/InsetQuotes.cpp \
578 insets/InsetRef.cpp \
579 insets/InsetScript.cpp \
580 insets/InsetSpace.cpp \
581 insets/InsetSpecialChar.cpp \
582 insets/InsetTabular.cpp \
583 insets/InsetText.cpp \
584 insets/InsetTOC.cpp \
585 insets/InsetVSpace.cpp \
588 HEADERFILESINSETS = \
589 insets/ExternalSupport.h \
590 insets/ExternalTemplate.h \
591 insets/ExternalTransforms.h \
592 insets/RenderBase.h \
593 insets/RenderButton.h \
594 insets/RenderGraphic.h \
595 insets/RenderPreview.h \
597 insets/InsetArgument.h \
598 insets/InsetBibitem.h \
599 insets/InsetBibtex.h \
601 insets/InsetBranch.h \
602 insets/InsetCaption.h \
603 insets/InsetCitation.h \
605 insets/InsetCollapsable.h \
606 insets/InsetCommand.h \
607 insets/InsetCommandParams.h \
609 insets/InsetExternal.h \
611 insets/InsetFloat.h \
613 insets/InsetFloatList.h \
614 insets/InsetFootlike.h \
615 insets/InsetGraphicsParams.h \
616 insets/InsetGraphics.h \
617 insets/InsetHyperlink.h \
618 insets/InsetInclude.h \
619 insets/InsetIndex.h \
622 insets/InsetIPAMacro.h \
623 insets/InsetPreview.h \
624 insets/InsetLabel.h \
625 insets/InsetLayout.h \
627 insets/InsetListings.h \
628 insets/InsetListingsParams.h \
629 insets/InsetMarginal.h \
630 insets/InsetNewline.h \
631 insets/InsetNewpage.h \
632 insets/InsetNomencl.h \
634 insets/InsetPhantom.h \
635 insets/InsetQuotes.h \
637 insets/InsetScript.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