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) $(AIKSAURUS_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 ASPELL = AppleSpellChecker.cpp AppleSpellChecker.h
51 ASPELL = AspellChecker.cpp AspellChecker.h
55 ENCHANT = EnchantChecker.cpp EnchantChecker.h
59 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
62 # These four objects are linked as object files as they are not
63 # referenced within the core and therefore are not picked up
64 # by the linker without looping over libs. We do not want that,
65 # and in fact libtools seems not able to do that.
85 lyx_SOURCES += lyxwinres.rc
136 LayoutModuleList.cpp \
153 output_plaintext.cpp \
155 ParagraphMetrics.cpp \
156 ParagraphParameters.cpp \
259 ParagraphParameters.h \
290 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
294 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
295 CLEANFILES += lyxcore.cpp
297 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
301 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
305 ######################### Qt stuff ##############################
307 MOCHEADER = Compare.h
311 MOCHEADER += Server.h
316 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
318 BUILT_SOURCES += $(MOCEDFILES)
319 CLEANFILES += $(MOCEDFILES)
322 $(MOC4) $(MOCFLAG) -o $@ $<
324 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
326 ############################### Graphics ##############################
328 noinst_LIBRARIES += liblyxgraphics.a
330 liblyxgraphics_a_SOURCES = \
331 graphics/GraphicsCache.h \
332 graphics/GraphicsCache.cpp \
333 graphics/GraphicsCacheItem.h \
334 graphics/GraphicsCacheItem.cpp \
335 graphics/GraphicsConverter.h \
336 graphics/GraphicsConverter.cpp \
337 graphics/GraphicsImage.h \
338 graphics/GraphicsLoader.h \
339 graphics/GraphicsLoader.cpp \
340 graphics/GraphicsParams.cpp \
341 graphics/GraphicsParams.h \
342 graphics/GraphicsTypes.h \
343 graphics/PreviewImage.h \
344 graphics/PreviewImage.cpp \
345 graphics/PreviewLoader.h \
346 graphics/PreviewLoader.cpp \
347 graphics/Previews.h \
348 graphics/Previews.cpp
351 ############################### Mathed ##############################
353 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
355 noinst_LIBRARIES += liblyxmathed.a
357 SOURCEFILESMATHED = \
358 mathed/InsetMathAMSArray.cpp \
359 mathed/InsetMathArray.cpp \
360 mathed/InsetMathBig.cpp \
361 mathed/InsetMathBoldSymbol.cpp \
362 mathed/InsetMathBox.cpp \
363 mathed/InsetMathBrace.cpp \
364 mathed/InsetMath.cpp \
365 mathed/InsetMathCases.cpp \
366 mathed/InsetMathChar.cpp \
367 mathed/InsetMathColor.cpp \
368 mathed/CommandInset.cpp \
369 mathed/InsetMathComment.cpp \
370 mathed/InsetMathDecoration.cpp \
371 mathed/InsetMathDecoration.h \
372 mathed/InsetMathDelim.cpp \
373 mathed/InsetMathDiff.cpp \
374 mathed/InsetMathDots.cpp \
375 mathed/InsetMathEnsureMath.cpp \
376 mathed/InsetMathEnv.cpp \
377 mathed/InsetMathExFunc.cpp \
378 mathed/InsetMathExInt.cpp \
379 mathed/InsetMathFont.cpp \
380 mathed/InsetMathFontOld.cpp \
381 mathed/InsetMathFrac.cpp \
382 mathed/InsetMathGrid.cpp \
383 mathed/InsetMathHull.cpp \
384 mathed/InsetMathKern.cpp \
385 mathed/InsetMathLefteqn.cpp \
386 mathed/InsetMathLim.cpp \
387 mathed/MathMacro.cpp \
388 mathed/InsetMathMatrix.cpp \
389 mathed/InsetMathNest.cpp \
390 mathed/InsetMathNumber.cpp \
391 mathed/InsetMathOverset.cpp \
392 mathed/InsetMathPar.cpp \
393 mathed/InsetMathPhantom.cpp \
394 mathed/InsetMathRef.cpp \
395 mathed/InsetMathRoot.cpp \
396 mathed/InsetMathScript.cpp \
397 mathed/InsetMathSize.cpp \
398 mathed/InsetMathSpace.cpp \
399 mathed/InsetMathSpecialChar.cpp \
400 mathed/InsetMathSplit.cpp \
401 mathed/InsetMathSqrt.cpp \
402 mathed/InsetMathStackrel.cpp \
403 mathed/InsetMathString.cpp \
404 mathed/InsetMathSubstack.cpp \
405 mathed/InsetMathSymbol.cpp \
406 mathed/InsetMathTabular.cpp \
407 mathed/InsetMathUnderset.cpp \
408 mathed/InsetMathUnknown.cpp \
409 mathed/InsetMathXArrow.cpp \
410 mathed/InsetMathXYMatrix.cpp \
411 mathed/MathAtom.cpp \
412 mathed/MathAutoCorrect.cpp \
413 mathed/MathData.cpp \
414 mathed/MathExtern.cpp \
415 mathed/MathFactory.cpp \
416 mathed/MathMacroArgument.cpp \
417 mathed/MacroTable.cpp \
418 mathed/MathMacroTemplate.cpp \
419 mathed/MathParser.cpp \
420 mathed/MathStream.cpp \
421 mathed/MathSupport.cpp \
422 mathed/TextPainter.cpp
424 HEADERFILESMATHED = \
425 mathed/InsetMathAMSArray.h \
426 mathed/InsetMathArray.h \
427 mathed/InsetMathBig.h \
428 mathed/InsetMathBoldSymbol.h \
429 mathed/InsetMathBox.h \
430 mathed/InsetMathBrace.h \
431 mathed/InsetMathCases.h \
432 mathed/InsetMathChar.h \
433 mathed/InsetMathColor.h \
434 mathed/CommandInset.h \
435 mathed/InsetMathComment.h \
436 mathed/InsetMathDelim.h \
437 mathed/InsetMathDiff.h \
438 mathed/InsetMathDots.h \
439 mathed/InsetMathEnsureMath.h \
440 mathed/InsetMathEnv.h \
441 mathed/InsetMathExFunc.h \
442 mathed/InsetMathExInt.h \
443 mathed/InsetMathFont.h \
444 mathed/InsetMathFontOld.h \
445 mathed/InsetMathFrac.h \
446 mathed/InsetMathGrid.h \
448 mathed/InsetMathHull.h \
449 mathed/InsetMathKern.h \
450 mathed/InsetMathLefteqn.h \
451 mathed/InsetMathLim.h \
453 mathed/InsetMathMatrix.h \
454 mathed/InsetMathNest.h \
455 mathed/InsetMathNumber.h \
456 mathed/InsetMathOverset.h \
457 mathed/InsetMathPar.h \
458 mathed/InsetMathPhantom.h \
459 mathed/InsetMathRef.h \
460 mathed/InsetMathRoot.h \
461 mathed/InsetMathScript.h \
462 mathed/InsetMathSize.h \
463 mathed/InsetMathSpace.h \
464 mathed/InsetMathSpecialChar.h \
465 mathed/InsetMathSplit.h \
466 mathed/InsetMathSqrt.h \
467 mathed/InsetMathStackrel.h \
468 mathed/InsetMathString.h \
469 mathed/InsetMathSubstack.h \
470 mathed/InsetMathSymbol.h \
471 mathed/InsetMathTabular.h \
472 mathed/InsetMathUnderset.h \
473 mathed/InsetMathUnknown.h \
474 mathed/InsetMathXArrow.h \
475 mathed/InsetMathXYMatrix.h \
477 mathed/MathAutoCorrect.h \
479 mathed/MathCompletionList.h \
480 mathed/MathExtern.h \
481 mathed/MathFactory.h \
482 mathed/MathGridInfo.h \
483 mathed/MathMacroArgument.h \
484 mathed/MacroTable.h \
485 mathed/MathMacroTemplate.h \
486 mathed/MathParser.h \
487 mathed/MathParser_flags.h \
488 mathed/ReplaceData.h \
489 mathed/MathStream.h \
490 mathed/MathSupport.h \
494 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
498 BUILT_SOURCES += lyxmathed.cpp
499 CLEANFILES += lyxmathed.cpp
501 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
505 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
509 ############################### Insets ##############################
511 noinst_LIBRARIES += liblyxinsets.a
513 SOURCEFILESINSETS = \
514 insets/ExternalSupport.cpp \
515 insets/ExternalTemplate.cpp \
516 insets/ExternalTransforms.cpp \
517 insets/RenderButton.cpp \
518 insets/RenderGraphic.cpp \
519 insets/RenderPreview.cpp \
521 insets/InsetArgument.cpp \
522 insets/InsetBibitem.cpp \
523 insets/InsetBibtex.cpp \
524 insets/InsetBox.cpp \
525 insets/InsetBranch.cpp \
526 insets/InsetCaption.cpp \
527 insets/InsetCitation.cpp \
528 insets/InsetCollapsable.cpp \
529 insets/InsetCommand.cpp \
530 insets/InsetCommandParams.cpp \
531 insets/InsetERT.cpp \
532 insets/InsetExternal.cpp \
533 insets/InsetFlex.cpp \
534 insets/InsetFloat.cpp \
535 insets/InsetFloatList.cpp \
536 insets/InsetFoot.cpp \
537 insets/InsetFootlike.cpp \
538 insets/InsetGraphicsParams.cpp \
539 insets/InsetGraphics.cpp \
540 insets/InsetHyperlink.cpp \
541 insets/InsetInclude.cpp \
542 insets/InsetIndex.cpp \
543 insets/InsetInfo.cpp \
544 insets/InsetLabel.cpp \
545 insets/InsetLayout.cpp \
546 insets/InsetLine.cpp \
547 insets/InsetListings.cpp \
548 insets/InsetListingsParams.cpp \
549 insets/InsetMarginal.cpp \
550 insets/InsetNewline.cpp \
551 insets/InsetNewpage.cpp \
552 insets/InsetNomencl.cpp \
553 insets/InsetNote.cpp \
554 insets/InsetPhantom.cpp \
555 insets/InsetPreview.cpp \
556 insets/InsetQuotes.cpp \
557 insets/InsetRef.cpp \
558 insets/InsetSpace.cpp \
559 insets/InsetSpecialChar.cpp \
560 insets/InsetTabular.cpp \
561 insets/InsetText.cpp \
562 insets/InsetTOC.cpp \
563 insets/InsetVSpace.cpp \
566 HEADERFILESINSETS = \
567 insets/ExternalSupport.h \
568 insets/ExternalTemplate.h \
569 insets/ExternalTransforms.h \
570 insets/RenderBase.h \
571 insets/RenderButton.h \
572 insets/RenderGraphic.h \
573 insets/RenderPreview.h \
575 insets/InsetArgument.h \
576 insets/InsetBibitem.h \
577 insets/InsetBibtex.h \
579 insets/InsetBranch.h \
580 insets/InsetCaption.h \
581 insets/InsetCitation.h \
583 insets/InsetCollapsable.h \
584 insets/InsetCommand.h \
585 insets/InsetCommandParams.h \
587 insets/InsetExternal.h \
589 insets/InsetFloat.h \
591 insets/InsetFloatList.h \
592 insets/InsetFootlike.h \
593 insets/InsetGraphicsParams.h \
594 insets/InsetGraphics.h \
595 insets/InsetHyperlink.h \
596 insets/InsetInclude.h \
597 insets/InsetIndex.h \
599 insets/InsetPreview.h \
600 insets/InsetLabel.h \
601 insets/InsetLayout.h \
603 insets/InsetListings.h \
604 insets/InsetListingsParams.h \
605 insets/InsetMarginal.h \
606 insets/InsetNewline.h \
607 insets/InsetNewpage.h \
608 insets/InsetNomencl.h \
610 insets/InsetPhantom.h \
611 insets/InsetQuotes.h \
613 insets/InsetSpace.h \
614 insets/InsetSpecialChar.h \
615 insets/InsetTabular.h \
618 insets/InsetVSpace.h \
621 # insets/InsetList.cpp \
622 # insets/InsetList.h \
623 # insets/InsetSection.h \
624 # insets/InsetSection.cpp
627 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
631 BUILT_SOURCES += lyxinsets.cpp
632 CLEANFILES += lyxinsets.cpp
634 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
638 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)