1 include $(top_srcdir)/config/common.am
3 ############################### Core ##############################
5 DISTCLEANFILES += config.h libintl.h
7 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
9 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES)
11 if BUILD_CLIENT_SUBDIR
15 SUBDIRS = support frontends . $(CLIENT) tex2lyx
17 EXTRA_DIST = config.h.in \
25 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
27 noinst_LTLIBRARIES = liblyxcore.la
34 frontends/liblyxfrontends.la \
35 frontends/qt4/liblyxqt4.la \
37 support/liblyxsupport.la \
43 cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
44 windres -I. --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
49 BUILT_SOURCES = $(PCH_FILE)
52 ASPELL = ASpell.cpp ASpell_local.h
55 PSPELL = PSpell.cpp PSpell.h
58 ISPELL = ISpell.cpp ISpell.h
61 # These four objects are linked as object files as they are not
62 # referenced within the core and therefore are not picked up
63 # by the linker without looping over libs. We do not want that,
64 # and in fact libtools seems not able to do that.
67 $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
80 lyx_SOURCES += lyxwinres.rc
145 output_plaintext.cpp \
147 paragraph_funcs.cpp \
148 ParagraphMetrics.cpp \
149 ParagraphParameters.cpp \
249 ParagraphParameters.h \
280 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
284 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
285 CLEANFILES += lyxcore.cpp
287 liblyxcore_la_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
291 liblyxcore_la_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
295 ############################### Graphics ##############################
297 noinst_LTLIBRARIES += liblyxgraphics.la
299 liblyxgraphics_la_SOURCES = \
300 graphics/GraphicsCache.h \
301 graphics/GraphicsCache.cpp \
302 graphics/GraphicsCacheItem.h \
303 graphics/GraphicsCacheItem.cpp \
304 graphics/GraphicsConverter.h \
305 graphics/GraphicsConverter.cpp \
306 graphics/GraphicsImage.h \
307 graphics/GraphicsImage.cpp \
308 graphics/GraphicsLoader.h \
309 graphics/GraphicsLoader.cpp \
310 graphics/GraphicsParams.cpp \
311 graphics/GraphicsParams.h \
312 graphics/GraphicsTypes.h \
313 graphics/GraphicsTypes.cpp \
314 graphics/PreviewImage.h \
315 graphics/PreviewImage.cpp \
316 graphics/PreviewLoader.h \
317 graphics/PreviewLoader.cpp \
318 graphics/Previews.h \
319 graphics/Previews.cpp
322 ############################### Mathed ##############################
324 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
326 noinst_LTLIBRARIES += liblyxmathed.la
328 SOURCEFILESMATHED = \
329 mathed/InsetMathAMSArray.cpp \
330 mathed/InsetMathArray.cpp \
331 mathed/InsetMathBig.cpp \
332 mathed/InsetMathBoldSymbol.cpp \
333 mathed/InsetMathBox.cpp \
334 mathed/InsetMathBrace.cpp \
335 mathed/InsetMath.cpp \
336 mathed/InsetMathCases.cpp \
337 mathed/InsetMathChar.cpp \
338 mathed/InsetMathColor.cpp \
339 mathed/CommandInset.cpp \
340 mathed/InsetMathComment.cpp \
341 mathed/InsetMathDecoration.cpp \
342 mathed/InsetMathDecoration.h \
343 mathed/InsetMathDelim.cpp \
344 mathed/InsetMathDiff.cpp \
345 mathed/InsetMathDots.cpp \
346 mathed/InsetMathEnv.cpp \
347 mathed/InsetMathExFunc.cpp \
348 mathed/InsetMathExInt.cpp \
349 mathed/InsetMathFont.cpp \
350 mathed/InsetMathFontOld.cpp \
351 mathed/InsetMathFrac.cpp \
352 mathed/InsetMathGrid.cpp \
353 mathed/InsetMathHull.cpp \
354 mathed/InsetMathKern.cpp \
355 mathed/InsetMathLefteqn.cpp \
356 mathed/InsetMathLim.cpp \
357 mathed/MathMacro.cpp \
358 mathed/InsetMathMatrix.cpp \
359 mathed/InsetMathNest.cpp \
360 mathed/InsetMathNumber.cpp \
361 mathed/InsetMathOverset.cpp \
362 mathed/InsetMathPar.cpp \
363 mathed/InsetMathPhantom.cpp \
364 mathed/InsetMathRef.cpp \
365 mathed/InsetMathRoot.cpp \
366 mathed/InsetMathScript.cpp \
367 mathed/InsetMathSize.cpp \
368 mathed/InsetMathSpace.cpp \
369 mathed/InsetMathSplit.cpp \
370 mathed/InsetMathSqrt.cpp \
371 mathed/InsetMathStackrel.cpp \
372 mathed/InsetMathString.cpp \
373 mathed/InsetMathSubstack.cpp \
374 mathed/InsetMathSymbol.cpp \
375 mathed/InsetMathTabular.cpp \
376 mathed/InsetMathUnderset.cpp \
377 mathed/InsetMathUnknown.cpp \
378 mathed/InsetMathXArrow.cpp \
379 mathed/InsetMathXYMatrix.cpp \
380 mathed/MathAtom.cpp \
381 mathed/MathAutoCorrect.cpp \
382 mathed/MathData.cpp \
383 mathed/MathExtern.cpp \
384 mathed/MathFactory.cpp \
385 mathed/MathMacroArgument.cpp \
386 mathed/MacroTable.cpp \
387 mathed/MathMacroTemplate.cpp \
388 mathed/MathParser.cpp \
389 mathed/MathStream.cpp \
390 mathed/MathSupport.cpp \
391 mathed/TextPainter.cpp
393 HEADERFILESMATHED = \
394 mathed/InsetMathAMSArray.h \
395 mathed/InsetMathArray.h \
396 mathed/InsetMathBig.h \
397 mathed/InsetMathBoldSymbol.h \
398 mathed/InsetMathBox.h \
399 mathed/InsetMathBrace.h \
400 mathed/InsetMathCases.h \
401 mathed/InsetMathChar.h \
402 mathed/InsetMathColor.h \
403 mathed/CommandInset.h \
404 mathed/InsetMathComment.h \
405 mathed/InsetMathDelim.h \
406 mathed/InsetMathDiff.h \
407 mathed/InsetMathDots.h \
408 mathed/InsetMathEnv.h \
409 mathed/InsetMathExFunc.h \
410 mathed/InsetMathExInt.h \
411 mathed/InsetMathFont.h \
412 mathed/InsetMathFontOld.h \
413 mathed/InsetMathFrac.h \
414 mathed/InsetMathGrid.h \
416 mathed/InsetMathHull.h \
417 mathed/InsetMathKern.h \
418 mathed/InsetMathLefteqn.h \
419 mathed/InsetMathLim.h \
421 mathed/InsetMathMatrix.h \
422 mathed/InsetMathNest.h \
423 mathed/InsetMathNumber.h \
424 mathed/InsetMathOverset.h \
425 mathed/InsetMathPar.h \
426 mathed/InsetMathPhantom.h \
427 mathed/InsetMathRef.h \
428 mathed/InsetMathRoot.h \
429 mathed/InsetMathScript.h \
430 mathed/InsetMathSize.h \
431 mathed/InsetMathSpace.h \
432 mathed/InsetMathSplit.h \
433 mathed/InsetMathSqrt.h \
434 mathed/InsetMathStackrel.h \
435 mathed/InsetMathString.h \
436 mathed/InsetMathSubstack.h \
437 mathed/InsetMathSymbol.h \
438 mathed/InsetMathTabular.h \
439 mathed/InsetMathUnderset.h \
440 mathed/InsetMathUnknown.h \
441 mathed/InsetMathXArrow.h \
442 mathed/InsetMathXYMatrix.h \
444 mathed/MathAutoCorrect.h \
446 mathed/MathCompletionList.h \
447 mathed/MathExtern.h \
448 mathed/MathFactory.h \
449 mathed/MathGridInfo.h \
450 mathed/MathMacroArgument.h \
451 mathed/MacroTable.h \
452 mathed/MathMacroTemplate.h \
453 mathed/MathParser.h \
454 mathed/ReplaceData.h \
455 mathed/MathStream.h \
456 mathed/MathSupport.h \
460 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
464 BUILT_SOURCES += lyxmathed.cpp
465 CLEANFILES += lyxmathed.cpp
467 liblyxmathed_la_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
471 liblyxmathed_la_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
475 ############################### Insets ##############################
477 noinst_LTLIBRARIES += liblyxinsets.la
479 SOURCEFILESINSETS = \
480 insets/ExternalSupport.cpp \
481 insets/ExternalTemplate.cpp \
482 insets/ExternalTransforms.cpp \
483 insets/RenderButton.cpp \
484 insets/RenderGraphic.cpp \
485 insets/RenderPreview.cpp \
487 insets/InsetBibitem.cpp \
488 insets/InsetBibtex.cpp \
489 insets/InsetBox.cpp \
490 insets/InsetBranch.cpp \
491 insets/InsetCaption.cpp \
492 insets/InsetCitation.cpp \
493 insets/InsetCollapsable.cpp \
494 insets/InsetCommand.cpp \
495 insets/InsetCommandParams.cpp \
496 insets/InsetEnvironment.cpp \
497 insets/InsetERT.cpp \
498 insets/InsetExternal.cpp \
499 insets/InsetFlex.cpp \
500 insets/InsetFloat.cpp \
501 insets/InsetFloatList.cpp \
502 insets/InsetFoot.cpp \
503 insets/InsetFootlike.cpp \
504 insets/InsetGraphicsParams.cpp \
505 insets/InsetGraphics.cpp \
506 insets/InsetHyperlink.cpp \
507 insets/InsetInclude.cpp \
508 insets/InsetIndex.cpp \
509 insets/InsetInfo.cpp \
510 insets/InsetLabel.cpp \
511 insets/InsetLayout.cpp \
512 insets/InsetLine.cpp \
513 insets/InsetListings.cpp \
514 insets/InsetListingsParams.cpp \
515 insets/InsetMarginal.cpp \
516 insets/InsetNewline.cpp \
517 insets/InsetNewpage.cpp \
518 insets/InsetNomencl.cpp \
519 insets/InsetNote.cpp \
520 insets/InsetOptArg.cpp \
521 insets/InsetQuotes.cpp \
522 insets/InsetRef.cpp \
523 insets/InsetSpace.cpp \
524 insets/InsetSpecialChar.cpp \
525 insets/InsetTabular.cpp \
526 insets/InsetText.cpp \
527 insets/InsetTOC.cpp \
528 insets/InsetVSpace.cpp \
531 HEADERFILESINSETS = \
532 insets/ExternalSupport.h \
533 insets/ExternalTemplate.h \
534 insets/ExternalTransforms.h \
535 insets/RenderBase.h \
536 insets/RenderButton.h \
537 insets/RenderGraphic.h \
538 insets/RenderPreview.h \
540 insets/InsetBibitem.h \
541 insets/InsetBibtex.h \
543 insets/InsetBranch.h \
544 insets/InsetCaption.h \
545 insets/InsetCitation.h \
547 insets/InsetCollapsable.h \
548 insets/InsetCommand.h \
549 insets/InsetCommandParams.h \
551 insets/InsetEnvironment.h \
552 insets/InsetExternal.h \
554 insets/InsetFloat.h \
556 insets/InsetFloatList.h \
557 insets/InsetFootlike.h \
558 insets/InsetGraphicsParams.h \
559 insets/InsetGraphics.h \
560 insets/InsetHyperlink.h \
561 insets/InsetInclude.h \
562 insets/InsetIndex.h \
564 insets/InsetLabel.h \
565 insets/InsetLayout.h \
567 insets/InsetListings.h \
568 insets/InsetListingsParams.h \
569 insets/InsetMarginal.h \
570 insets/InsetNewline.h \
571 insets/InsetNewpage.h \
572 insets/InsetNomencl.h \
574 insets/InsetOptArg.h \
575 insets/InsetQuotes.h \
577 insets/InsetSpace.h \
578 insets/InsetSpecialChar.h \
579 insets/InsetTabular.h \
582 insets/InsetVSpace.h \
585 # insets/InsetList.cpp \
586 # insets/InsetList.h \
587 # insets/InsetSection.h \
588 # insets/InsetSection.cpp
591 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
595 BUILT_SOURCES += lyxinsets.cpp
596 CLEANFILES += lyxinsets.cpp
598 liblyxinsets_la_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
602 liblyxinsets_la_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)