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)
13 SUBDIRS = support frontends . $(CLIENT) tex2lyx
15 EXTRA_DIST = Section.h \
22 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
24 noinst_LIBRARIES = liblyxcore.a
31 frontends/liblyxfrontends.a \
32 frontends/qt4/liblyxqt4.a \
34 support/liblyxsupport.a \
41 cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
42 windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
47 BUILT_SOURCES = $(PCH_FILE)
50 ASPELL = ASpell.cpp ASpell_local.h
53 PSPELL = PSpell.cpp PSpell.h
56 ISPELL = ISpell.cpp ISpell.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.
65 $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
78 lyx_SOURCES += lyxwinres.rc
143 output_plaintext.cpp \
145 paragraph_funcs.cpp \
146 ParagraphMetrics.cpp \
147 ParagraphParameters.cpp \
246 ParagraphParameters.h \
277 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
281 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
282 CLEANFILES += lyxcore.cpp
284 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
288 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
292 ############################### Graphics ##############################
294 noinst_LIBRARIES += liblyxgraphics.a
296 liblyxgraphics_a_SOURCES = \
297 graphics/GraphicsCache.h \
298 graphics/GraphicsCache.cpp \
299 graphics/GraphicsCacheItem.h \
300 graphics/GraphicsCacheItem.cpp \
301 graphics/GraphicsConverter.h \
302 graphics/GraphicsConverter.cpp \
303 graphics/GraphicsImage.h \
304 graphics/GraphicsLoader.h \
305 graphics/GraphicsLoader.cpp \
306 graphics/GraphicsParams.cpp \
307 graphics/GraphicsParams.h \
308 graphics/GraphicsTypes.h \
309 graphics/PreviewImage.h \
310 graphics/PreviewImage.cpp \
311 graphics/PreviewLoader.h \
312 graphics/PreviewLoader.cpp \
313 graphics/Previews.h \
314 graphics/Previews.cpp
317 ############################### Mathed ##############################
319 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
321 noinst_LIBRARIES += liblyxmathed.a
323 SOURCEFILESMATHED = \
324 mathed/InsetMathAMSArray.cpp \
325 mathed/InsetMathArray.cpp \
326 mathed/InsetMathBig.cpp \
327 mathed/InsetMathBoldSymbol.cpp \
328 mathed/InsetMathBox.cpp \
329 mathed/InsetMathBrace.cpp \
330 mathed/InsetMath.cpp \
331 mathed/InsetMathCases.cpp \
332 mathed/InsetMathChar.cpp \
333 mathed/InsetMathColor.cpp \
334 mathed/CommandInset.cpp \
335 mathed/InsetMathComment.cpp \
336 mathed/InsetMathDecoration.cpp \
337 mathed/InsetMathDecoration.h \
338 mathed/InsetMathDelim.cpp \
339 mathed/InsetMathDiff.cpp \
340 mathed/InsetMathDots.cpp \
341 mathed/InsetMathEnsureMath.cpp \
342 mathed/InsetMathEnv.cpp \
343 mathed/InsetMathExFunc.cpp \
344 mathed/InsetMathExInt.cpp \
345 mathed/InsetMathFont.cpp \
346 mathed/InsetMathFontOld.cpp \
347 mathed/InsetMathFrac.cpp \
348 mathed/InsetMathGrid.cpp \
349 mathed/InsetMathHull.cpp \
350 mathed/InsetMathKern.cpp \
351 mathed/InsetMathLefteqn.cpp \
352 mathed/InsetMathLim.cpp \
353 mathed/MathMacro.cpp \
354 mathed/InsetMathMatrix.cpp \
355 mathed/InsetMathNest.cpp \
356 mathed/InsetMathNumber.cpp \
357 mathed/InsetMathOverset.cpp \
358 mathed/InsetMathPar.cpp \
359 mathed/InsetMathPhantom.cpp \
360 mathed/InsetMathRef.cpp \
361 mathed/InsetMathRoot.cpp \
362 mathed/InsetMathScript.cpp \
363 mathed/InsetMathSize.cpp \
364 mathed/InsetMathSpace.cpp \
365 mathed/InsetMathSpecialChar.cpp \
366 mathed/InsetMathSplit.cpp \
367 mathed/InsetMathSqrt.cpp \
368 mathed/InsetMathStackrel.cpp \
369 mathed/InsetMathString.cpp \
370 mathed/InsetMathSubstack.cpp \
371 mathed/InsetMathSymbol.cpp \
372 mathed/InsetMathTabular.cpp \
373 mathed/InsetMathUnderset.cpp \
374 mathed/InsetMathUnknown.cpp \
375 mathed/InsetMathXArrow.cpp \
376 mathed/InsetMathXYMatrix.cpp \
377 mathed/MathAtom.cpp \
378 mathed/MathAutoCorrect.cpp \
379 mathed/MathData.cpp \
380 mathed/MathExtern.cpp \
381 mathed/MathFactory.cpp \
382 mathed/MathMacroArgument.cpp \
383 mathed/MacroTable.cpp \
384 mathed/MathMacroTemplate.cpp \
385 mathed/MathParser.cpp \
386 mathed/MathStream.cpp \
387 mathed/MathSupport.cpp \
388 mathed/TextPainter.cpp
390 HEADERFILESMATHED = \
391 mathed/InsetMathAMSArray.h \
392 mathed/InsetMathArray.h \
393 mathed/InsetMathBig.h \
394 mathed/InsetMathBoldSymbol.h \
395 mathed/InsetMathBox.h \
396 mathed/InsetMathBrace.h \
397 mathed/InsetMathCases.h \
398 mathed/InsetMathChar.h \
399 mathed/InsetMathColor.h \
400 mathed/CommandInset.h \
401 mathed/InsetMathComment.h \
402 mathed/InsetMathDelim.h \
403 mathed/InsetMathDiff.h \
404 mathed/InsetMathDots.h \
405 mathed/InsetMathEnsureMath.h \
406 mathed/InsetMathEnv.h \
407 mathed/InsetMathExFunc.h \
408 mathed/InsetMathExInt.h \
409 mathed/InsetMathFont.h \
410 mathed/InsetMathFontOld.h \
411 mathed/InsetMathFrac.h \
412 mathed/InsetMathGrid.h \
414 mathed/InsetMathHull.h \
415 mathed/InsetMathKern.h \
416 mathed/InsetMathLefteqn.h \
417 mathed/InsetMathLim.h \
419 mathed/InsetMathMatrix.h \
420 mathed/InsetMathNest.h \
421 mathed/InsetMathNumber.h \
422 mathed/InsetMathOverset.h \
423 mathed/InsetMathPar.h \
424 mathed/InsetMathPhantom.h \
425 mathed/InsetMathRef.h \
426 mathed/InsetMathRoot.h \
427 mathed/InsetMathScript.h \
428 mathed/InsetMathSize.h \
429 mathed/InsetMathSpace.h \
430 mathed/InsetMathSpecialChar.h \
431 mathed/InsetMathSplit.h \
432 mathed/InsetMathSqrt.h \
433 mathed/InsetMathStackrel.h \
434 mathed/InsetMathString.h \
435 mathed/InsetMathSubstack.h \
436 mathed/InsetMathSymbol.h \
437 mathed/InsetMathTabular.h \
438 mathed/InsetMathUnderset.h \
439 mathed/InsetMathUnknown.h \
440 mathed/InsetMathXArrow.h \
441 mathed/InsetMathXYMatrix.h \
443 mathed/MathAutoCorrect.h \
445 mathed/MathCompletionList.h \
446 mathed/MathExtern.h \
447 mathed/MathFactory.h \
448 mathed/MathGridInfo.h \
449 mathed/MathMacroArgument.h \
450 mathed/MacroTable.h \
451 mathed/MathMacroTemplate.h \
452 mathed/MathParser.h \
453 mathed/MathParser_flags.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_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
471 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
475 ############################### Insets ##############################
477 noinst_LIBRARIES += liblyxinsets.a
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/InsetERT.cpp \
497 insets/InsetExternal.cpp \
498 insets/InsetFlex.cpp \
499 insets/InsetFloat.cpp \
500 insets/InsetFloatList.cpp \
501 insets/InsetFoot.cpp \
502 insets/InsetFootlike.cpp \
503 insets/InsetGraphicsParams.cpp \
504 insets/InsetGraphics.cpp \
505 insets/InsetHyperlink.cpp \
506 insets/InsetInclude.cpp \
507 insets/InsetIndex.cpp \
508 insets/InsetInfo.cpp \
509 insets/InsetLabel.cpp \
510 insets/InsetLayout.cpp \
511 insets/InsetLine.cpp \
512 insets/InsetListings.cpp \
513 insets/InsetListingsParams.cpp \
514 insets/InsetMarginal.cpp \
515 insets/InsetNewline.cpp \
516 insets/InsetNewpage.cpp \
517 insets/InsetNomencl.cpp \
518 insets/InsetNote.cpp \
519 insets/InsetOptArg.cpp \
520 insets/InsetQuotes.cpp \
521 insets/InsetRef.cpp \
522 insets/InsetSpace.cpp \
523 insets/InsetSpecialChar.cpp \
524 insets/InsetTabular.cpp \
525 insets/InsetText.cpp \
526 insets/InsetTOC.cpp \
527 insets/InsetVSpace.cpp \
530 HEADERFILESINSETS = \
531 insets/ExternalSupport.h \
532 insets/ExternalTemplate.h \
533 insets/ExternalTransforms.h \
534 insets/RenderBase.h \
535 insets/RenderButton.h \
536 insets/RenderGraphic.h \
537 insets/RenderPreview.h \
539 insets/InsetBibitem.h \
540 insets/InsetBibtex.h \
542 insets/InsetBranch.h \
543 insets/InsetCaption.h \
544 insets/InsetCitation.h \
546 insets/InsetCollapsable.h \
547 insets/InsetCommand.h \
548 insets/InsetCommandParams.h \
550 insets/InsetExternal.h \
552 insets/InsetFloat.h \
554 insets/InsetFloatList.h \
555 insets/InsetFootlike.h \
556 insets/InsetGraphicsParams.h \
557 insets/InsetGraphics.h \
558 insets/InsetHyperlink.h \
559 insets/InsetInclude.h \
560 insets/InsetIndex.h \
562 insets/InsetLabel.h \
563 insets/InsetLayout.h \
565 insets/InsetListings.h \
566 insets/InsetListingsParams.h \
567 insets/InsetMarginal.h \
568 insets/InsetNewline.h \
569 insets/InsetNewpage.h \
570 insets/InsetNomencl.h \
572 insets/InsetOptArg.h \
573 insets/InsetQuotes.h \
575 insets/InsetSpace.h \
576 insets/InsetSpecialChar.h \
577 insets/InsetTabular.h \
580 insets/InsetVSpace.h \
583 # insets/InsetList.cpp \
584 # insets/InsetList.h \
585 # insets/InsetSection.h \
586 # insets/InsetSection.cpp
589 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
593 BUILT_SOURCES += lyxinsets.cpp
594 CLEANFILES += lyxinsets.cpp
596 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
600 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)