PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/lyx-2.0.4/src/Makefile.am

#
Makefile | 655 lines | 574 code | 67 blank | 14 comment | 12 complexity | ec3009b8c19a32d2c962d0d386edfcc6 MD5 | raw file
Possible License(s): LGPL-2.0, GPL-2.0
  1. include $(top_srcdir)/config/common.am
  2. ############################### Core ##############################
  3. DISTCLEANFILES += libintl.h
  4. AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS) $(HUNSPELL_CFLAGS)
  5. AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
  6. if BUILD_CLIENT_SUBDIR
  7. CLIENT = client
  8. endif
  9. SUBDIRS = support frontends . $(CLIENT) tex2lyx
  10. EXTRA_DIST = pch.h
  11. OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(MYTHES_LIBS) \
  12. $(ENCHANT_LIBS) $(HUNSPELL_LIBS) @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
  13. noinst_LIBRARIES = liblyxcore.a
  14. bin_PROGRAMS = lyx
  15. lyx_LDADD = \
  16. liblyxcore.a \
  17. liblyxmathed.a \
  18. liblyxinsets.a \
  19. frontends/liblyxfrontends.a \
  20. frontends/qt4/liblyxqt4.a \
  21. liblyxgraphics.a \
  22. support/liblyxsupport.a \
  23. $(OTHERLIBS) \
  24. $(QT4_LDFLAGS) \
  25. $(QT4_LIB)
  26. if LYX_WIN_RESOURCE
  27. .rc.o:
  28. cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
  29. windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
  30. endif
  31. if INSTALL_MACOSX
  32. lyx_LDFLAGS = -framework AppKit
  33. endif
  34. #lyx_LDFLAGS=-Wl,-O1
  35. BUILT_SOURCES = $(PCH_FILE)
  36. if INSTALL_MACOSX
  37. APPLESPELL = AppleSpellChecker.cpp AppleSpellChecker.h
  38. endif
  39. if USE_ASPELL
  40. ASPELL = AspellChecker.cpp AspellChecker.h
  41. PWL = PersonalWordList.cpp PersonalWordList.h
  42. endif
  43. if USE_ENCHANT
  44. ENCHANT = EnchantChecker.cpp EnchantChecker.h
  45. PWL = PersonalWordList.cpp PersonalWordList.h
  46. endif
  47. if USE_HUNSPELL
  48. HUNSPELL = HunspellChecker.cpp HunspellChecker.h
  49. PWL = PersonalWordList.cpp PersonalWordList.h
  50. endif
  51. # These four objects are linked as object files as they are not
  52. # referenced within the core and therefore are not picked up
  53. # by the linker without looping over libs. We do not want that,
  54. # and in fact libtools seems not able to do that.
  55. lyx_SOURCES = \
  56. main.cpp \
  57. $(APPLESPELL) \
  58. $(ASPELL) \
  59. BiblioInfo.h \
  60. BiblioInfo.cpp \
  61. Box.cpp \
  62. Box.h \
  63. Compare.cpp \
  64. Compare.h \
  65. Dimension.cpp \
  66. Dimension.h \
  67. $(ENCHANT) \
  68. $(HUNSPELL) \
  69. $(PWL) \
  70. PrinterParams.cpp \
  71. PrinterParams.h \
  72. Thesaurus.cpp \
  73. Thesaurus.h
  74. if LYX_WIN_RESOURCE
  75. lyx_SOURCES += lyxwinres.rc
  76. endif
  77. SOURCEFILESCORE = \
  78. Author.cpp \
  79. Bidi.cpp \
  80. boost.cpp \
  81. BranchList.cpp \
  82. Buffer.cpp \
  83. buffer_funcs.cpp \
  84. BufferList.cpp \
  85. BufferParams.cpp \
  86. BufferView.cpp \
  87. Bullet.cpp \
  88. Changes.cpp \
  89. Chktex.cpp \
  90. CmdDef.cpp \
  91. Color.cpp \
  92. ConverterCache.cpp \
  93. Converter.cpp \
  94. CoordCache.cpp \
  95. Counters.cpp \
  96. Cursor.cpp \
  97. CursorSlice.cpp \
  98. CutAndPaste.cpp \
  99. DepTable.cpp \
  100. DocIterator.cpp \
  101. Encoding.cpp \
  102. ErrorList.cpp \
  103. Exporter.cpp \
  104. factory.cpp \
  105. Floating.cpp \
  106. FloatList.cpp \
  107. FontInfo.cpp \
  108. FontList.cpp \
  109. Font.cpp \
  110. Format.cpp \
  111. FuncRequest.cpp \
  112. FuncStatus.cpp \
  113. Graph.cpp \
  114. HSpace.cpp \
  115. IndicesList.cpp \
  116. InsetIterator.cpp \
  117. InsetList.cpp \
  118. Intl.cpp \
  119. KeyMap.cpp \
  120. KeySequence.cpp \
  121. Language.cpp \
  122. LaTeX.cpp \
  123. LaTeXFeatures.cpp \
  124. LaTeXPackages.cpp \
  125. LayoutFile.cpp \
  126. LayoutModuleList.cpp \
  127. Length.cpp \
  128. lengthcommon.cpp \
  129. Lexer.cpp \
  130. LyX.cpp \
  131. LyXAction.cpp \
  132. lyxfind.cpp \
  133. LyXRC.cpp \
  134. LyXVC.cpp \
  135. MetricsInfo.cpp \
  136. ModuleList.cpp \
  137. Mover.cpp \
  138. output_docbook.cpp \
  139. output.cpp \
  140. output_latex.cpp \
  141. output_xhtml.cpp \
  142. OutputParams.cpp \
  143. output_plaintext.cpp \
  144. Paragraph.cpp \
  145. ParagraphMetrics.cpp \
  146. ParagraphParameters.cpp \
  147. ParIterator.cpp \
  148. PDFOptions.cpp \
  149. Row.cpp \
  150. rowpainter.cpp \
  151. Server.cpp \
  152. ServerSocket.cpp \
  153. sgml.cpp \
  154. Session.cpp \
  155. Spacing.cpp \
  156. TexRow.cpp \
  157. Text.cpp \
  158. Text2.cpp \
  159. Text3.cpp \
  160. TexStream.cpp \
  161. TextClass.cpp \
  162. TextMetrics.cpp \
  163. TocBackend.cpp \
  164. Trans.cpp \
  165. Undo.cpp \
  166. VCBackend.cpp \
  167. version.cpp \
  168. VSpace.cpp \
  169. WordList.cpp
  170. HEADERFILESCORE = \
  171. Author.h \
  172. Bidi.h \
  173. BranchList.h \
  174. buffer_funcs.h \
  175. Buffer.h \
  176. BufferList.h \
  177. BufferParams.h \
  178. BufferView.h \
  179. Bullet.h \
  180. Citation.h \
  181. Changes.h \
  182. Chktex.h \
  183. CmdDef.h \
  184. ColorCode.h \
  185. Color.h \
  186. ColorSet.h \
  187. CompletionList.h \
  188. ConverterCache.h \
  189. Converter.h \
  190. CoordCache.h \
  191. Counters.h \
  192. Cursor.h \
  193. CursorSlice.h \
  194. CutAndPaste.h \
  195. DepTable.h \
  196. DispatchResult.h \
  197. DocIterator.h \
  198. Encoding.h \
  199. ErrorList.h \
  200. Exporter.h \
  201. factory.h \
  202. Floating.h \
  203. FloatList.h \
  204. Font.h \
  205. FontEnums.h \
  206. FontInfo.h \
  207. FontList.h \
  208. Format.h \
  209. FuncCode.h \
  210. FuncRequest.h \
  211. FuncStatus.h \
  212. Graph.h \
  213. HSpace.h \
  214. IndicesList.h \
  215. InsetIterator.h \
  216. InsetList.h \
  217. Intl.h \
  218. KeyMap.h \
  219. KeySequence.h \
  220. Language.h \
  221. LaTeXFeatures.h \
  222. LaTeXPackages.h \
  223. LaTeX.h \
  224. Layout.h \
  225. LayoutEnums.h \
  226. LayoutFile.h \
  227. LayoutModuleList.h \
  228. Length.h \
  229. Lexer.h \
  230. LyXAction.h \
  231. lyxfind.h \
  232. LyX.h \
  233. LyXRC.h \
  234. LyXVC.h \
  235. MetricsInfo.h \
  236. ModuleList.h \
  237. Mover.h \
  238. output_docbook.h \
  239. output.h \
  240. OutputEnums.h \
  241. output_latex.h \
  242. output_xhtml.h \
  243. OutputParams.h \
  244. output_plaintext.h \
  245. paper.h \
  246. Paragraph.h \
  247. ParagraphList.h \
  248. ParagraphMetrics.h \
  249. ParagraphParameters.h \
  250. ParIterator.h \
  251. PDFOptions.h \
  252. Row.h \
  253. rowpainter.h \
  254. Server.h \
  255. ServerSocket.h \
  256. Session.h \
  257. sgml.h \
  258. Spacing.h \
  259. SpellChecker.h \
  260. TexRow.h \
  261. TexStream.h \
  262. Text.h \
  263. TextClass.h \
  264. TextMetrics.h \
  265. TocBackend.h \
  266. Trans.h \
  267. Undo.h \
  268. update_flags.h \
  269. VCBackend.h \
  270. version.h \
  271. VSpace.h \
  272. WordLangTuple.h \
  273. WordList.h
  274. STANDALONEFILES = \
  275. Layout.cpp
  276. lyxcore.cpp:
  277. @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
  278. if MONOLITHIC_CORE
  279. BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
  280. CLEANFILES += lyxcore.cpp
  281. liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
  282. else
  283. liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
  284. endif
  285. ######################### Qt stuff ##############################
  286. MOCHEADER = Compare.h
  287. if INSTALL_WINDOWS
  288. MOCHEADER += Server.h
  289. MOCFLAG = -D_WIN32
  290. endif
  291. MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
  292. BUILT_SOURCES += $(MOCEDFILES)
  293. CLEANFILES += $(MOCEDFILES)
  294. moc_%.cpp: %.h
  295. $(MOC4) $(MOCFLAG) -o $@ $<
  296. liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
  297. ############################### Graphics ##############################
  298. 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
  318. ############################### Mathed ##############################
  319. EXTRA_DIST += mathed/InsetFormulaMacro.cpp
  320. noinst_LIBRARIES += liblyxmathed.a
  321. SOURCEFILESMATHED = \
  322. mathed/InsetMathAMSArray.cpp \
  323. mathed/InsetMathArray.cpp \
  324. mathed/InsetMathBig.cpp \
  325. mathed/InsetMathBoldSymbol.cpp \
  326. mathed/InsetMathBox.cpp \
  327. mathed/InsetMathBrace.cpp \
  328. mathed/InsetMath.cpp \
  329. mathed/InsetMathCases.cpp \
  330. mathed/InsetMathChar.cpp \
  331. mathed/InsetMathColor.cpp \
  332. mathed/CommandInset.cpp \
  333. mathed/InsetMathComment.cpp \
  334. mathed/InsetMathDecoration.cpp \
  335. mathed/InsetMathDecoration.h \
  336. mathed/InsetMathDelim.cpp \
  337. mathed/InsetMathDiff.cpp \
  338. mathed/InsetMathDots.cpp \
  339. mathed/InsetMathEnsureMath.cpp \
  340. mathed/InsetMathEnv.cpp \
  341. mathed/InsetMathExFunc.cpp \
  342. mathed/InsetMathExInt.cpp \
  343. mathed/InsetMathFont.cpp \
  344. mathed/InsetMathFontOld.cpp \
  345. mathed/InsetMathFrac.cpp \
  346. mathed/InsetMathGrid.cpp \
  347. mathed/InsetMathHull.cpp \
  348. mathed/InsetMathKern.cpp \
  349. mathed/InsetMathLefteqn.cpp \
  350. mathed/InsetMathLim.cpp \
  351. mathed/MathMacro.cpp \
  352. mathed/InsetMathMatrix.cpp \
  353. mathed/InsetMathNest.cpp \
  354. mathed/InsetMathNumber.cpp \
  355. mathed/InsetMathOverset.cpp \
  356. mathed/InsetMathPar.cpp \
  357. mathed/InsetMathPhantom.cpp \
  358. mathed/InsetMathRef.cpp \
  359. mathed/InsetMathRoot.cpp \
  360. mathed/InsetMathScript.cpp \
  361. mathed/InsetMathSize.cpp \
  362. mathed/InsetMathSpace.cpp \
  363. mathed/InsetMathSpecialChar.cpp \
  364. mathed/InsetMathSplit.cpp \
  365. mathed/InsetMathSqrt.cpp \
  366. mathed/InsetMathStackrel.cpp \
  367. mathed/InsetMathString.cpp \
  368. mathed/InsetMathSubstack.cpp \
  369. mathed/InsetMathSymbol.cpp \
  370. mathed/InsetMathTabular.cpp \
  371. mathed/InsetMathUnderset.cpp \
  372. mathed/InsetMathUnknown.cpp \
  373. mathed/InsetMathXArrow.cpp \
  374. mathed/InsetMathXYMatrix.cpp \
  375. mathed/InsetMathDiagram.cpp \
  376. mathed/MathAtom.cpp \
  377. mathed/MathAutoCorrect.cpp \
  378. mathed/MathData.cpp \
  379. mathed/MathExtern.cpp \
  380. mathed/MathFactory.cpp \
  381. mathed/MathMacroArgument.cpp \
  382. mathed/MacroTable.cpp \
  383. mathed/MathMacroTemplate.cpp \
  384. mathed/MathParser.cpp \
  385. mathed/MathStream.cpp \
  386. mathed/MathSupport.cpp \
  387. mathed/TextPainter.cpp
  388. HEADERFILESMATHED = \
  389. mathed/InsetMathAMSArray.h \
  390. mathed/InsetMathArray.h \
  391. mathed/InsetMathBig.h \
  392. mathed/InsetMathBoldSymbol.h \
  393. mathed/InsetMathBox.h \
  394. mathed/InsetMathBrace.h \
  395. mathed/InsetMathCases.h \
  396. mathed/InsetMathChar.h \
  397. mathed/InsetMathColor.h \
  398. mathed/CommandInset.h \
  399. mathed/InsetMathComment.h \
  400. mathed/InsetMathDelim.h \
  401. mathed/InsetMathDiff.h \
  402. mathed/InsetMathDots.h \
  403. mathed/InsetMathEnsureMath.h \
  404. mathed/InsetMathEnv.h \
  405. mathed/InsetMathExFunc.h \
  406. mathed/InsetMathExInt.h \
  407. mathed/InsetMathFont.h \
  408. mathed/InsetMathFontOld.h \
  409. mathed/InsetMathFrac.h \
  410. mathed/InsetMathGrid.h \
  411. mathed/InsetMath.h \
  412. mathed/InsetMathHull.h \
  413. mathed/InsetMathKern.h \
  414. mathed/InsetMathLefteqn.h \
  415. mathed/InsetMathLim.h \
  416. mathed/MathMacro.h \
  417. mathed/InsetMathMatrix.h \
  418. mathed/InsetMathNest.h \
  419. mathed/InsetMathNumber.h \
  420. mathed/InsetMathOverset.h \
  421. mathed/InsetMathPar.h \
  422. mathed/InsetMathPhantom.h \
  423. mathed/InsetMathRef.h \
  424. mathed/InsetMathRoot.h \
  425. mathed/InsetMathScript.h \
  426. mathed/InsetMathSize.h \
  427. mathed/InsetMathSpace.h \
  428. mathed/InsetMathSpecialChar.h \
  429. mathed/InsetMathSplit.h \
  430. mathed/InsetMathSqrt.h \
  431. mathed/InsetMathStackrel.h \
  432. mathed/InsetMathString.h \
  433. mathed/InsetMathSubstack.h \
  434. mathed/InsetMathSymbol.h \
  435. mathed/InsetMathTabular.h \
  436. mathed/InsetMathUnderset.h \
  437. mathed/InsetMathUnknown.h \
  438. mathed/InsetMathXArrow.h \
  439. mathed/InsetMathXYMatrix.h \
  440. mathed/InsetMathDiagram.h \
  441. mathed/MathAtom.h \
  442. mathed/MathAutoCorrect.h \
  443. mathed/MathData.h \
  444. mathed/MathCompletionList.h \
  445. mathed/MathExtern.h \
  446. mathed/MathFactory.h \
  447. mathed/MathGridInfo.h \
  448. mathed/MathMacroArgument.h \
  449. mathed/MacroTable.h \
  450. mathed/MathMacroTemplate.h \
  451. mathed/MathParser.h \
  452. mathed/MathParser_flags.h \
  453. mathed/ReplaceData.h \
  454. mathed/MathStream.h \
  455. mathed/MathSupport.h \
  456. mathed/TextPainter.h
  457. lyxmathed.cpp:
  458. @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
  459. if MONOLITHIC_MATHED
  460. BUILT_SOURCES += lyxmathed.cpp
  461. CLEANFILES += lyxmathed.cpp
  462. liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
  463. else
  464. liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
  465. endif
  466. ############################### Insets ##############################
  467. noinst_LIBRARIES += liblyxinsets.a
  468. SOURCEFILESINSETS = \
  469. insets/ExternalSupport.cpp \
  470. insets/ExternalTemplate.cpp \
  471. insets/ExternalTransforms.cpp \
  472. insets/RenderButton.cpp \
  473. insets/RenderGraphic.cpp \
  474. insets/RenderPreview.cpp \
  475. insets/Inset.cpp \
  476. insets/InsetArgument.cpp \
  477. insets/InsetBibitem.cpp \
  478. insets/InsetBibtex.cpp \
  479. insets/InsetBox.cpp \
  480. insets/InsetBranch.cpp \
  481. insets/InsetCaption.cpp \
  482. insets/InsetCitation.cpp \
  483. insets/InsetCollapsable.cpp \
  484. insets/InsetCommand.cpp \
  485. insets/InsetCommandParams.cpp \
  486. insets/InsetERT.cpp \
  487. insets/InsetExternal.cpp \
  488. insets/InsetFlex.cpp \
  489. insets/InsetFloat.cpp \
  490. insets/InsetFloatList.cpp \
  491. insets/InsetFoot.cpp \
  492. insets/InsetFootlike.cpp \
  493. insets/InsetGraphicsParams.cpp \
  494. insets/InsetGraphics.cpp \
  495. insets/InsetHyperlink.cpp \
  496. insets/InsetInclude.cpp \
  497. insets/InsetIndex.cpp \
  498. insets/InsetInfo.cpp \
  499. insets/InsetLabel.cpp \
  500. insets/InsetLayout.cpp \
  501. insets/InsetLine.cpp \
  502. insets/InsetListings.cpp \
  503. insets/InsetListingsParams.cpp \
  504. insets/InsetMarginal.cpp \
  505. insets/InsetNewline.cpp \
  506. insets/InsetNewpage.cpp \
  507. insets/InsetNomencl.cpp \
  508. insets/InsetNote.cpp \
  509. insets/InsetPhantom.cpp \
  510. insets/InsetPreview.cpp \
  511. insets/InsetQuotes.cpp \
  512. insets/InsetRef.cpp \
  513. insets/InsetScript.cpp \
  514. insets/InsetSpace.cpp \
  515. insets/InsetSpecialChar.cpp \
  516. insets/InsetTabular.cpp \
  517. insets/InsetText.cpp \
  518. insets/InsetTOC.cpp \
  519. insets/InsetVSpace.cpp \
  520. insets/InsetWrap.cpp
  521. HEADERFILESINSETS = \
  522. insets/ExternalSupport.h \
  523. insets/ExternalTemplate.h \
  524. insets/ExternalTransforms.h \
  525. insets/RenderBase.h \
  526. insets/RenderButton.h \
  527. insets/RenderGraphic.h \
  528. insets/RenderPreview.h \
  529. insets/Inset.h \
  530. insets/InsetArgument.h \
  531. insets/InsetBibitem.h \
  532. insets/InsetBibtex.h \
  533. insets/InsetBox.h \
  534. insets/InsetBranch.h \
  535. insets/InsetCaption.h \
  536. insets/InsetCitation.h \
  537. insets/InsetCode.h \
  538. insets/InsetCollapsable.h \
  539. insets/InsetCommand.h \
  540. insets/InsetCommandParams.h \
  541. insets/InsetERT.h \
  542. insets/InsetExternal.h \
  543. insets/InsetFlex.h \
  544. insets/InsetFloat.h \
  545. insets/InsetFoot.h \
  546. insets/InsetFloatList.h \
  547. insets/InsetFootlike.h \
  548. insets/InsetGraphicsParams.h \
  549. insets/InsetGraphics.h \
  550. insets/InsetHyperlink.h \
  551. insets/InsetInclude.h \
  552. insets/InsetIndex.h \
  553. insets/InsetInfo.h \
  554. insets/InsetPreview.h \
  555. insets/InsetLabel.h \
  556. insets/InsetLayout.h \
  557. insets/InsetLine.h \
  558. insets/InsetListings.h \
  559. insets/InsetListingsParams.h \
  560. insets/InsetMarginal.h \
  561. insets/InsetNewline.h \
  562. insets/InsetNewpage.h \
  563. insets/InsetNomencl.h \
  564. insets/InsetNote.h \
  565. insets/InsetPhantom.h \
  566. insets/InsetQuotes.h \
  567. insets/InsetRef.h \
  568. insets/InsetScript.h \
  569. insets/InsetSpace.h \
  570. insets/InsetSpecialChar.h \
  571. insets/InsetTabular.h \
  572. insets/InsetText.h \
  573. insets/InsetTOC.h \
  574. insets/InsetVSpace.h \
  575. insets/InsetWrap.h
  576. # insets/InsetList.cpp \
  577. # insets/InsetList.h \
  578. # insets/InsetSection.h \
  579. # insets/InsetSection.cpp
  580. lyxinsets.cpp:
  581. @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
  582. if MONOLITHIC_INSETS
  583. BUILT_SOURCES += lyxinsets.cpp
  584. CLEANFILES += lyxinsets.cpp
  585. liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
  586. else
  587. liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
  588. endif