/vendor/pcre/Makefile.am

http://github.com/feyeleanor/RubyGoLightly · Makefile · 390 lines · 278 code · 60 blank · 52 comment · 6 complexity · 9ec3de735b0f86c92523872547811821 MD5 · raw file

  1. ## Process this file with automake to produce Makefile.in.
  2. dist_doc_DATA = \
  3. doc/pcre.txt \
  4. doc/pcre-config.txt \
  5. doc/pcregrep.txt \
  6. doc/pcretest.txt \
  7. AUTHORS \
  8. COPYING \
  9. ChangeLog \
  10. LICENCE \
  11. NEWS \
  12. README
  13. dist_html_DATA = \
  14. doc/html/index.html \
  15. doc/html/pcre.html \
  16. doc/html/pcre-config.html \
  17. doc/html/pcre_compile.html \
  18. doc/html/pcre_compile2.html \
  19. doc/html/pcre_config.html \
  20. doc/html/pcre_copy_named_substring.html \
  21. doc/html/pcre_copy_substring.html \
  22. doc/html/pcre_dfa_exec.html \
  23. doc/html/pcre_exec.html \
  24. doc/html/pcre_free_substring.html \
  25. doc/html/pcre_free_substring_list.html \
  26. doc/html/pcre_fullinfo.html \
  27. doc/html/pcre_get_named_substring.html \
  28. doc/html/pcre_get_stringnumber.html \
  29. doc/html/pcre_get_stringtable_entries.html \
  30. doc/html/pcre_get_substring.html \
  31. doc/html/pcre_get_substring_list.html \
  32. doc/html/pcre_info.html \
  33. doc/html/pcre_maketables.html \
  34. doc/html/pcre_refcount.html \
  35. doc/html/pcre_study.html \
  36. doc/html/pcre_version.html \
  37. doc/html/pcreapi.html \
  38. doc/html/pcrebuild.html \
  39. doc/html/pcrecallout.html \
  40. doc/html/pcrecompat.html \
  41. doc/html/pcregrep.html \
  42. doc/html/pcrematching.html \
  43. doc/html/pcrepartial.html \
  44. doc/html/pcrepattern.html \
  45. doc/html/pcreperform.html \
  46. doc/html/pcreposix.html \
  47. doc/html/pcreprecompile.html \
  48. doc/html/pcresample.html \
  49. doc/html/pcrestack.html \
  50. doc/html/pcresyntax.html \
  51. doc/html/pcretest.html
  52. pcrecpp_html = doc/html/pcrecpp.html
  53. dist_noinst_DATA = $(pcrecpp_html)
  54. if WITH_PCRE_CPP
  55. html_DATA = $(pcrecpp_html)
  56. endif
  57. # The Libtool libraries to install. We'll add to this later.
  58. lib_LTLIBRARIES =
  59. # Unit tests you want to run when people type 'make check'.
  60. # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
  61. TESTS =
  62. check_SCRIPTS =
  63. dist_noinst_SCRIPTS =
  64. # Some of the binaries we make are to be installed, and others are
  65. # (non-user-visible) helper programs needed to build libpcre.
  66. bin_PROGRAMS =
  67. noinst_PROGRAMS =
  68. # Additional files to delete on 'make clean' and 'make maintainer-clean'.
  69. CLEANFILES =
  70. MAINTAINERCLEANFILES =
  71. # Additional files to bundle with the distribution, over and above what
  72. # the Autotools include by default.
  73. EXTRA_DIST =
  74. # These files contain maintenance information
  75. EXTRA_DIST += \
  76. doc/perltest.txt \
  77. NON-UNIX-USE \
  78. HACKING
  79. # These files are used in the preparation of a release
  80. EXTRA_DIST += \
  81. PrepareRelease \
  82. CleanTxt \
  83. Detrail \
  84. 132html \
  85. doc/index.html.src
  86. # These files are to do with building for Virtual Pascal
  87. EXTRA_DIST += \
  88. makevp.bat \
  89. makevp_c.txt \
  90. makevp_l.txt \
  91. pcregexp.pas
  92. # These files are usable versions of pcre.h and config.h that are distributed
  93. # for the benefit of people who are building PCRE manually, without the
  94. # Autotools support.
  95. EXTRA_DIST += \
  96. pcre.h.generic \
  97. config.h.generic
  98. pcre.h.generic: configure.ac
  99. rm -f $@
  100. cp -p pcre.h $@
  101. MAINTAINERCLEANFILES += pcre.h.generic
  102. # These are the header files we'll install. We do not distribute pcre.h because
  103. # it is generated from pcre.h.in.
  104. nodist_include_HEADERS = \
  105. pcre.h
  106. include_HEADERS = \
  107. pcreposix.h
  108. # These additional headers will be be installed if C++ support is enabled. We
  109. # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
  110. # from corresponding .h.in files (which we do distribute).
  111. if WITH_PCRE_CPP
  112. nodist_include_HEADERS += \
  113. pcrecpparg.h \
  114. pcre_stringpiece.h
  115. include_HEADERS += \
  116. pcrecpp.h \
  117. pcre_scanner.h
  118. endif # WITH_PCRE_CPP
  119. bin_SCRIPTS = pcre-config
  120. ## ---------------------------------------------------------------
  121. ## The dftables program is used to rebuild character tables before compiling
  122. ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
  123. ## program. The default (when --enable-rebuild-chartables is not specified) is
  124. ## to copy a distributed set of tables that are defined for ASCII code. In this
  125. ## case, dftables is not needed.
  126. if WITH_REBUILD_CHARTABLES
  127. noinst_PROGRAMS += dftables
  128. dftables_SOURCES = dftables.c
  129. pcre_chartables.c: dftables$(EXEEXT)
  130. ./dftables$(EXEEXT) $@
  131. else
  132. pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
  133. rm -f $@
  134. $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
  135. endif # WITH_REBUILD_CHARTABLES
  136. ## The main pcre library
  137. lib_LTLIBRARIES += libpcre.la
  138. libpcre_la_SOURCES = \
  139. pcre_compile.c \
  140. pcre_config.c \
  141. pcre_dfa_exec.c \
  142. pcre_exec.c \
  143. pcre_fullinfo.c \
  144. pcre_get.c \
  145. pcre_globals.c \
  146. pcre_info.c \
  147. pcre_internal.h \
  148. pcre_maketables.c \
  149. pcre_newline.c \
  150. pcre_ord2utf8.c \
  151. pcre_refcount.c \
  152. pcre_study.c \
  153. pcre_tables.c \
  154. pcre_try_flipped.c \
  155. pcre_ucd.c \
  156. pcre_valid_utf8.c \
  157. pcre_version.c \
  158. pcre_xclass.c \
  159. ucp.h
  160. ## This file is generated as part of the building process, so don't distribute.
  161. nodist_libpcre_la_SOURCES = \
  162. pcre_chartables.c
  163. # The pcre_printint.src file is #included by some source files, so it must be
  164. # distributed. The pcre_chartables.c.dist file is the default version of
  165. # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
  166. EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
  167. libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
  168. CLEANFILES += pcre_chartables.c
  169. ## A version of the main pcre library that has a posix re API.
  170. lib_LTLIBRARIES += libpcreposix.la
  171. libpcreposix_la_SOURCES = \
  172. pcreposix.c
  173. libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
  174. libpcreposix_la_LIBADD = libpcre.la
  175. ## There's a C++ library as well.
  176. if WITH_PCRE_CPP
  177. lib_LTLIBRARIES += libpcrecpp.la
  178. libpcrecpp_la_SOURCES = \
  179. pcrecpp_internal.h \
  180. pcrecpp.cc \
  181. pcre_scanner.cc \
  182. pcre_stringpiece.cc
  183. libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
  184. libpcrecpp_la_LIBADD = libpcre.la
  185. TESTS += pcrecpp_unittest
  186. noinst_PROGRAMS += pcrecpp_unittest
  187. pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
  188. pcrecpp_unittest_LDADD = libpcrecpp.la
  189. TESTS += pcre_scanner_unittest
  190. noinst_PROGRAMS += pcre_scanner_unittest
  191. pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
  192. pcre_scanner_unittest_LDADD = libpcrecpp.la
  193. TESTS += pcre_stringpiece_unittest
  194. noinst_PROGRAMS += pcre_stringpiece_unittest
  195. pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
  196. pcre_stringpiece_unittest_LDADD = libpcrecpp.la
  197. endif # WITH_PCRE_CPP
  198. ## The main unit tests
  199. # Each unit test is a binary plus a script that runs that binary in various
  200. # ways. We install these test binaries in case folks find it helpful.
  201. TESTS += RunTest
  202. dist_noinst_SCRIPTS += RunTest
  203. EXTRA_DIST += RunTest.bat
  204. bin_PROGRAMS += pcretest
  205. pcretest_SOURCES = pcretest.c
  206. pcretest_LDADD = libpcreposix.la
  207. TESTS += RunGrepTest
  208. dist_noinst_SCRIPTS += RunGrepTest
  209. bin_PROGRAMS += pcregrep
  210. pcregrep_SOURCES = pcregrep.c
  211. pcregrep_LDADD = libpcreposix.la
  212. EXTRA_DIST += \
  213. testdata/grepinput \
  214. testdata/grepinput8 \
  215. testdata/grepinputv \
  216. testdata/grepinputx \
  217. testdata/greplist \
  218. testdata/grepoutput \
  219. testdata/grepoutput8 \
  220. testdata/grepoutputN \
  221. testdata/testinput1 \
  222. testdata/testinput2 \
  223. testdata/testinput3 \
  224. testdata/testinput4 \
  225. testdata/testinput5 \
  226. testdata/testinput6 \
  227. testdata/testinput7 \
  228. testdata/testinput8 \
  229. testdata/testinput9 \
  230. testdata/testinput10 \
  231. testdata/testoutput1 \
  232. testdata/testoutput2 \
  233. testdata/testoutput3 \
  234. testdata/testoutput4 \
  235. testdata/testoutput5 \
  236. testdata/testoutput6 \
  237. testdata/testoutput7 \
  238. testdata/testoutput8 \
  239. testdata/testoutput9 \
  240. testdata/testoutput10 \
  241. testdata/wintestinput3 \
  242. testdata/wintestoutput3 \
  243. perltest.pl
  244. CLEANFILES += \
  245. testsavedregex \
  246. teststderr \
  247. testtry \
  248. testNinput
  249. # PCRE demonstration program. No longer built automatcally. The point is that
  250. # the users should build it themselves. So just distribute the source.
  251. # noinst_PROGRAMS += pcredemo
  252. # pcredemo_SOURCES = pcredemo.c
  253. # pcredemo_LDADD = libpcre.la
  254. EXTRA_DIST += pcredemo.c
  255. ## Utility rules, documentation, etc.
  256. # A compatibility line, the old build system worked with 'make test'
  257. test: check ;
  258. # A PCRE user submitted the following addition, saying that it "will allow
  259. # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
  260. # nice DLL for Windows use". (It is used by the pcre.dll target.)
  261. DLL_OBJS= pcre_compile.o pcre_config.o \
  262. pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
  263. pcre_globals.o pcre_info.o pcre_maketables.o \
  264. pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
  265. pcre_study.o pcre_tables.o pcre_try_flipped.o \
  266. pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
  267. pcre_chartables.o \
  268. pcre_xclass.o
  269. # A PCRE user submitted the following addition, saying that it "will allow
  270. # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
  271. # nice DLL for Windows use".
  272. pcre.dll: $(DLL_OBJS)
  273. $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
  274. # We have .pc files for pkg-config users.
  275. pkgconfigdir = $(libdir)/pkgconfig
  276. pkgconfig_DATA = libpcre.pc
  277. if WITH_PCRE_CPP
  278. pkgconfig_DATA += libpcrecpp.pc
  279. endif
  280. dist_man_MANS = \
  281. doc/pcre.3 \
  282. doc/pcre-config.1 \
  283. doc/pcre_compile.3 \
  284. doc/pcre_compile2.3 \
  285. doc/pcre_config.3 \
  286. doc/pcre_copy_named_substring.3 \
  287. doc/pcre_copy_substring.3 \
  288. doc/pcre_dfa_exec.3 \
  289. doc/pcre_exec.3 \
  290. doc/pcre_free_substring.3 \
  291. doc/pcre_free_substring_list.3 \
  292. doc/pcre_fullinfo.3 \
  293. doc/pcre_get_named_substring.3 \
  294. doc/pcre_get_stringnumber.3 \
  295. doc/pcre_get_stringtable_entries.3 \
  296. doc/pcre_get_substring.3 \
  297. doc/pcre_get_substring_list.3 \
  298. doc/pcre_info.3 \
  299. doc/pcre_maketables.3 \
  300. doc/pcre_refcount.3 \
  301. doc/pcre_study.3 \
  302. doc/pcre_version.3 \
  303. doc/pcreapi.3 \
  304. doc/pcrebuild.3 \
  305. doc/pcrecallout.3 \
  306. doc/pcrecompat.3 \
  307. doc/pcregrep.1 \
  308. doc/pcrematching.3 \
  309. doc/pcrepartial.3 \
  310. doc/pcrepattern.3 \
  311. doc/pcreperform.3 \
  312. doc/pcreposix.3 \
  313. doc/pcreprecompile.3 \
  314. doc/pcresample.3 \
  315. doc/pcrestack.3 \
  316. doc/pcresyntax.3 \
  317. doc/pcretest.1
  318. pcrecpp_man = doc/pcrecpp.3
  319. EXTRA_DIST += $(pcrecpp_man)
  320. if WITH_PCRE_CPP
  321. man_MANS = $(pcrecpp_man)
  322. endif
  323. ## CMake support
  324. EXTRA_DIST += \
  325. cmake/COPYING-CMAKE-SCRIPTS \
  326. cmake/FindPackageHandleStandardArgs.cmake \
  327. cmake/FindReadline.cmake \
  328. CMakeLists.txt \
  329. config-cmake.h.in
  330. ## end Makefile.am