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_CORE_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 $@
44 BUILT_SOURCES = $(PCH_FILE)
47 APPLESPELL = AppleSpellChecker.cpp AppleSpellChecker.h
51 ASPELL = AspellChecker.cpp AspellChecker.h
52 PWL = PersonalWordList.cpp PersonalWordList.h
56 ENCHANT = EnchantChecker.cpp EnchantChecker.h
57 PWL = PersonalWordList.cpp PersonalWordList.h
61 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
62 PWL = PersonalWordList.cpp PersonalWordList.h
65 # These four objects are linked as object files as they are not
66 # referenced within the core and therefore are not picked up
67 # by the linker without looping over libs. We do not want that,
68 # and in fact libtools seems not able to do that.
90 lyx_SOURCES += lyxwinres.rc
141 LayoutModuleList.cpp \
158 output_plaintext.cpp \
160 ParagraphMetrics.cpp \
161 ParagraphParameters.cpp \
264 ParagraphParameters.h \
295 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
299 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
300 CLEANFILES += lyxcore.cpp
302 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
306 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
310 ######################### Qt stuff ##############################
312 MOCHEADER = Compare.h
316 MOCHEADER += Server.h
321 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
323 BUILT_SOURCES += $(MOCEDFILES)
324 CLEANFILES += $(MOCEDFILES)
327 $(MOC4) $(MOCFLAG) -o $@ $<
329 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
331 ############################### Graphics ##############################
333 noinst_LIBRARIES += liblyxgraphics.a
335 liblyxgraphics_a_SOURCES = \
336 graphics/GraphicsCache.h \
337 graphics/GraphicsCache.cpp \
338 graphics/GraphicsCacheItem.h \
339 graphics/GraphicsCacheItem.cpp \
340 graphics/GraphicsConverter.h \
341 graphics/GraphicsConverter.cpp \
342 graphics/GraphicsImage.h \
343 graphics/GraphicsLoader.h \
344 graphics/GraphicsLoader.cpp \
345 graphics/GraphicsParams.cpp \
346 graphics/GraphicsParams.h \
347 graphics/GraphicsTypes.h \
348 graphics/PreviewImage.h \
349 graphics/PreviewImage.cpp \
350 graphics/PreviewLoader.h \
351 graphics/PreviewLoader.cpp
354 ############################### Mathed ##############################
356 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
358 noinst_LIBRARIES += liblyxmathed.a
360 SOURCEFILESMATHED = \
361 mathed/InsetMathAMSArray.cpp \
362 mathed/InsetMathArray.cpp \
363 mathed/InsetMathBig.cpp \
364 mathed/InsetMathBoldSymbol.cpp \
365 mathed/InsetMathBox.cpp \
366 mathed/InsetMathBrace.cpp \
367 mathed/InsetMath.cpp \
368 mathed/InsetMathCases.cpp \
369 mathed/InsetMathChar.cpp \
370 mathed/InsetMathColor.cpp \
371 mathed/CommandInset.cpp \
372 mathed/InsetMathComment.cpp \
373 mathed/InsetMathDecoration.cpp \
374 mathed/InsetMathDecoration.h \
375 mathed/InsetMathDelim.cpp \
376 mathed/InsetMathDiff.cpp \
377 mathed/InsetMathDots.cpp \
378 mathed/InsetMathEnsureMath.cpp \
379 mathed/InsetMathEnv.cpp \
380 mathed/InsetMathExFunc.cpp \
381 mathed/InsetMathExInt.cpp \
382 mathed/InsetMathFont.cpp \
383 mathed/InsetMathFontOld.cpp \
384 mathed/InsetMathFrac.cpp \
385 mathed/InsetMathGrid.cpp \
386 mathed/InsetMathHull.cpp \
387 mathed/InsetMathKern.cpp \
388 mathed/InsetMathLefteqn.cpp \
389 mathed/InsetMathLim.cpp \
390 mathed/MathMacro.cpp \
391 mathed/InsetMathMatrix.cpp \
392 mathed/InsetMathNest.cpp \
393 mathed/InsetMathNumber.cpp \
394 mathed/InsetMathOverset.cpp \
395 mathed/InsetMathPar.cpp \
396 mathed/InsetMathPhantom.cpp \
397 mathed/InsetMathRef.cpp \
398 mathed/InsetMathRoot.cpp \
399 mathed/InsetMathScript.cpp \
400 mathed/InsetMathSize.cpp \
401 mathed/InsetMathSpace.cpp \
402 mathed/InsetMathSpecialChar.cpp \
403 mathed/InsetMathSplit.cpp \
404 mathed/InsetMathSqrt.cpp \
405 mathed/InsetMathStackrel.cpp \
406 mathed/InsetMathString.cpp \
407 mathed/InsetMathSubstack.cpp \
408 mathed/InsetMathSymbol.cpp \
409 mathed/InsetMathTabular.cpp \
410 mathed/InsetMathUnderset.cpp \
411 mathed/InsetMathUnknown.cpp \
412 mathed/InsetMathXArrow.cpp \
413 mathed/InsetMathXYMatrix.cpp \
414 mathed/InsetMathDiagram.cpp \
415 mathed/MathAtom.cpp \
416 mathed/MathAutoCorrect.cpp \
417 mathed/MathData.cpp \
418 mathed/MathExtern.cpp \
419 mathed/MathFactory.cpp \
420 mathed/MathMacroArgument.cpp \
421 mathed/MacroTable.cpp \
422 mathed/MathMacroTemplate.cpp \
423 mathed/MathParser.cpp \
424 mathed/MathStream.cpp \
425 mathed/MathSupport.cpp \
426 mathed/TextPainter.cpp
428 HEADERFILESMATHED = \
429 mathed/InsetMathAMSArray.h \
430 mathed/InsetMathArray.h \
431 mathed/InsetMathBig.h \
432 mathed/InsetMathBoldSymbol.h \
433 mathed/InsetMathBox.h \
434 mathed/InsetMathBrace.h \
435 mathed/InsetMathCases.h \
436 mathed/InsetMathChar.h \
437 mathed/InsetMathColor.h \
438 mathed/CommandInset.h \
439 mathed/InsetMathComment.h \
440 mathed/InsetMathDelim.h \
441 mathed/InsetMathDiff.h \
442 mathed/InsetMathDots.h \
443 mathed/InsetMathEnsureMath.h \
444 mathed/InsetMathEnv.h \
445 mathed/InsetMathExFunc.h \
446 mathed/InsetMathExInt.h \
447 mathed/InsetMathFont.h \
448 mathed/InsetMathFontOld.h \
449 mathed/InsetMathFrac.h \
450 mathed/InsetMathGrid.h \
452 mathed/InsetMathHull.h \
453 mathed/InsetMathKern.h \
454 mathed/InsetMathLefteqn.h \
455 mathed/InsetMathLim.h \
457 mathed/InsetMathMatrix.h \
458 mathed/InsetMathNest.h \
459 mathed/InsetMathNumber.h \
460 mathed/InsetMathOverset.h \
461 mathed/InsetMathPar.h \
462 mathed/InsetMathPhantom.h \
463 mathed/InsetMathRef.h \
464 mathed/InsetMathRoot.h \
465 mathed/InsetMathScript.h \
466 mathed/InsetMathSize.h \
467 mathed/InsetMathSpace.h \
468 mathed/InsetMathSpecialChar.h \
469 mathed/InsetMathSplit.h \
470 mathed/InsetMathSqrt.h \
471 mathed/InsetMathStackrel.h \
472 mathed/InsetMathString.h \
473 mathed/InsetMathSubstack.h \
474 mathed/InsetMathSymbol.h \
475 mathed/InsetMathTabular.h \
476 mathed/InsetMathUnderset.h \
477 mathed/InsetMathUnknown.h \
478 mathed/InsetMathXArrow.h \
479 mathed/InsetMathXYMatrix.h \
480 mathed/InsetMathDiagram.h \
482 mathed/MathAutoCorrect.h \
484 mathed/MathCompletionList.h \
485 mathed/MathExtern.h \
486 mathed/MathFactory.h \
487 mathed/MathGridInfo.h \
488 mathed/MathMacroArgument.h \
489 mathed/MacroTable.h \
490 mathed/MathMacroTemplate.h \
491 mathed/MathParser.h \
492 mathed/MathParser_flags.h \
493 mathed/ReplaceData.h \
494 mathed/MathStream.h \
495 mathed/MathSupport.h \
499 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
503 BUILT_SOURCES += lyxmathed.cpp
504 CLEANFILES += lyxmathed.cpp
506 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
510 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
514 ############################### Insets ##############################
516 noinst_LIBRARIES += liblyxinsets.a
518 SOURCEFILESINSETS = \
519 insets/ExternalSupport.cpp \
520 insets/ExternalTemplate.cpp \
521 insets/ExternalTransforms.cpp \
522 insets/RenderButton.cpp \
523 insets/RenderGraphic.cpp \
524 insets/RenderPreview.cpp \
526 insets/InsetArgument.cpp \
527 insets/InsetBibitem.cpp \
528 insets/InsetBibtex.cpp \
529 insets/InsetBox.cpp \
530 insets/InsetBranch.cpp \
531 insets/InsetCaption.cpp \
532 insets/InsetCitation.cpp \
533 insets/InsetCollapsable.cpp \
534 insets/InsetCommand.cpp \
535 insets/InsetCommandParams.cpp \
536 insets/InsetERT.cpp \
537 insets/InsetExternal.cpp \
538 insets/InsetFlex.cpp \
539 insets/InsetFloat.cpp \
540 insets/InsetFloatList.cpp \
541 insets/InsetFoot.cpp \
542 insets/InsetFootlike.cpp \
543 insets/InsetGraphicsParams.cpp \
544 insets/InsetGraphics.cpp \
545 insets/InsetHyperlink.cpp \
546 insets/InsetInclude.cpp \
547 insets/InsetIndex.cpp \
548 insets/InsetInfo.cpp \
549 insets/InsetLabel.cpp \
550 insets/InsetLayout.cpp \
551 insets/InsetLine.cpp \
552 insets/InsetListings.cpp \
553 insets/InsetListingsParams.cpp \
554 insets/InsetMarginal.cpp \
555 insets/InsetNewline.cpp \
556 insets/InsetNewpage.cpp \
557 insets/InsetNomencl.cpp \
558 insets/InsetNote.cpp \
559 insets/InsetPhantom.cpp \
560 insets/InsetPreview.cpp \
561 insets/InsetQuotes.cpp \
562 insets/InsetRef.cpp \
563 insets/InsetScript.cpp \
564 insets/InsetSpace.cpp \
565 insets/InsetSpecialChar.cpp \
566 insets/InsetTabular.cpp \
567 insets/InsetText.cpp \
568 insets/InsetTOC.cpp \
569 insets/InsetVSpace.cpp \
572 HEADERFILESINSETS = \
573 insets/ExternalSupport.h \
574 insets/ExternalTemplate.h \
575 insets/ExternalTransforms.h \
576 insets/RenderBase.h \
577 insets/RenderButton.h \
578 insets/RenderGraphic.h \
579 insets/RenderPreview.h \
581 insets/InsetArgument.h \
582 insets/InsetBibitem.h \
583 insets/InsetBibtex.h \
585 insets/InsetBranch.h \
586 insets/InsetCaption.h \
587 insets/InsetCitation.h \
589 insets/InsetCollapsable.h \
590 insets/InsetCommand.h \
591 insets/InsetCommandParams.h \
593 insets/InsetExternal.h \
595 insets/InsetFloat.h \
597 insets/InsetFloatList.h \
598 insets/InsetFootlike.h \
599 insets/InsetGraphicsParams.h \
600 insets/InsetGraphics.h \
601 insets/InsetHyperlink.h \
602 insets/InsetInclude.h \
603 insets/InsetIndex.h \
605 insets/InsetPreview.h \
606 insets/InsetLabel.h \
607 insets/InsetLayout.h \
609 insets/InsetListings.h \
610 insets/InsetListingsParams.h \
611 insets/InsetMarginal.h \
612 insets/InsetNewline.h \
613 insets/InsetNewpage.h \
614 insets/InsetNomencl.h \
616 insets/InsetPhantom.h \
617 insets/InsetQuotes.h \
619 insets/InsetScript.h \
620 insets/InsetSpace.h \
621 insets/InsetSpecialChar.h \
622 insets/InsetTabular.h \
625 insets/InsetVSpace.h \
628 # insets/InsetList.cpp \
629 # insets/InsetList.h \
630 # insets/InsetSection.h \
631 # insets/InsetSection.cpp
634 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
638 BUILT_SOURCES += lyxinsets.cpp
639 CLEANFILES += lyxinsets.cpp
641 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
645 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)