1 include $(top_srcdir)/config/common.am
3 ############################### Core ##############################
5 DISTCLEANFILES += config.h libintl.h
7 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES)
8 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
10 if BUILD_CLIENT_SUBDIR
14 SUBDIRS = support frontends . $(CLIENT) tex2lyx
16 EXTRA_DIST = Section.h \
23 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) \
24 @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
26 noinst_LIBRARIES = liblyxcore.a
33 frontends/liblyxfrontends.a \
34 frontends/qt4/liblyxqt4.a \
36 support/liblyxsupport.a \
43 cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
44 windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
49 BUILT_SOURCES = $(PCH_FILE)
52 ASPELL = ASpell.cpp ASpell_local.h
56 HUNSPELL = HunspellSpellChecker.cpp HunspellSpellChecker.h
59 # These four objects are linked as object files as they are not
60 # referenced within the core and therefore are not picked up
61 # by the linker without looping over libs. We do not want that,
62 # and in fact libtools seems not able to do that.
79 lyx_SOURCES += lyxwinres.rc
130 LayoutModuleList.cpp \
148 output_plaintext.cpp \
150 paragraph_funcs.cpp \
151 ParagraphMetrics.cpp \
152 ParagraphParameters.cpp \
256 ParagraphParameters.h \
287 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
291 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
292 CLEANFILES += lyxcore.cpp
294 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
298 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
302 ############################### Graphics ##############################
304 noinst_LIBRARIES += liblyxgraphics.a
306 liblyxgraphics_a_SOURCES = \
307 graphics/GraphicsCache.h \
308 graphics/GraphicsCache.cpp \
309 graphics/GraphicsCacheItem.h \
310 graphics/GraphicsCacheItem.cpp \
311 graphics/GraphicsConverter.h \
312 graphics/GraphicsConverter.cpp \
313 graphics/GraphicsImage.h \
314 graphics/GraphicsLoader.h \
315 graphics/GraphicsLoader.cpp \
316 graphics/GraphicsParams.cpp \
317 graphics/GraphicsParams.h \
318 graphics/GraphicsTypes.h \
319 graphics/PreviewImage.h \
320 graphics/PreviewImage.cpp \
321 graphics/PreviewLoader.h \
322 graphics/PreviewLoader.cpp \
323 graphics/Previews.h \
324 graphics/Previews.cpp
327 ############################### Mathed ##############################
329 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
331 noinst_LIBRARIES += liblyxmathed.a
333 SOURCEFILESMATHED = \
334 mathed/InsetMathAMSArray.cpp \
335 mathed/InsetMathArray.cpp \
336 mathed/InsetMathBig.cpp \
337 mathed/InsetMathBoldSymbol.cpp \
338 mathed/InsetMathBox.cpp \
339 mathed/InsetMathBrace.cpp \
340 mathed/InsetMath.cpp \
341 mathed/InsetMathCases.cpp \
342 mathed/InsetMathChar.cpp \
343 mathed/InsetMathColor.cpp \
344 mathed/CommandInset.cpp \
345 mathed/InsetMathComment.cpp \
346 mathed/InsetMathDecoration.cpp \
347 mathed/InsetMathDecoration.h \
348 mathed/InsetMathDelim.cpp \
349 mathed/InsetMathDiff.cpp \
350 mathed/InsetMathDots.cpp \
351 mathed/InsetMathEnsureMath.cpp \
352 mathed/InsetMathEnv.cpp \
353 mathed/InsetMathExFunc.cpp \
354 mathed/InsetMathExInt.cpp \
355 mathed/InsetMathFont.cpp \
356 mathed/InsetMathFontOld.cpp \
357 mathed/InsetMathFrac.cpp \
358 mathed/InsetMathGrid.cpp \
359 mathed/InsetMathHull.cpp \
360 mathed/InsetMathKern.cpp \
361 mathed/InsetMathLefteqn.cpp \
362 mathed/InsetMathLim.cpp \
363 mathed/MathMacro.cpp \
364 mathed/InsetMathMatrix.cpp \
365 mathed/InsetMathNest.cpp \
366 mathed/InsetMathNumber.cpp \
367 mathed/InsetMathOverset.cpp \
368 mathed/InsetMathPar.cpp \
369 mathed/InsetMathPhantom.cpp \
370 mathed/InsetMathRef.cpp \
371 mathed/InsetMathRoot.cpp \
372 mathed/InsetMathScript.cpp \
373 mathed/InsetMathSize.cpp \
374 mathed/InsetMathSpace.cpp \
375 mathed/InsetMathSpecialChar.cpp \
376 mathed/InsetMathSplit.cpp \
377 mathed/InsetMathSqrt.cpp \
378 mathed/InsetMathStackrel.cpp \
379 mathed/InsetMathString.cpp \
380 mathed/InsetMathSubstack.cpp \
381 mathed/InsetMathSymbol.cpp \
382 mathed/InsetMathTabular.cpp \
383 mathed/InsetMathUnderset.cpp \
384 mathed/InsetMathUnknown.cpp \
385 mathed/InsetMathXArrow.cpp \
386 mathed/InsetMathXYMatrix.cpp \
387 mathed/MathAtom.cpp \
388 mathed/MathAutoCorrect.cpp \
389 mathed/MathData.cpp \
390 mathed/MathExtern.cpp \
391 mathed/MathFactory.cpp \
392 mathed/MathMacroArgument.cpp \
393 mathed/MacroTable.cpp \
394 mathed/MathMacroTemplate.cpp \
395 mathed/MathParser.cpp \
396 mathed/MathStream.cpp \
397 mathed/MathSupport.cpp \
398 mathed/TextPainter.cpp
400 HEADERFILESMATHED = \
401 mathed/InsetMathAMSArray.h \
402 mathed/InsetMathArray.h \
403 mathed/InsetMathBig.h \
404 mathed/InsetMathBoldSymbol.h \
405 mathed/InsetMathBox.h \
406 mathed/InsetMathBrace.h \
407 mathed/InsetMathCases.h \
408 mathed/InsetMathChar.h \
409 mathed/InsetMathColor.h \
410 mathed/CommandInset.h \
411 mathed/InsetMathComment.h \
412 mathed/InsetMathDelim.h \
413 mathed/InsetMathDiff.h \
414 mathed/InsetMathDots.h \
415 mathed/InsetMathEnsureMath.h \
416 mathed/InsetMathEnv.h \
417 mathed/InsetMathExFunc.h \
418 mathed/InsetMathExInt.h \
419 mathed/InsetMathFont.h \
420 mathed/InsetMathFontOld.h \
421 mathed/InsetMathFrac.h \
422 mathed/InsetMathGrid.h \
424 mathed/InsetMathHull.h \
425 mathed/InsetMathKern.h \
426 mathed/InsetMathLefteqn.h \
427 mathed/InsetMathLim.h \
429 mathed/InsetMathMatrix.h \
430 mathed/InsetMathNest.h \
431 mathed/InsetMathNumber.h \
432 mathed/InsetMathOverset.h \
433 mathed/InsetMathPar.h \
434 mathed/InsetMathPhantom.h \
435 mathed/InsetMathRef.h \
436 mathed/InsetMathRoot.h \
437 mathed/InsetMathScript.h \
438 mathed/InsetMathSize.h \
439 mathed/InsetMathSpace.h \
440 mathed/InsetMathSpecialChar.h \
441 mathed/InsetMathSplit.h \
442 mathed/InsetMathSqrt.h \
443 mathed/InsetMathStackrel.h \
444 mathed/InsetMathString.h \
445 mathed/InsetMathSubstack.h \
446 mathed/InsetMathSymbol.h \
447 mathed/InsetMathTabular.h \
448 mathed/InsetMathUnderset.h \
449 mathed/InsetMathUnknown.h \
450 mathed/InsetMathXArrow.h \
451 mathed/InsetMathXYMatrix.h \
453 mathed/MathAutoCorrect.h \
455 mathed/MathCompletionList.h \
456 mathed/MathExtern.h \
457 mathed/MathFactory.h \
458 mathed/MathGridInfo.h \
459 mathed/MathMacroArgument.h \
460 mathed/MacroTable.h \
461 mathed/MathMacroTemplate.h \
462 mathed/MathParser.h \
463 mathed/MathParser_flags.h \
464 mathed/ReplaceData.h \
465 mathed/MathStream.h \
466 mathed/MathSupport.h \
470 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
474 BUILT_SOURCES += lyxmathed.cpp
475 CLEANFILES += lyxmathed.cpp
477 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
481 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
485 ############################### Insets ##############################
487 noinst_LIBRARIES += liblyxinsets.a
489 SOURCEFILESINSETS = \
490 insets/ExternalSupport.cpp \
491 insets/ExternalTemplate.cpp \
492 insets/ExternalTransforms.cpp \
493 insets/RenderButton.cpp \
494 insets/RenderGraphic.cpp \
495 insets/RenderPreview.cpp \
497 insets/InsetBibitem.cpp \
498 insets/InsetBibtex.cpp \
499 insets/InsetBox.cpp \
500 insets/InsetBranch.cpp \
501 insets/InsetCaption.cpp \
502 insets/InsetCitation.cpp \
503 insets/InsetCollapsable.cpp \
504 insets/InsetCommand.cpp \
505 insets/InsetCommandParams.cpp \
506 insets/InsetERT.cpp \
507 insets/InsetExternal.cpp \
508 insets/InsetFlex.cpp \
509 insets/InsetFloat.cpp \
510 insets/InsetFloatList.cpp \
511 insets/InsetFoot.cpp \
512 insets/InsetFootlike.cpp \
513 insets/InsetGraphicsParams.cpp \
514 insets/InsetGraphics.cpp \
515 insets/InsetHyperlink.cpp \
516 insets/InsetInclude.cpp \
517 insets/InsetIndex.cpp \
518 insets/InsetInfo.cpp \
519 insets/InsetLabel.cpp \
520 insets/InsetLayout.cpp \
521 insets/InsetLine.cpp \
522 insets/InsetListings.cpp \
523 insets/InsetListingsParams.cpp \
524 insets/InsetMarginal.cpp \
525 insets/InsetNewline.cpp \
526 insets/InsetNewpage.cpp \
527 insets/InsetNomencl.cpp \
528 insets/InsetNote.cpp \
529 insets/InsetOptArg.cpp \
530 insets/InsetPhantom.cpp \
531 insets/InsetQuotes.cpp \
532 insets/InsetRef.cpp \
533 insets/InsetSpace.cpp \
534 insets/InsetSpecialChar.cpp \
535 insets/InsetTabular.cpp \
536 insets/InsetText.cpp \
537 insets/InsetTOC.cpp \
538 insets/InsetVSpace.cpp \
541 HEADERFILESINSETS = \
542 insets/ExternalSupport.h \
543 insets/ExternalTemplate.h \
544 insets/ExternalTransforms.h \
545 insets/RenderBase.h \
546 insets/RenderButton.h \
547 insets/RenderGraphic.h \
548 insets/RenderPreview.h \
550 insets/InsetBibitem.h \
551 insets/InsetBibtex.h \
553 insets/InsetBranch.h \
554 insets/InsetCaption.h \
555 insets/InsetCitation.h \
557 insets/InsetCollapsable.h \
558 insets/InsetCommand.h \
559 insets/InsetCommandParams.h \
561 insets/InsetExternal.h \
563 insets/InsetFloat.h \
565 insets/InsetFloatList.h \
566 insets/InsetFootlike.h \
567 insets/InsetGraphicsParams.h \
568 insets/InsetGraphics.h \
569 insets/InsetHyperlink.h \
570 insets/InsetInclude.h \
571 insets/InsetIndex.h \
573 insets/InsetLabel.h \
574 insets/InsetLayout.h \
576 insets/InsetListings.h \
577 insets/InsetListingsParams.h \
578 insets/InsetMarginal.h \
579 insets/InsetNewline.h \
580 insets/InsetNewpage.h \
581 insets/InsetNomencl.h \
583 insets/InsetOptArg.h \
584 insets/InsetPhantom.h \
585 insets/InsetQuotes.h \
587 insets/InsetSpace.h \
588 insets/InsetSpecialChar.h \
589 insets/InsetTabular.h \
592 insets/InsetVSpace.h \
595 # insets/InsetList.cpp \
596 # insets/InsetList.h \
597 # insets/InsetSection.h \
598 # insets/InsetSection.cpp
601 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
605 BUILT_SOURCES += lyxinsets.cpp
606 CLEANFILES += lyxinsets.cpp
608 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
612 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)