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)
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) @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 \
352 graphics/Previews.h \
353 graphics/Previews.cpp
356 ############################### Mathed ##############################
358 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
360 noinst_LIBRARIES += liblyxmathed.a
362 SOURCEFILESMATHED = \
363 mathed/InsetMathAMSArray.cpp \
364 mathed/InsetMathArray.cpp \
365 mathed/InsetMathBig.cpp \
366 mathed/InsetMathBoldSymbol.cpp \
367 mathed/InsetMathBox.cpp \
368 mathed/InsetMathBrace.cpp \
369 mathed/InsetMath.cpp \
370 mathed/InsetMathCases.cpp \
371 mathed/InsetMathChar.cpp \
372 mathed/InsetMathColor.cpp \
373 mathed/CommandInset.cpp \
374 mathed/InsetMathComment.cpp \
375 mathed/InsetMathDecoration.cpp \
376 mathed/InsetMathDecoration.h \
377 mathed/InsetMathDelim.cpp \
378 mathed/InsetMathDiff.cpp \
379 mathed/InsetMathDots.cpp \
380 mathed/InsetMathEnsureMath.cpp \
381 mathed/InsetMathEnv.cpp \
382 mathed/InsetMathExFunc.cpp \
383 mathed/InsetMathExInt.cpp \
384 mathed/InsetMathFont.cpp \
385 mathed/InsetMathFontOld.cpp \
386 mathed/InsetMathFrac.cpp \
387 mathed/InsetMathGrid.cpp \
388 mathed/InsetMathHull.cpp \
389 mathed/InsetMathKern.cpp \
390 mathed/InsetMathLefteqn.cpp \
391 mathed/InsetMathLim.cpp \
392 mathed/MathMacro.cpp \
393 mathed/InsetMathMatrix.cpp \
394 mathed/InsetMathNest.cpp \
395 mathed/InsetMathNumber.cpp \
396 mathed/InsetMathOverset.cpp \
397 mathed/InsetMathPar.cpp \
398 mathed/InsetMathPhantom.cpp \
399 mathed/InsetMathRef.cpp \
400 mathed/InsetMathRoot.cpp \
401 mathed/InsetMathScript.cpp \
402 mathed/InsetMathSize.cpp \
403 mathed/InsetMathSpace.cpp \
404 mathed/InsetMathSpecialChar.cpp \
405 mathed/InsetMathSplit.cpp \
406 mathed/InsetMathSqrt.cpp \
407 mathed/InsetMathStackrel.cpp \
408 mathed/InsetMathString.cpp \
409 mathed/InsetMathSubstack.cpp \
410 mathed/InsetMathSymbol.cpp \
411 mathed/InsetMathTabular.cpp \
412 mathed/InsetMathUnderset.cpp \
413 mathed/InsetMathUnknown.cpp \
414 mathed/InsetMathXArrow.cpp \
415 mathed/InsetMathXYMatrix.cpp \
416 mathed/InsetMathDiagram.cpp \
417 mathed/MathAtom.cpp \
418 mathed/MathAutoCorrect.cpp \
419 mathed/MathData.cpp \
420 mathed/MathExtern.cpp \
421 mathed/MathFactory.cpp \
422 mathed/MathMacroArgument.cpp \
423 mathed/MacroTable.cpp \
424 mathed/MathMacroTemplate.cpp \
425 mathed/MathParser.cpp \
426 mathed/MathStream.cpp \
427 mathed/MathSupport.cpp \
428 mathed/TextPainter.cpp
430 HEADERFILESMATHED = \
431 mathed/InsetMathAMSArray.h \
432 mathed/InsetMathArray.h \
433 mathed/InsetMathBig.h \
434 mathed/InsetMathBoldSymbol.h \
435 mathed/InsetMathBox.h \
436 mathed/InsetMathBrace.h \
437 mathed/InsetMathCases.h \
438 mathed/InsetMathChar.h \
439 mathed/InsetMathColor.h \
440 mathed/CommandInset.h \
441 mathed/InsetMathComment.h \
442 mathed/InsetMathDelim.h \
443 mathed/InsetMathDiff.h \
444 mathed/InsetMathDots.h \
445 mathed/InsetMathEnsureMath.h \
446 mathed/InsetMathEnv.h \
447 mathed/InsetMathExFunc.h \
448 mathed/InsetMathExInt.h \
449 mathed/InsetMathFont.h \
450 mathed/InsetMathFontOld.h \
451 mathed/InsetMathFrac.h \
452 mathed/InsetMathGrid.h \
454 mathed/InsetMathHull.h \
455 mathed/InsetMathKern.h \
456 mathed/InsetMathLefteqn.h \
457 mathed/InsetMathLim.h \
459 mathed/InsetMathMatrix.h \
460 mathed/InsetMathNest.h \
461 mathed/InsetMathNumber.h \
462 mathed/InsetMathOverset.h \
463 mathed/InsetMathPar.h \
464 mathed/InsetMathPhantom.h \
465 mathed/InsetMathRef.h \
466 mathed/InsetMathRoot.h \
467 mathed/InsetMathScript.h \
468 mathed/InsetMathSize.h \
469 mathed/InsetMathSpace.h \
470 mathed/InsetMathSpecialChar.h \
471 mathed/InsetMathSplit.h \
472 mathed/InsetMathSqrt.h \
473 mathed/InsetMathStackrel.h \
474 mathed/InsetMathString.h \
475 mathed/InsetMathSubstack.h \
476 mathed/InsetMathSymbol.h \
477 mathed/InsetMathTabular.h \
478 mathed/InsetMathUnderset.h \
479 mathed/InsetMathUnknown.h \
480 mathed/InsetMathXArrow.h \
481 mathed/InsetMathXYMatrix.h \
482 mathed/InsetMathDiagram.h \
484 mathed/MathAutoCorrect.h \
486 mathed/MathCompletionList.h \
487 mathed/MathExtern.h \
488 mathed/MathFactory.h \
489 mathed/MathGridInfo.h \
490 mathed/MathMacroArgument.h \
491 mathed/MacroTable.h \
492 mathed/MathMacroTemplate.h \
493 mathed/MathParser.h \
494 mathed/MathParser_flags.h \
495 mathed/ReplaceData.h \
496 mathed/MathStream.h \
497 mathed/MathSupport.h \
501 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
505 BUILT_SOURCES += lyxmathed.cpp
506 CLEANFILES += lyxmathed.cpp
508 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
512 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
516 ############################### Insets ##############################
518 noinst_LIBRARIES += liblyxinsets.a
520 SOURCEFILESINSETS = \
521 insets/ExternalSupport.cpp \
522 insets/ExternalTemplate.cpp \
523 insets/ExternalTransforms.cpp \
524 insets/RenderButton.cpp \
525 insets/RenderGraphic.cpp \
526 insets/RenderPreview.cpp \
528 insets/InsetArgument.cpp \
529 insets/InsetBibitem.cpp \
530 insets/InsetBibtex.cpp \
531 insets/InsetBox.cpp \
532 insets/InsetBranch.cpp \
533 insets/InsetCaption.cpp \
534 insets/InsetCitation.cpp \
535 insets/InsetCollapsable.cpp \
536 insets/InsetCommand.cpp \
537 insets/InsetCommandParams.cpp \
538 insets/InsetERT.cpp \
539 insets/InsetExternal.cpp \
540 insets/InsetFlex.cpp \
541 insets/InsetFloat.cpp \
542 insets/InsetFloatList.cpp \
543 insets/InsetFoot.cpp \
544 insets/InsetFootlike.cpp \
545 insets/InsetGraphicsParams.cpp \
546 insets/InsetGraphics.cpp \
547 insets/InsetHyperlink.cpp \
548 insets/InsetInclude.cpp \
549 insets/InsetIndex.cpp \
550 insets/InsetInfo.cpp \
551 insets/InsetLabel.cpp \
552 insets/InsetLayout.cpp \
553 insets/InsetLine.cpp \
554 insets/InsetListings.cpp \
555 insets/InsetListingsParams.cpp \
556 insets/InsetMarginal.cpp \
557 insets/InsetNewline.cpp \
558 insets/InsetNewpage.cpp \
559 insets/InsetNomencl.cpp \
560 insets/InsetNote.cpp \
561 insets/InsetPhantom.cpp \
562 insets/InsetPreview.cpp \
563 insets/InsetQuotes.cpp \
564 insets/InsetRef.cpp \
565 insets/InsetScript.cpp \
566 insets/InsetSpace.cpp \
567 insets/InsetSpecialChar.cpp \
568 insets/InsetTabular.cpp \
569 insets/InsetText.cpp \
570 insets/InsetTOC.cpp \
571 insets/InsetVSpace.cpp \
574 HEADERFILESINSETS = \
575 insets/ExternalSupport.h \
576 insets/ExternalTemplate.h \
577 insets/ExternalTransforms.h \
578 insets/RenderBase.h \
579 insets/RenderButton.h \
580 insets/RenderGraphic.h \
581 insets/RenderPreview.h \
583 insets/InsetArgument.h \
584 insets/InsetBibitem.h \
585 insets/InsetBibtex.h \
587 insets/InsetBranch.h \
588 insets/InsetCaption.h \
589 insets/InsetCitation.h \
591 insets/InsetCollapsable.h \
592 insets/InsetCommand.h \
593 insets/InsetCommandParams.h \
595 insets/InsetExternal.h \
597 insets/InsetFloat.h \
599 insets/InsetFloatList.h \
600 insets/InsetFootlike.h \
601 insets/InsetGraphicsParams.h \
602 insets/InsetGraphics.h \
603 insets/InsetHyperlink.h \
604 insets/InsetInclude.h \
605 insets/InsetIndex.h \
607 insets/InsetPreview.h \
608 insets/InsetLabel.h \
609 insets/InsetLayout.h \
611 insets/InsetListings.h \
612 insets/InsetListingsParams.h \
613 insets/InsetMarginal.h \
614 insets/InsetNewline.h \
615 insets/InsetNewpage.h \
616 insets/InsetNomencl.h \
618 insets/InsetPhantom.h \
619 insets/InsetQuotes.h \
621 insets/InsetScript.h \
622 insets/InsetSpace.h \
623 insets/InsetSpecialChar.h \
624 insets/InsetTabular.h \
627 insets/InsetVSpace.h \
630 # insets/InsetList.cpp \
631 # insets/InsetList.h \
632 # insets/InsetSection.h \
633 # insets/InsetSection.cpp
636 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
640 BUILT_SOURCES += lyxinsets.cpp
641 CLEANFILES += lyxinsets.cpp
643 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
647 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)