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 = AspellChecker.cpp AspellChecker.h
56 HUNSPELL = HunspellChecker.cpp HunspellChecker.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 ParagraphMetrics.cpp \
151 ParagraphParameters.cpp \
254 ParagraphParameters.h \
285 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
289 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
290 CLEANFILES += lyxcore.cpp
292 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
296 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
304 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
306 BUILT_SOURCES += $(MOCEDFILES)
307 CLEANFILES += $(MOCEDFILES)
310 $(MOC4) -D_WIN32 -o $@ $<
312 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
316 ############################### Graphics ##############################
318 noinst_LIBRARIES += liblyxgraphics.a
320 liblyxgraphics_a_SOURCES = \
321 graphics/GraphicsCache.h \
322 graphics/GraphicsCache.cpp \
323 graphics/GraphicsCacheItem.h \
324 graphics/GraphicsCacheItem.cpp \
325 graphics/GraphicsConverter.h \
326 graphics/GraphicsConverter.cpp \
327 graphics/GraphicsImage.h \
328 graphics/GraphicsLoader.h \
329 graphics/GraphicsLoader.cpp \
330 graphics/GraphicsParams.cpp \
331 graphics/GraphicsParams.h \
332 graphics/GraphicsTypes.h \
333 graphics/PreviewImage.h \
334 graphics/PreviewImage.cpp \
335 graphics/PreviewLoader.h \
336 graphics/PreviewLoader.cpp \
337 graphics/Previews.h \
338 graphics/Previews.cpp
341 ############################### Mathed ##############################
343 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
345 noinst_LIBRARIES += liblyxmathed.a
347 SOURCEFILESMATHED = \
348 mathed/InsetMathAMSArray.cpp \
349 mathed/InsetMathArray.cpp \
350 mathed/InsetMathBig.cpp \
351 mathed/InsetMathBoldSymbol.cpp \
352 mathed/InsetMathBox.cpp \
353 mathed/InsetMathBrace.cpp \
354 mathed/InsetMath.cpp \
355 mathed/InsetMathCases.cpp \
356 mathed/InsetMathChar.cpp \
357 mathed/InsetMathColor.cpp \
358 mathed/CommandInset.cpp \
359 mathed/InsetMathComment.cpp \
360 mathed/InsetMathDecoration.cpp \
361 mathed/InsetMathDecoration.h \
362 mathed/InsetMathDelim.cpp \
363 mathed/InsetMathDiff.cpp \
364 mathed/InsetMathDots.cpp \
365 mathed/InsetMathEnsureMath.cpp \
366 mathed/InsetMathEnv.cpp \
367 mathed/InsetMathExFunc.cpp \
368 mathed/InsetMathExInt.cpp \
369 mathed/InsetMathFont.cpp \
370 mathed/InsetMathFontOld.cpp \
371 mathed/InsetMathFrac.cpp \
372 mathed/InsetMathGrid.cpp \
373 mathed/InsetMathHull.cpp \
374 mathed/InsetMathKern.cpp \
375 mathed/InsetMathLefteqn.cpp \
376 mathed/InsetMathLim.cpp \
377 mathed/MathMacro.cpp \
378 mathed/InsetMathMatrix.cpp \
379 mathed/InsetMathNest.cpp \
380 mathed/InsetMathNumber.cpp \
381 mathed/InsetMathOverset.cpp \
382 mathed/InsetMathPar.cpp \
383 mathed/InsetMathPhantom.cpp \
384 mathed/InsetMathRef.cpp \
385 mathed/InsetMathRoot.cpp \
386 mathed/InsetMathScript.cpp \
387 mathed/InsetMathSize.cpp \
388 mathed/InsetMathSpace.cpp \
389 mathed/InsetMathSpecialChar.cpp \
390 mathed/InsetMathSplit.cpp \
391 mathed/InsetMathSqrt.cpp \
392 mathed/InsetMathStackrel.cpp \
393 mathed/InsetMathString.cpp \
394 mathed/InsetMathSubstack.cpp \
395 mathed/InsetMathSymbol.cpp \
396 mathed/InsetMathTabular.cpp \
397 mathed/InsetMathUnderset.cpp \
398 mathed/InsetMathUnknown.cpp \
399 mathed/InsetMathXArrow.cpp \
400 mathed/InsetMathXYMatrix.cpp \
401 mathed/MathAtom.cpp \
402 mathed/MathAutoCorrect.cpp \
403 mathed/MathData.cpp \
404 mathed/MathExtern.cpp \
405 mathed/MathFactory.cpp \
406 mathed/MathMacroArgument.cpp \
407 mathed/MacroTable.cpp \
408 mathed/MathMacroTemplate.cpp \
409 mathed/MathParser.cpp \
410 mathed/MathStream.cpp \
411 mathed/MathSupport.cpp \
412 mathed/TextPainter.cpp
414 HEADERFILESMATHED = \
415 mathed/InsetMathAMSArray.h \
416 mathed/InsetMathArray.h \
417 mathed/InsetMathBig.h \
418 mathed/InsetMathBoldSymbol.h \
419 mathed/InsetMathBox.h \
420 mathed/InsetMathBrace.h \
421 mathed/InsetMathCases.h \
422 mathed/InsetMathChar.h \
423 mathed/InsetMathColor.h \
424 mathed/CommandInset.h \
425 mathed/InsetMathComment.h \
426 mathed/InsetMathDelim.h \
427 mathed/InsetMathDiff.h \
428 mathed/InsetMathDots.h \
429 mathed/InsetMathEnsureMath.h \
430 mathed/InsetMathEnv.h \
431 mathed/InsetMathExFunc.h \
432 mathed/InsetMathExInt.h \
433 mathed/InsetMathFont.h \
434 mathed/InsetMathFontOld.h \
435 mathed/InsetMathFrac.h \
436 mathed/InsetMathGrid.h \
438 mathed/InsetMathHull.h \
439 mathed/InsetMathKern.h \
440 mathed/InsetMathLefteqn.h \
441 mathed/InsetMathLim.h \
443 mathed/InsetMathMatrix.h \
444 mathed/InsetMathNest.h \
445 mathed/InsetMathNumber.h \
446 mathed/InsetMathOverset.h \
447 mathed/InsetMathPar.h \
448 mathed/InsetMathPhantom.h \
449 mathed/InsetMathRef.h \
450 mathed/InsetMathRoot.h \
451 mathed/InsetMathScript.h \
452 mathed/InsetMathSize.h \
453 mathed/InsetMathSpace.h \
454 mathed/InsetMathSpecialChar.h \
455 mathed/InsetMathSplit.h \
456 mathed/InsetMathSqrt.h \
457 mathed/InsetMathStackrel.h \
458 mathed/InsetMathString.h \
459 mathed/InsetMathSubstack.h \
460 mathed/InsetMathSymbol.h \
461 mathed/InsetMathTabular.h \
462 mathed/InsetMathUnderset.h \
463 mathed/InsetMathUnknown.h \
464 mathed/InsetMathXArrow.h \
465 mathed/InsetMathXYMatrix.h \
467 mathed/MathAutoCorrect.h \
469 mathed/MathCompletionList.h \
470 mathed/MathExtern.h \
471 mathed/MathFactory.h \
472 mathed/MathGridInfo.h \
473 mathed/MathMacroArgument.h \
474 mathed/MacroTable.h \
475 mathed/MathMacroTemplate.h \
476 mathed/MathParser.h \
477 mathed/MathParser_flags.h \
478 mathed/ReplaceData.h \
479 mathed/MathStream.h \
480 mathed/MathSupport.h \
484 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
488 BUILT_SOURCES += lyxmathed.cpp
489 CLEANFILES += lyxmathed.cpp
491 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
495 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
499 ############################### Insets ##############################
501 noinst_LIBRARIES += liblyxinsets.a
503 SOURCEFILESINSETS = \
504 insets/ExternalSupport.cpp \
505 insets/ExternalTemplate.cpp \
506 insets/ExternalTransforms.cpp \
507 insets/RenderButton.cpp \
508 insets/RenderGraphic.cpp \
509 insets/RenderPreview.cpp \
511 insets/InsetBibitem.cpp \
512 insets/InsetBibtex.cpp \
513 insets/InsetBox.cpp \
514 insets/InsetBranch.cpp \
515 insets/InsetCaption.cpp \
516 insets/InsetCitation.cpp \
517 insets/InsetCollapsable.cpp \
518 insets/InsetCommand.cpp \
519 insets/InsetCommandParams.cpp \
520 insets/InsetERT.cpp \
521 insets/InsetExternal.cpp \
522 insets/InsetFlex.cpp \
523 insets/InsetFloat.cpp \
524 insets/InsetFloatList.cpp \
525 insets/InsetFoot.cpp \
526 insets/InsetFootlike.cpp \
527 insets/InsetGraphicsParams.cpp \
528 insets/InsetGraphics.cpp \
529 insets/InsetHyperlink.cpp \
530 insets/InsetInclude.cpp \
531 insets/InsetIndex.cpp \
532 insets/InsetInfo.cpp \
533 insets/InsetLabel.cpp \
534 insets/InsetLayout.cpp \
535 insets/InsetLine.cpp \
536 insets/InsetListings.cpp \
537 insets/InsetListingsParams.cpp \
538 insets/InsetMarginal.cpp \
539 insets/InsetNewline.cpp \
540 insets/InsetNewpage.cpp \
541 insets/InsetNomencl.cpp \
542 insets/InsetNote.cpp \
543 insets/InsetOptArg.cpp \
544 insets/InsetPhantom.cpp \
545 insets/InsetQuotes.cpp \
546 insets/InsetRef.cpp \
547 insets/InsetSpace.cpp \
548 insets/InsetSpecialChar.cpp \
549 insets/InsetTabular.cpp \
550 insets/InsetText.cpp \
551 insets/InsetTOC.cpp \
552 insets/InsetVSpace.cpp \
555 HEADERFILESINSETS = \
556 insets/ExternalSupport.h \
557 insets/ExternalTemplate.h \
558 insets/ExternalTransforms.h \
559 insets/RenderBase.h \
560 insets/RenderButton.h \
561 insets/RenderGraphic.h \
562 insets/RenderPreview.h \
564 insets/InsetBibitem.h \
565 insets/InsetBibtex.h \
567 insets/InsetBranch.h \
568 insets/InsetCaption.h \
569 insets/InsetCitation.h \
571 insets/InsetCollapsable.h \
572 insets/InsetCommand.h \
573 insets/InsetCommandParams.h \
575 insets/InsetExternal.h \
577 insets/InsetFloat.h \
579 insets/InsetFloatList.h \
580 insets/InsetFootlike.h \
581 insets/InsetGraphicsParams.h \
582 insets/InsetGraphics.h \
583 insets/InsetHyperlink.h \
584 insets/InsetInclude.h \
585 insets/InsetIndex.h \
587 insets/InsetLabel.h \
588 insets/InsetLayout.h \
590 insets/InsetListings.h \
591 insets/InsetListingsParams.h \
592 insets/InsetMarginal.h \
593 insets/InsetNewline.h \
594 insets/InsetNewpage.h \
595 insets/InsetNomencl.h \
597 insets/InsetOptArg.h \
598 insets/InsetPhantom.h \
599 insets/InsetQuotes.h \
601 insets/InsetSpace.h \
602 insets/InsetSpecialChar.h \
603 insets/InsetTabular.h \
606 insets/InsetVSpace.h \
609 # insets/InsetList.cpp \
610 # insets/InsetList.h \
611 # insets/InsetSection.h \
612 # insets/InsetSection.cpp
615 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
619 BUILT_SOURCES += lyxinsets.cpp
620 CLEANFILES += lyxinsets.cpp
622 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
626 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)