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 $@
43 lyx_LDFLAGS = -framework AppKit
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.
94 lyx_SOURCES += lyxwinres.rc
145 LayoutModuleList.cpp \
162 output_plaintext.cpp \
164 ParagraphMetrics.cpp \
165 ParagraphParameters.cpp \
268 ParagraphParameters.h \
299 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
303 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
304 CLEANFILES += lyxcore.cpp
306 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
310 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
314 ######################### Qt stuff ##############################
316 MOCHEADER = Compare.h
320 MOCHEADER += Server.h
325 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
327 BUILT_SOURCES += $(MOCEDFILES)
328 CLEANFILES += $(MOCEDFILES)
331 $(MOC4) $(MOCFLAG) -o $@ $<
333 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
335 ############################### Graphics ##############################
337 noinst_LIBRARIES += liblyxgraphics.a
339 liblyxgraphics_a_SOURCES = \
340 graphics/GraphicsCache.h \
341 graphics/GraphicsCache.cpp \
342 graphics/GraphicsCacheItem.h \
343 graphics/GraphicsCacheItem.cpp \
344 graphics/GraphicsConverter.h \
345 graphics/GraphicsConverter.cpp \
346 graphics/GraphicsImage.h \
347 graphics/GraphicsLoader.h \
348 graphics/GraphicsLoader.cpp \
349 graphics/GraphicsParams.cpp \
350 graphics/GraphicsParams.h \
351 graphics/GraphicsTypes.h \
352 graphics/PreviewImage.h \
353 graphics/PreviewImage.cpp \
354 graphics/PreviewLoader.h \
355 graphics/PreviewLoader.cpp
358 ############################### Mathed ##############################
360 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
362 noinst_LIBRARIES += liblyxmathed.a
364 SOURCEFILESMATHED = \
365 mathed/InsetMathAMSArray.cpp \
366 mathed/InsetMathArray.cpp \
367 mathed/InsetMathBig.cpp \
368 mathed/InsetMathBoldSymbol.cpp \
369 mathed/InsetMathBox.cpp \
370 mathed/InsetMathBrace.cpp \
371 mathed/InsetMath.cpp \
372 mathed/InsetMathCases.cpp \
373 mathed/InsetMathChar.cpp \
374 mathed/InsetMathColor.cpp \
375 mathed/CommandInset.cpp \
376 mathed/InsetMathComment.cpp \
377 mathed/InsetMathDecoration.cpp \
378 mathed/InsetMathDecoration.h \
379 mathed/InsetMathDelim.cpp \
380 mathed/InsetMathDiff.cpp \
381 mathed/InsetMathDots.cpp \
382 mathed/InsetMathEnsureMath.cpp \
383 mathed/InsetMathEnv.cpp \
384 mathed/InsetMathExFunc.cpp \
385 mathed/InsetMathExInt.cpp \
386 mathed/InsetMathFont.cpp \
387 mathed/InsetMathFontOld.cpp \
388 mathed/InsetMathFrac.cpp \
389 mathed/InsetMathGrid.cpp \
390 mathed/InsetMathHull.cpp \
391 mathed/InsetMathKern.cpp \
392 mathed/InsetMathLefteqn.cpp \
393 mathed/InsetMathLim.cpp \
394 mathed/MathMacro.cpp \
395 mathed/InsetMathMatrix.cpp \
396 mathed/InsetMathNest.cpp \
397 mathed/InsetMathNumber.cpp \
398 mathed/InsetMathOverset.cpp \
399 mathed/InsetMathPar.cpp \
400 mathed/InsetMathPhantom.cpp \
401 mathed/InsetMathRef.cpp \
402 mathed/InsetMathRoot.cpp \
403 mathed/InsetMathScript.cpp \
404 mathed/InsetMathSize.cpp \
405 mathed/InsetMathSpace.cpp \
406 mathed/InsetMathSpecialChar.cpp \
407 mathed/InsetMathSplit.cpp \
408 mathed/InsetMathSqrt.cpp \
409 mathed/InsetMathStackrel.cpp \
410 mathed/InsetMathString.cpp \
411 mathed/InsetMathSubstack.cpp \
412 mathed/InsetMathSymbol.cpp \
413 mathed/InsetMathTabular.cpp \
414 mathed/InsetMathUnderset.cpp \
415 mathed/InsetMathUnknown.cpp \
416 mathed/InsetMathXArrow.cpp \
417 mathed/InsetMathXYMatrix.cpp \
418 mathed/InsetMathDiagram.cpp \
419 mathed/MathAtom.cpp \
420 mathed/MathAutoCorrect.cpp \
421 mathed/MathData.cpp \
422 mathed/MathExtern.cpp \
423 mathed/MathFactory.cpp \
424 mathed/MathMacroArgument.cpp \
425 mathed/MacroTable.cpp \
426 mathed/MathMacroTemplate.cpp \
427 mathed/MathParser.cpp \
428 mathed/MathStream.cpp \
429 mathed/MathSupport.cpp \
430 mathed/TextPainter.cpp
432 HEADERFILESMATHED = \
433 mathed/InsetMathAMSArray.h \
434 mathed/InsetMathArray.h \
435 mathed/InsetMathBig.h \
436 mathed/InsetMathBoldSymbol.h \
437 mathed/InsetMathBox.h \
438 mathed/InsetMathBrace.h \
439 mathed/InsetMathCases.h \
440 mathed/InsetMathChar.h \
441 mathed/InsetMathColor.h \
442 mathed/CommandInset.h \
443 mathed/InsetMathComment.h \
444 mathed/InsetMathDelim.h \
445 mathed/InsetMathDiff.h \
446 mathed/InsetMathDots.h \
447 mathed/InsetMathEnsureMath.h \
448 mathed/InsetMathEnv.h \
449 mathed/InsetMathExFunc.h \
450 mathed/InsetMathExInt.h \
451 mathed/InsetMathFont.h \
452 mathed/InsetMathFontOld.h \
453 mathed/InsetMathFrac.h \
454 mathed/InsetMathGrid.h \
456 mathed/InsetMathHull.h \
457 mathed/InsetMathKern.h \
458 mathed/InsetMathLefteqn.h \
459 mathed/InsetMathLim.h \
461 mathed/InsetMathMatrix.h \
462 mathed/InsetMathNest.h \
463 mathed/InsetMathNumber.h \
464 mathed/InsetMathOverset.h \
465 mathed/InsetMathPar.h \
466 mathed/InsetMathPhantom.h \
467 mathed/InsetMathRef.h \
468 mathed/InsetMathRoot.h \
469 mathed/InsetMathScript.h \
470 mathed/InsetMathSize.h \
471 mathed/InsetMathSpace.h \
472 mathed/InsetMathSpecialChar.h \
473 mathed/InsetMathSplit.h \
474 mathed/InsetMathSqrt.h \
475 mathed/InsetMathStackrel.h \
476 mathed/InsetMathString.h \
477 mathed/InsetMathSubstack.h \
478 mathed/InsetMathSymbol.h \
479 mathed/InsetMathTabular.h \
480 mathed/InsetMathUnderset.h \
481 mathed/InsetMathUnknown.h \
482 mathed/InsetMathXArrow.h \
483 mathed/InsetMathXYMatrix.h \
484 mathed/InsetMathDiagram.h \
486 mathed/MathAutoCorrect.h \
488 mathed/MathCompletionList.h \
489 mathed/MathExtern.h \
490 mathed/MathFactory.h \
491 mathed/MathGridInfo.h \
492 mathed/MathMacroArgument.h \
493 mathed/MacroTable.h \
494 mathed/MathMacroTemplate.h \
495 mathed/MathParser.h \
496 mathed/MathParser_flags.h \
497 mathed/ReplaceData.h \
498 mathed/MathStream.h \
499 mathed/MathSupport.h \
503 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
507 BUILT_SOURCES += lyxmathed.cpp
508 CLEANFILES += lyxmathed.cpp
510 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
514 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
518 ############################### Insets ##############################
520 noinst_LIBRARIES += liblyxinsets.a
522 SOURCEFILESINSETS = \
523 insets/ExternalSupport.cpp \
524 insets/ExternalTemplate.cpp \
525 insets/ExternalTransforms.cpp \
526 insets/RenderButton.cpp \
527 insets/RenderGraphic.cpp \
528 insets/RenderPreview.cpp \
530 insets/InsetArgument.cpp \
531 insets/InsetBibitem.cpp \
532 insets/InsetBibtex.cpp \
533 insets/InsetBox.cpp \
534 insets/InsetBranch.cpp \
535 insets/InsetCaption.cpp \
536 insets/InsetCitation.cpp \
537 insets/InsetCollapsable.cpp \
538 insets/InsetCommand.cpp \
539 insets/InsetCommandParams.cpp \
540 insets/InsetERT.cpp \
541 insets/InsetExternal.cpp \
542 insets/InsetFlex.cpp \
543 insets/InsetFloat.cpp \
544 insets/InsetFloatList.cpp \
545 insets/InsetFoot.cpp \
546 insets/InsetFootlike.cpp \
547 insets/InsetGraphicsParams.cpp \
548 insets/InsetGraphics.cpp \
549 insets/InsetHyperlink.cpp \
550 insets/InsetInclude.cpp \
551 insets/InsetIndex.cpp \
552 insets/InsetInfo.cpp \
553 insets/InsetLabel.cpp \
554 insets/InsetLayout.cpp \
555 insets/InsetLine.cpp \
556 insets/InsetListings.cpp \
557 insets/InsetListingsParams.cpp \
558 insets/InsetMarginal.cpp \
559 insets/InsetNewline.cpp \
560 insets/InsetNewpage.cpp \
561 insets/InsetNomencl.cpp \
562 insets/InsetNote.cpp \
563 insets/InsetPhantom.cpp \
564 insets/InsetPreview.cpp \
565 insets/InsetQuotes.cpp \
566 insets/InsetRef.cpp \
567 insets/InsetScript.cpp \
568 insets/InsetSpace.cpp \
569 insets/InsetSpecialChar.cpp \
570 insets/InsetTabular.cpp \
571 insets/InsetText.cpp \
572 insets/InsetTOC.cpp \
573 insets/InsetVSpace.cpp \
576 HEADERFILESINSETS = \
577 insets/ExternalSupport.h \
578 insets/ExternalTemplate.h \
579 insets/ExternalTransforms.h \
580 insets/RenderBase.h \
581 insets/RenderButton.h \
582 insets/RenderGraphic.h \
583 insets/RenderPreview.h \
585 insets/InsetArgument.h \
586 insets/InsetBibitem.h \
587 insets/InsetBibtex.h \
589 insets/InsetBranch.h \
590 insets/InsetCaption.h \
591 insets/InsetCitation.h \
593 insets/InsetCollapsable.h \
594 insets/InsetCommand.h \
595 insets/InsetCommandParams.h \
597 insets/InsetExternal.h \
599 insets/InsetFloat.h \
601 insets/InsetFloatList.h \
602 insets/InsetFootlike.h \
603 insets/InsetGraphicsParams.h \
604 insets/InsetGraphics.h \
605 insets/InsetHyperlink.h \
606 insets/InsetInclude.h \
607 insets/InsetIndex.h \
609 insets/InsetPreview.h \
610 insets/InsetLabel.h \
611 insets/InsetLayout.h \
613 insets/InsetListings.h \
614 insets/InsetListingsParams.h \
615 insets/InsetMarginal.h \
616 insets/InsetNewline.h \
617 insets/InsetNewpage.h \
618 insets/InsetNomencl.h \
620 insets/InsetPhantom.h \
621 insets/InsetQuotes.h \
623 insets/InsetScript.h \
624 insets/InsetSpace.h \
625 insets/InsetSpecialChar.h \
626 insets/InsetTabular.h \
629 insets/InsetVSpace.h \
632 # insets/InsetList.cpp \
633 # insets/InsetList.h \
634 # insets/InsetSection.h \
635 # insets/InsetSection.cpp
638 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
642 BUILT_SOURCES += lyxinsets.cpp
643 CLEANFILES += lyxinsets.cpp
645 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
649 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)