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