summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Makefile
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-02-23 15:18:22 -0500
committerNeil Moore <neil@s-z.org>2014-02-23 15:18:22 -0500
commitbf1da8c09a8db855d044683495cd6a9e97c385d0 (patch)
tree11ee0f94252deefad08287493c5e60f8f3928264 /crawl-ref/source/Makefile
parenta63d31a98f87d1cd509b1f1da660a142f13aa51a (diff)
downloadcrawl-ref-bf1da8c09a8db855d044683495cd6a9e97c385d0.tar.gz
crawl-ref-bf1da8c09a8db855d044683495cd6a9e97c385d0.zip
Allow building against the system libpcre.
Building with USE_PCRE=y enables and links against the PCRE regexp engine without building libpcre as a contrib.
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r--crawl-ref/source/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile
index e76472e9f7..d8d66e602d 100644
--- a/crawl-ref/source/Makefile
+++ b/crawl-ref/source/Makefile
@@ -952,6 +952,10 @@ endif
endif
ifdef BUILD_PCRE
+USE_PCRE = YesPlease
+endif
+
+ifdef USE_PCRE
DEFINES += -DREGEX_PCRE
LIBS += -lpcre
endif