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
146 LayoutModuleList.cpp \
163 output_plaintext.cpp \
165 ParagraphMetrics.cpp \
166 ParagraphParameters.cpp \
271 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/InsetSpace.cpp \
579 insets/InsetSpecialChar.cpp \
580 insets/InsetTabular.cpp \
581 insets/InsetText.cpp \
582 insets/InsetTOC.cpp \
583 insets/InsetVSpace.cpp \
586 HEADERFILESINSETS = \
587 insets/ExternalSupport.h \
588 insets/ExternalTemplate.h \
589 insets/ExternalTransforms.h \
590 insets/RenderBase.h \
591 insets/RenderButton.h \
592 insets/RenderGraphic.h \
593 insets/RenderPreview.h \
595 insets/InsetArgument.h \
596 insets/InsetBibitem.h \
597 insets/InsetBibtex.h \
599 insets/InsetBranch.h \
600 insets/InsetCaption.h \
601 insets/InsetCitation.h \
603 insets/InsetCollapsable.h \
604 insets/InsetCommand.h \
605 insets/InsetCommandParams.h \
607 insets/InsetExternal.h \
609 insets/InsetFloat.h \
611 insets/InsetFloatList.h \
612 insets/InsetFootlike.h \
613 insets/InsetGraphicsParams.h \
614 insets/InsetGraphics.h \
615 insets/InsetHyperlink.h \
616 insets/InsetInclude.h \
617 insets/InsetIndex.h \
620 insets/InsetIPAMacro.h \
621 insets/InsetPreview.h \
622 insets/InsetLabel.h \
623 insets/InsetLayout.h \
625 insets/InsetListings.h \
626 insets/InsetListingsParams.h \
627 insets/InsetMarginal.h \
628 insets/InsetNewline.h \
629 insets/InsetNewpage.h \
630 insets/InsetNomencl.h \
632 insets/InsetPhantom.h \
633 insets/InsetQuotes.h \
635 insets/InsetScript.h \
636 insets/InsetSpace.h \
637 insets/InsetSpecialChar.h \
638 insets/InsetTabular.h \
641 insets/InsetVSpace.h \
644 # insets/InsetList.cpp \
645 # insets/InsetList.h \
646 # insets/InsetSection.h \
647 # insets/InsetSection.cpp
650 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
654 BUILT_SOURCES += lyxinsets.cpp
655 CLEANFILES += lyxinsets.cpp
657 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
661 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
666 ############################## Tests ##################################
678 check_layout_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LAYOUT_CSS
679 check_layout_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT4_CORE_LIBS) $(LIBSHLWAPI)
680 # need to allow multiple definitions of _() (see dummy_functions.cpp)
681 check_layout_LDFLAGS = $(QT4_CORE_LDFLAGS) -Wl,--allow-multiple-definition
682 check_layout_SOURCES = \
683 insets/InsetLayout.cpp \
695 tests/check_layout.cpp \
696 support/tests/boost.cpp \
697 support/tests/dummy_functions.cpp