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
55 # These four objects are linked as object files as they are not
56 # referenced within the core and therefore are not picked up
57 # by the linker without looping over libs. We do not want that,
58 # and in fact libtools seems not able to do that.
74 lyx_SOURCES += lyxwinres.rc
124 LayoutModuleList.cpp \
141 output_plaintext.cpp \
143 paragraph_funcs.cpp \
144 ParagraphMetrics.cpp \
145 ParagraphParameters.cpp \
247 ParagraphParameters.h \
278 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
282 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
283 CLEANFILES += lyxcore.cpp
285 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
289 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
293 ############################### Graphics ##############################
295 noinst_LIBRARIES += liblyxgraphics.a
297 liblyxgraphics_a_SOURCES = \
298 graphics/GraphicsCache.h \
299 graphics/GraphicsCache.cpp \
300 graphics/GraphicsCacheItem.h \
301 graphics/GraphicsCacheItem.cpp \
302 graphics/GraphicsConverter.h \
303 graphics/GraphicsConverter.cpp \
304 graphics/GraphicsImage.h \
305 graphics/GraphicsLoader.h \
306 graphics/GraphicsLoader.cpp \
307 graphics/GraphicsParams.cpp \
308 graphics/GraphicsParams.h \
309 graphics/GraphicsTypes.h \
310 graphics/PreviewImage.h \
311 graphics/PreviewImage.cpp \
312 graphics/PreviewLoader.h \
313 graphics/PreviewLoader.cpp \
314 graphics/Previews.h \
315 graphics/Previews.cpp
318 ############################### Mathed ##############################
320 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
322 noinst_LIBRARIES += liblyxmathed.a
324 SOURCEFILESMATHED = \
325 mathed/InsetMathAMSArray.cpp \
326 mathed/InsetMathArray.cpp \
327 mathed/InsetMathBig.cpp \
328 mathed/InsetMathBoldSymbol.cpp \
329 mathed/InsetMathBox.cpp \
330 mathed/InsetMathBrace.cpp \
331 mathed/InsetMath.cpp \
332 mathed/InsetMathCases.cpp \
333 mathed/InsetMathChar.cpp \
334 mathed/InsetMathColor.cpp \
335 mathed/CommandInset.cpp \
336 mathed/InsetMathComment.cpp \
337 mathed/InsetMathDecoration.cpp \
338 mathed/InsetMathDecoration.h \
339 mathed/InsetMathDelim.cpp \
340 mathed/InsetMathDiff.cpp \
341 mathed/InsetMathDots.cpp \
342 mathed/InsetMathEnsureMath.cpp \
343 mathed/InsetMathEnv.cpp \
344 mathed/InsetMathExFunc.cpp \
345 mathed/InsetMathExInt.cpp \
346 mathed/InsetMathFont.cpp \
347 mathed/InsetMathFontOld.cpp \
348 mathed/InsetMathFrac.cpp \
349 mathed/InsetMathGrid.cpp \
350 mathed/InsetMathHull.cpp \
351 mathed/InsetMathKern.cpp \
352 mathed/InsetMathLefteqn.cpp \
353 mathed/InsetMathLim.cpp \
354 mathed/MathMacro.cpp \
355 mathed/InsetMathMatrix.cpp \
356 mathed/InsetMathNest.cpp \
357 mathed/InsetMathNumber.cpp \
358 mathed/InsetMathOverset.cpp \
359 mathed/InsetMathPar.cpp \
360 mathed/InsetMathPhantom.cpp \
361 mathed/InsetMathRef.cpp \
362 mathed/InsetMathRoot.cpp \
363 mathed/InsetMathScript.cpp \
364 mathed/InsetMathSize.cpp \
365 mathed/InsetMathSpace.cpp \
366 mathed/InsetMathSpecialChar.cpp \
367 mathed/InsetMathSplit.cpp \
368 mathed/InsetMathSqrt.cpp \
369 mathed/InsetMathStackrel.cpp \
370 mathed/InsetMathString.cpp \
371 mathed/InsetMathSubstack.cpp \
372 mathed/InsetMathSymbol.cpp \
373 mathed/InsetMathTabular.cpp \
374 mathed/InsetMathUnderset.cpp \
375 mathed/InsetMathUnknown.cpp \
376 mathed/InsetMathXArrow.cpp \
377 mathed/InsetMathXYMatrix.cpp \
378 mathed/MathAtom.cpp \
379 mathed/MathAutoCorrect.cpp \
380 mathed/MathData.cpp \
381 mathed/MathExtern.cpp \
382 mathed/MathFactory.cpp \
383 mathed/MathMacroArgument.cpp \
384 mathed/MacroTable.cpp \
385 mathed/MathMacroTemplate.cpp \
386 mathed/MathParser.cpp \
387 mathed/MathStream.cpp \
388 mathed/MathSupport.cpp \
389 mathed/TextPainter.cpp
391 HEADERFILESMATHED = \
392 mathed/InsetMathAMSArray.h \
393 mathed/InsetMathArray.h \
394 mathed/InsetMathBig.h \
395 mathed/InsetMathBoldSymbol.h \
396 mathed/InsetMathBox.h \
397 mathed/InsetMathBrace.h \
398 mathed/InsetMathCases.h \
399 mathed/InsetMathChar.h \
400 mathed/InsetMathColor.h \
401 mathed/CommandInset.h \
402 mathed/InsetMathComment.h \
403 mathed/InsetMathDelim.h \
404 mathed/InsetMathDiff.h \
405 mathed/InsetMathDots.h \
406 mathed/InsetMathEnsureMath.h \
407 mathed/InsetMathEnv.h \
408 mathed/InsetMathExFunc.h \
409 mathed/InsetMathExInt.h \
410 mathed/InsetMathFont.h \
411 mathed/InsetMathFontOld.h \
412 mathed/InsetMathFrac.h \
413 mathed/InsetMathGrid.h \
415 mathed/InsetMathHull.h \
416 mathed/InsetMathKern.h \
417 mathed/InsetMathLefteqn.h \
418 mathed/InsetMathLim.h \
420 mathed/InsetMathMatrix.h \
421 mathed/InsetMathNest.h \
422 mathed/InsetMathNumber.h \
423 mathed/InsetMathOverset.h \
424 mathed/InsetMathPar.h \
425 mathed/InsetMathPhantom.h \
426 mathed/InsetMathRef.h \
427 mathed/InsetMathRoot.h \
428 mathed/InsetMathScript.h \
429 mathed/InsetMathSize.h \
430 mathed/InsetMathSpace.h \
431 mathed/InsetMathSpecialChar.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/MathParser_flags.h \
455 mathed/ReplaceData.h \
456 mathed/MathStream.h \
457 mathed/MathSupport.h \
461 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
465 BUILT_SOURCES += lyxmathed.cpp
466 CLEANFILES += lyxmathed.cpp
468 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
472 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
476 ############################### Insets ##############################
478 noinst_LIBRARIES += liblyxinsets.a
480 SOURCEFILESINSETS = \
481 insets/ExternalSupport.cpp \
482 insets/ExternalTemplate.cpp \
483 insets/ExternalTransforms.cpp \
484 insets/RenderButton.cpp \
485 insets/RenderGraphic.cpp \
486 insets/RenderPreview.cpp \
488 insets/InsetBibitem.cpp \
489 insets/InsetBibtex.cpp \
490 insets/InsetBox.cpp \
491 insets/InsetBranch.cpp \
492 insets/InsetCaption.cpp \
493 insets/InsetCitation.cpp \
494 insets/InsetCollapsable.cpp \
495 insets/InsetCommand.cpp \
496 insets/InsetCommandParams.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/InsetPhantom.cpp \
522 insets/InsetQuotes.cpp \
523 insets/InsetRef.cpp \
524 insets/InsetSpace.cpp \
525 insets/InsetSpecialChar.cpp \
526 insets/InsetTabular.cpp \
527 insets/InsetText.cpp \
528 insets/InsetTOC.cpp \
529 insets/InsetVSpace.cpp \
532 HEADERFILESINSETS = \
533 insets/ExternalSupport.h \
534 insets/ExternalTemplate.h \
535 insets/ExternalTransforms.h \
536 insets/RenderBase.h \
537 insets/RenderButton.h \
538 insets/RenderGraphic.h \
539 insets/RenderPreview.h \
541 insets/InsetBibitem.h \
542 insets/InsetBibtex.h \
544 insets/InsetBranch.h \
545 insets/InsetCaption.h \
546 insets/InsetCitation.h \
548 insets/InsetCollapsable.h \
549 insets/InsetCommand.h \
550 insets/InsetCommandParams.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/InsetPhantom.h \
576 insets/InsetQuotes.h \
578 insets/InsetSpace.h \
579 insets/InsetSpecialChar.h \
580 insets/InsetTabular.h \
583 insets/InsetVSpace.h \
586 # insets/InsetList.cpp \
587 # insets/InsetList.h \
588 # insets/InsetSection.h \
589 # insets/InsetSection.cpp
592 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
596 BUILT_SOURCES += lyxinsets.cpp
597 CLEANFILES += lyxinsets.cpp
599 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
603 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)