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 \
142 output_plaintext.cpp \
144 paragraph_funcs.cpp \
145 ParagraphMetrics.cpp \
146 ParagraphParameters.cpp \
249 ParagraphParameters.h \
280 @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
284 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
285 CLEANFILES += lyxcore.cpp
287 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
291 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
295 ############################### Graphics ##############################
297 noinst_LIBRARIES += liblyxgraphics.a
299 liblyxgraphics_a_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/GraphicsLoader.h \
308 graphics/GraphicsLoader.cpp \
309 graphics/GraphicsParams.cpp \
310 graphics/GraphicsParams.h \
311 graphics/GraphicsTypes.h \
312 graphics/PreviewImage.h \
313 graphics/PreviewImage.cpp \
314 graphics/PreviewLoader.h \
315 graphics/PreviewLoader.cpp \
316 graphics/Previews.h \
317 graphics/Previews.cpp
320 ############################### Mathed ##############################
322 EXTRA_DIST += mathed/InsetFormulaMacro.cpp
324 noinst_LIBRARIES += liblyxmathed.a
326 SOURCEFILESMATHED = \
327 mathed/InsetMathAMSArray.cpp \
328 mathed/InsetMathArray.cpp \
329 mathed/InsetMathBig.cpp \
330 mathed/InsetMathBoldSymbol.cpp \
331 mathed/InsetMathBox.cpp \
332 mathed/InsetMathBrace.cpp \
333 mathed/InsetMath.cpp \
334 mathed/InsetMathCases.cpp \
335 mathed/InsetMathChar.cpp \
336 mathed/InsetMathColor.cpp \
337 mathed/CommandInset.cpp \
338 mathed/InsetMathComment.cpp \
339 mathed/InsetMathDecoration.cpp \
340 mathed/InsetMathDecoration.h \
341 mathed/InsetMathDelim.cpp \
342 mathed/InsetMathDiff.cpp \
343 mathed/InsetMathDots.cpp \
344 mathed/InsetMathEnsureMath.cpp \
345 mathed/InsetMathEnv.cpp \
346 mathed/InsetMathExFunc.cpp \
347 mathed/InsetMathExInt.cpp \
348 mathed/InsetMathFont.cpp \
349 mathed/InsetMathFontOld.cpp \
350 mathed/InsetMathFrac.cpp \
351 mathed/InsetMathGrid.cpp \
352 mathed/InsetMathHull.cpp \
353 mathed/InsetMathKern.cpp \
354 mathed/InsetMathLefteqn.cpp \
355 mathed/InsetMathLim.cpp \
356 mathed/MathMacro.cpp \
357 mathed/InsetMathMatrix.cpp \
358 mathed/InsetMathNest.cpp \
359 mathed/InsetMathNumber.cpp \
360 mathed/InsetMathOverset.cpp \
361 mathed/InsetMathPar.cpp \
362 mathed/InsetMathPhantom.cpp \
363 mathed/InsetMathRef.cpp \
364 mathed/InsetMathRoot.cpp \
365 mathed/InsetMathScript.cpp \
366 mathed/InsetMathSize.cpp \
367 mathed/InsetMathSpace.cpp \
368 mathed/InsetMathSpecialChar.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/InsetMathEnsureMath.h \
409 mathed/InsetMathEnv.h \
410 mathed/InsetMathExFunc.h \
411 mathed/InsetMathExInt.h \
412 mathed/InsetMathFont.h \
413 mathed/InsetMathFontOld.h \
414 mathed/InsetMathFrac.h \
415 mathed/InsetMathGrid.h \
417 mathed/InsetMathHull.h \
418 mathed/InsetMathKern.h \
419 mathed/InsetMathLefteqn.h \
420 mathed/InsetMathLim.h \
422 mathed/InsetMathMatrix.h \
423 mathed/InsetMathNest.h \
424 mathed/InsetMathNumber.h \
425 mathed/InsetMathOverset.h \
426 mathed/InsetMathPar.h \
427 mathed/InsetMathPhantom.h \
428 mathed/InsetMathRef.h \
429 mathed/InsetMathRoot.h \
430 mathed/InsetMathScript.h \
431 mathed/InsetMathSize.h \
432 mathed/InsetMathSpace.h \
433 mathed/InsetMathSpecialChar.h \
434 mathed/InsetMathSplit.h \
435 mathed/InsetMathSqrt.h \
436 mathed/InsetMathStackrel.h \
437 mathed/InsetMathString.h \
438 mathed/InsetMathSubstack.h \
439 mathed/InsetMathSymbol.h \
440 mathed/InsetMathTabular.h \
441 mathed/InsetMathUnderset.h \
442 mathed/InsetMathUnknown.h \
443 mathed/InsetMathXArrow.h \
444 mathed/InsetMathXYMatrix.h \
446 mathed/MathAutoCorrect.h \
448 mathed/MathCompletionList.h \
449 mathed/MathExtern.h \
450 mathed/MathFactory.h \
451 mathed/MathGridInfo.h \
452 mathed/MathMacroArgument.h \
453 mathed/MacroTable.h \
454 mathed/MathMacroTemplate.h \
455 mathed/MathParser.h \
456 mathed/MathParser_flags.h \
457 mathed/ReplaceData.h \
458 mathed/MathStream.h \
459 mathed/MathSupport.h \
463 @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
467 BUILT_SOURCES += lyxmathed.cpp
468 CLEANFILES += lyxmathed.cpp
470 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
474 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
478 ############################### Insets ##############################
480 noinst_LIBRARIES += liblyxinsets.a
482 SOURCEFILESINSETS = \
483 insets/ExternalSupport.cpp \
484 insets/ExternalTemplate.cpp \
485 insets/ExternalTransforms.cpp \
486 insets/RenderButton.cpp \
487 insets/RenderGraphic.cpp \
488 insets/RenderPreview.cpp \
490 insets/InsetBibitem.cpp \
491 insets/InsetBibtex.cpp \
492 insets/InsetBox.cpp \
493 insets/InsetBranch.cpp \
494 insets/InsetCaption.cpp \
495 insets/InsetCitation.cpp \
496 insets/InsetCollapsable.cpp \
497 insets/InsetCommand.cpp \
498 insets/InsetCommandParams.cpp \
499 insets/InsetERT.cpp \
500 insets/InsetExternal.cpp \
501 insets/InsetFlex.cpp \
502 insets/InsetFloat.cpp \
503 insets/InsetFloatList.cpp \
504 insets/InsetFoot.cpp \
505 insets/InsetFootlike.cpp \
506 insets/InsetGraphicsParams.cpp \
507 insets/InsetGraphics.cpp \
508 insets/InsetHyperlink.cpp \
509 insets/InsetInclude.cpp \
510 insets/InsetIndex.cpp \
511 insets/InsetInfo.cpp \
512 insets/InsetLabel.cpp \
513 insets/InsetLayout.cpp \
514 insets/InsetLine.cpp \
515 insets/InsetListings.cpp \
516 insets/InsetListingsParams.cpp \
517 insets/InsetMarginal.cpp \
518 insets/InsetNewline.cpp \
519 insets/InsetNewpage.cpp \
520 insets/InsetNomencl.cpp \
521 insets/InsetNote.cpp \
522 insets/InsetOptArg.cpp \
523 insets/InsetPhantom.cpp \
524 insets/InsetQuotes.cpp \
525 insets/InsetRef.cpp \
526 insets/InsetSpace.cpp \
527 insets/InsetSpecialChar.cpp \
528 insets/InsetTabular.cpp \
529 insets/InsetText.cpp \
530 insets/InsetTOC.cpp \
531 insets/InsetVSpace.cpp \
534 HEADERFILESINSETS = \
535 insets/ExternalSupport.h \
536 insets/ExternalTemplate.h \
537 insets/ExternalTransforms.h \
538 insets/RenderBase.h \
539 insets/RenderButton.h \
540 insets/RenderGraphic.h \
541 insets/RenderPreview.h \
543 insets/InsetBibitem.h \
544 insets/InsetBibtex.h \
546 insets/InsetBranch.h \
547 insets/InsetCaption.h \
548 insets/InsetCitation.h \
550 insets/InsetCollapsable.h \
551 insets/InsetCommand.h \
552 insets/InsetCommandParams.h \
554 insets/InsetExternal.h \
556 insets/InsetFloat.h \
558 insets/InsetFloatList.h \
559 insets/InsetFootlike.h \
560 insets/InsetGraphicsParams.h \
561 insets/InsetGraphics.h \
562 insets/InsetHyperlink.h \
563 insets/InsetInclude.h \
564 insets/InsetIndex.h \
566 insets/InsetLabel.h \
567 insets/InsetLayout.h \
569 insets/InsetListings.h \
570 insets/InsetListingsParams.h \
571 insets/InsetMarginal.h \
572 insets/InsetNewline.h \
573 insets/InsetNewpage.h \
574 insets/InsetNomencl.h \
576 insets/InsetOptArg.h \
577 insets/InsetPhantom.h \
578 insets/InsetQuotes.h \
580 insets/InsetSpace.h \
581 insets/InsetSpecialChar.h \
582 insets/InsetTabular.h \
585 insets/InsetVSpace.h \
588 # insets/InsetList.cpp \
589 # insets/InsetList.h \
590 # insets/InsetSection.h \
591 # insets/InsetSection.cpp
594 @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
598 BUILT_SOURCES += lyxinsets.cpp
599 CLEANFILES += lyxinsets.cpp
601 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
605 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)