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 APPLESPELL = 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.
86 lyx_SOURCES += lyxwinres.rc
137 LayoutModuleList.cpp \
154 output_plaintext.cpp \
156 ParagraphMetrics.cpp \
157 ParagraphParameters.cpp \
260 ParagraphParameters.h \
291 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
295 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
296 CLEANFILES += lyxcore.cpp
298 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
302 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
306 ######################### Qt stuff ##############################
308 MOCHEADER = Compare.h
312 MOCHEADER += Server.h
317 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
319 BUILT_SOURCES += $(MOCEDFILES)
320 CLEANFILES += $(MOCEDFILES)
323 $(MOC4) $(MOCFLAG) -o $@ $<
325 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
327 ############################### Graphics ##############################
329 noinst_LIBRARIES += liblyxgraphics.a
331 liblyxgraphics_a_SOURCES = \
332 graphics/GraphicsCache.h \
333 graphics/GraphicsCache.cpp \
334 graphics/GraphicsCacheItem.h \
335 graphics/GraphicsCacheItem.cpp \
336 graphics/GraphicsConverter.h \
337 graphics/GraphicsConverter.cpp \
338 graphics/GraphicsImage.h \
339 graphics/GraphicsLoader.h \
340 graphics/GraphicsLoader.cpp \
341 graphics/GraphicsParams.cpp \
342 graphics/GraphicsParams.h \
343 graphics/GraphicsTypes.h \
344 graphics/PreviewImage.h \
345 graphics/PreviewImage.cpp \
346 graphics/PreviewLoader.h \
347 graphics/PreviewLoader.cpp \
348 graphics/Previews.h \
349 graphics/Previews.cpp
352 ############################### Mathed ##############################
354 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
356 noinst_LIBRARIES += liblyxmathed.a
358 SOURCEFILESMATHED = \
359 mathed/InsetMathAMSArray.cpp \
360 mathed/InsetMathArray.cpp \
361 mathed/InsetMathBig.cpp \
362 mathed/InsetMathBoldSymbol.cpp \
363 mathed/InsetMathBox.cpp \
364 mathed/InsetMathBrace.cpp \
365 mathed/InsetMath.cpp \
366 mathed/InsetMathCases.cpp \
367 mathed/InsetMathChar.cpp \
368 mathed/InsetMathColor.cpp \
369 mathed/CommandInset.cpp \
370 mathed/InsetMathComment.cpp \
371 mathed/InsetMathDecoration.cpp \
372 mathed/InsetMathDecoration.h \
373 mathed/InsetMathDelim.cpp \
374 mathed/InsetMathDiff.cpp \
375 mathed/InsetMathDots.cpp \
376 mathed/InsetMathEnsureMath.cpp \
377 mathed/InsetMathEnv.cpp \
378 mathed/InsetMathExFunc.cpp \
379 mathed/InsetMathExInt.cpp \
380 mathed/InsetMathFont.cpp \
381 mathed/InsetMathFontOld.cpp \
382 mathed/InsetMathFrac.cpp \
383 mathed/InsetMathGrid.cpp \
384 mathed/InsetMathHull.cpp \
385 mathed/InsetMathKern.cpp \
386 mathed/InsetMathLefteqn.cpp \
387 mathed/InsetMathLim.cpp \
388 mathed/MathMacro.cpp \
389 mathed/InsetMathMatrix.cpp \
390 mathed/InsetMathNest.cpp \
391 mathed/InsetMathNumber.cpp \
392 mathed/InsetMathOverset.cpp \
393 mathed/InsetMathPar.cpp \
394 mathed/InsetMathPhantom.cpp \
395 mathed/InsetMathRef.cpp \
396 mathed/InsetMathRoot.cpp \
397 mathed/InsetMathScript.cpp \
398 mathed/InsetMathSize.cpp \
399 mathed/InsetMathSpace.cpp \
400 mathed/InsetMathSpecialChar.cpp \
401 mathed/InsetMathSplit.cpp \
402 mathed/InsetMathSqrt.cpp \
403 mathed/InsetMathStackrel.cpp \
404 mathed/InsetMathString.cpp \
405 mathed/InsetMathSubstack.cpp \
406 mathed/InsetMathSymbol.cpp \
407 mathed/InsetMathTabular.cpp \
408 mathed/InsetMathUnderset.cpp \
409 mathed/InsetMathUnknown.cpp \
410 mathed/InsetMathXArrow.cpp \
411 mathed/InsetMathXYMatrix.cpp \
412 mathed/MathAtom.cpp \
413 mathed/MathAutoCorrect.cpp \
414 mathed/MathData.cpp \
415 mathed/MathExtern.cpp \
416 mathed/MathFactory.cpp \
417 mathed/MathMacroArgument.cpp \
418 mathed/MacroTable.cpp \
419 mathed/MathMacroTemplate.cpp \
420 mathed/MathParser.cpp \
421 mathed/MathStream.cpp \
422 mathed/MathSupport.cpp \
423 mathed/TextPainter.cpp
425 HEADERFILESMATHED = \
426 mathed/InsetMathAMSArray.h \
427 mathed/InsetMathArray.h \
428 mathed/InsetMathBig.h \
429 mathed/InsetMathBoldSymbol.h \
430 mathed/InsetMathBox.h \
431 mathed/InsetMathBrace.h \
432 mathed/InsetMathCases.h \
433 mathed/InsetMathChar.h \
434 mathed/InsetMathColor.h \
435 mathed/CommandInset.h \
436 mathed/InsetMathComment.h \
437 mathed/InsetMathDelim.h \
438 mathed/InsetMathDiff.h \
439 mathed/InsetMathDots.h \
440 mathed/InsetMathEnsureMath.h \
441 mathed/InsetMathEnv.h \
442 mathed/InsetMathExFunc.h \
443 mathed/InsetMathExInt.h \
444 mathed/InsetMathFont.h \
445 mathed/InsetMathFontOld.h \
446 mathed/InsetMathFrac.h \
447 mathed/InsetMathGrid.h \
449 mathed/InsetMathHull.h \
450 mathed/InsetMathKern.h \
451 mathed/InsetMathLefteqn.h \
452 mathed/InsetMathLim.h \
454 mathed/InsetMathMatrix.h \
455 mathed/InsetMathNest.h \
456 mathed/InsetMathNumber.h \
457 mathed/InsetMathOverset.h \
458 mathed/InsetMathPar.h \
459 mathed/InsetMathPhantom.h \
460 mathed/InsetMathRef.h \
461 mathed/InsetMathRoot.h \
462 mathed/InsetMathScript.h \
463 mathed/InsetMathSize.h \
464 mathed/InsetMathSpace.h \
465 mathed/InsetMathSpecialChar.h \
466 mathed/InsetMathSplit.h \
467 mathed/InsetMathSqrt.h \
468 mathed/InsetMathStackrel.h \
469 mathed/InsetMathString.h \
470 mathed/InsetMathSubstack.h \
471 mathed/InsetMathSymbol.h \
472 mathed/InsetMathTabular.h \
473 mathed/InsetMathUnderset.h \
474 mathed/InsetMathUnknown.h \
475 mathed/InsetMathXArrow.h \
476 mathed/InsetMathXYMatrix.h \
478 mathed/MathAutoCorrect.h \
480 mathed/MathCompletionList.h \
481 mathed/MathExtern.h \
482 mathed/MathFactory.h \
483 mathed/MathGridInfo.h \
484 mathed/MathMacroArgument.h \
485 mathed/MacroTable.h \
486 mathed/MathMacroTemplate.h \
487 mathed/MathParser.h \
488 mathed/MathParser_flags.h \
489 mathed/ReplaceData.h \
490 mathed/MathStream.h \
491 mathed/MathSupport.h \
495 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
499 BUILT_SOURCES += lyxmathed.cpp
500 CLEANFILES += lyxmathed.cpp
502 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
506 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
510 ############################### Insets ##############################
512 noinst_LIBRARIES += liblyxinsets.a
514 SOURCEFILESINSETS = \
515 insets/ExternalSupport.cpp \
516 insets/ExternalTemplate.cpp \
517 insets/ExternalTransforms.cpp \
518 insets/RenderButton.cpp \
519 insets/RenderGraphic.cpp \
520 insets/RenderPreview.cpp \
522 insets/InsetArgument.cpp \
523 insets/InsetBibitem.cpp \
524 insets/InsetBibtex.cpp \
525 insets/InsetBox.cpp \
526 insets/InsetBranch.cpp \
527 insets/InsetCaption.cpp \
528 insets/InsetCitation.cpp \
529 insets/InsetCollapsable.cpp \
530 insets/InsetCommand.cpp \
531 insets/InsetCommandParams.cpp \
532 insets/InsetERT.cpp \
533 insets/InsetExternal.cpp \
534 insets/InsetFlex.cpp \
535 insets/InsetFloat.cpp \
536 insets/InsetFloatList.cpp \
537 insets/InsetFoot.cpp \
538 insets/InsetFootlike.cpp \
539 insets/InsetGraphicsParams.cpp \
540 insets/InsetGraphics.cpp \
541 insets/InsetHyperlink.cpp \
542 insets/InsetInclude.cpp \
543 insets/InsetIndex.cpp \
544 insets/InsetInfo.cpp \
545 insets/InsetLabel.cpp \
546 insets/InsetLayout.cpp \
547 insets/InsetLine.cpp \
548 insets/InsetListings.cpp \
549 insets/InsetListingsParams.cpp \
550 insets/InsetMarginal.cpp \
551 insets/InsetNewline.cpp \
552 insets/InsetNewpage.cpp \
553 insets/InsetNomencl.cpp \
554 insets/InsetNote.cpp \
555 insets/InsetPhantom.cpp \
556 insets/InsetPreview.cpp \
557 insets/InsetQuotes.cpp \
558 insets/InsetRef.cpp \
559 insets/InsetSpace.cpp \
560 insets/InsetSpecialChar.cpp \
561 insets/InsetTabular.cpp \
562 insets/InsetText.cpp \
563 insets/InsetTOC.cpp \
564 insets/InsetVSpace.cpp \
567 HEADERFILESINSETS = \
568 insets/ExternalSupport.h \
569 insets/ExternalTemplate.h \
570 insets/ExternalTransforms.h \
571 insets/RenderBase.h \
572 insets/RenderButton.h \
573 insets/RenderGraphic.h \
574 insets/RenderPreview.h \
576 insets/InsetArgument.h \
577 insets/InsetBibitem.h \
578 insets/InsetBibtex.h \
580 insets/InsetBranch.h \
581 insets/InsetCaption.h \
582 insets/InsetCitation.h \
584 insets/InsetCollapsable.h \
585 insets/InsetCommand.h \
586 insets/InsetCommandParams.h \
588 insets/InsetExternal.h \
590 insets/InsetFloat.h \
592 insets/InsetFloatList.h \
593 insets/InsetFootlike.h \
594 insets/InsetGraphicsParams.h \
595 insets/InsetGraphics.h \
596 insets/InsetHyperlink.h \
597 insets/InsetInclude.h \
598 insets/InsetIndex.h \
600 insets/InsetPreview.h \
601 insets/InsetLabel.h \
602 insets/InsetLayout.h \
604 insets/InsetListings.h \
605 insets/InsetListingsParams.h \
606 insets/InsetMarginal.h \
607 insets/InsetNewline.h \
608 insets/InsetNewpage.h \
609 insets/InsetNomencl.h \
611 insets/InsetPhantom.h \
612 insets/InsetQuotes.h \
614 insets/InsetSpace.h \
615 insets/InsetSpecialChar.h \
616 insets/InsetTabular.h \
619 insets/InsetVSpace.h \
622 # insets/InsetList.cpp \
623 # insets/InsetList.h \
624 # insets/InsetSection.h \
625 # insets/InsetSection.cpp
628 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
632 BUILT_SOURCES += lyxinsets.cpp
633 CLEANFILES += lyxinsets.cpp
635 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
639 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)