PageRenderTime 26ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/lyx-2.0.4/src/support/Makefile.am

#
Makefile | 173 lines | 139 code | 24 blank | 10 comment | 3 complexity | 7d21ad2dc671c7f3f39a48c2bbdd2057 MD5 | raw file
Possible License(s): LGPL-2.0, GPL-2.0
  1. include $(top_srcdir)/config/common.am
  2. CLEANFILES += $(BUILT_SOURCES)
  3. EXTRA_DIST = pch.h \
  4. os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
  5. noinst_LIBRARIES = liblyxsupport.a
  6. BUILT_SOURCES = $(PCH_FILE)
  7. ######################### Qt stuff #############################
  8. #
  9. MOCHEADER = SystemcallPrivate.h
  10. MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
  11. CLEANFILES += $(MOCEDFILES)
  12. BUILT_SOURCES += $(MOCEDFILES)
  13. moc_%.cpp: %.h
  14. $(MOC4) -o $@ $<
  15. liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
  16. #
  17. ##################################################################
  18. AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
  19. AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
  20. liblyxsupport_a_SOURCES = \
  21. FileMonitor.h \
  22. FileMonitor.cpp \
  23. RandomAccessList.h \
  24. bind.h \
  25. convert.cpp \
  26. convert.h \
  27. copied_ptr.h \
  28. debug.cpp \
  29. debug.h \
  30. docstream.cpp \
  31. docstream.h \
  32. docstring.cpp \
  33. docstring.h \
  34. docstring_list.h \
  35. environment.h \
  36. environment.cpp \
  37. ExceptionMessage.h \
  38. FileName.cpp \
  39. FileName.h \
  40. FileNameList.h \
  41. filetools.cpp \
  42. filetools.h \
  43. foreach.h \
  44. ForkedCalls.cpp \
  45. ForkedCalls.h \
  46. functional.h \
  47. gettext.cpp \
  48. gettext.h \
  49. gzstream.cpp \
  50. gzstream.h \
  51. kill.cpp \
  52. lassert.h \
  53. lassert.cpp \
  54. limited_stack.h \
  55. lstrings.cpp \
  56. lstrings.h \
  57. lyxalgo.h \
  58. lyxlib.h \
  59. lyxtime.cpp \
  60. lyxtime.h \
  61. mutex.h \
  62. mutex.cpp \
  63. Messages.cpp \
  64. Messages.h \
  65. numpunct_lyx_char_type.h \
  66. os.cpp \
  67. os.h \
  68. Path.cpp \
  69. Path.h \
  70. Package.cpp \
  71. Package.h \
  72. ProgressInterface.h \
  73. qstring_helpers.cpp \
  74. qstring_helpers.h \
  75. regex.h \
  76. socktools.cpp \
  77. socktools.h \
  78. strfwd.h \
  79. Systemcall.cpp \
  80. Systemcall.h \
  81. SystemcallPrivate.h \
  82. shared_ptr.h \
  83. textutils.h \
  84. Translator.h \
  85. Timeout.cpp \
  86. Timeout.h \
  87. types.h \
  88. userinfo.cpp \
  89. userinfo.h \
  90. unicode.cpp \
  91. unicode.h \
  92. weighted_btree.h
  93. if USE_INCLUDED_MYTHES
  94. liblyxsupport_a_SOURCES += \
  95. mythes/mythes.cxx \
  96. mythes/mythes.hxx \
  97. mythes/license.readme
  98. endif
  99. #if INSTALL_MACOSX
  100. #liblyxsupport_a_SOURCES += \
  101. # AppleSpellChecker.h \
  102. # AppleSpellChecker.mm
  103. #endif
  104. if INSTALL_MACOSX
  105. liblyxsupport_a_SOURCES += \
  106. AppleSpeller.h \
  107. AppleSpeller.m \
  108. linkback/LinkBack.h \
  109. linkback/LinkBack.m \
  110. linkback/LinkBackProxy.h \
  111. linkback/LinkBackProxy.m \
  112. linkback/LinkBackServer.h \
  113. linkback/LinkBackServer.m
  114. endif
  115. ############################## Tests ##################################
  116. EXTRA_DIST += \
  117. tests/test_convert \
  118. tests/test_filetools \
  119. tests/test_lstrings \
  120. tests/regfiles/convert \
  121. tests/regfiles/filetools \
  122. tests/regfiles/lstrings
  123. TESTS = \
  124. tests/test_convert \
  125. tests/test_filetools \
  126. tests/test_lstrings
  127. check_PROGRAMS = \
  128. check_convert \
  129. check_filetools \
  130. check_lstrings
  131. check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
  132. check_convert_LDFLAGS = $(QT4_LDFLAGS)
  133. check_convert_SOURCES = \
  134. tests/check_convert.cpp \
  135. tests/boost.cpp
  136. check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
  137. check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
  138. check_filetools_SOURCES = \
  139. tests/check_filetools.cpp \
  140. tests/boost.cpp
  141. check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
  142. check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
  143. check_lstrings_SOURCES = \
  144. tests/check_lstrings.cpp \
  145. tests/boost.cpp
  146. makeregfiles: ${check_PROGRAMS}
  147. for all in ${check_PROGRAMS} ; do \
  148. ./$$all > ${srcdir}/tests/regfiles/$$all ; \
  149. done