summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@alum.mit.edu>2019-03-30 16:34:11 -0400
committerSteven G. Johnson <stevenj@alum.mit.edu>2019-03-30 16:34:11 -0400
commit454f60150c7f023526d353e1e6b386f93ee0b116 (patch)
tree1aeb07d52687a5788d14ed79550299c9281881bf /Makefile
parenteb39b060e7e518941a912e1f51bae1cc6316f547 (diff)
parentabf81603ba137a98c84e7dd1d871c951659a4ea9 (diff)
downloadlibutf8proc-2.3.0.tar.gz
libutf8proc-2.3.0.tar.bz2
Merge branch 'master' of https://github.com/JuliaLang/utf8procv2.3.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 79dd8a8..e3310f7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ AR?=ar
CC?=gcc
INSTALL=install
FIND=find
+PERL=perl
# compiler settings
CFLAGS ?= -O2
@@ -154,7 +155,7 @@ test/custom: test/custom.c test/tests.o utf8proc.o utf8proc.h test/tests.h
$(CC) $(UCFLAGS) $(LDFLAGS) test/custom.c test/tests.o utf8proc.o -o $@
test/misc: test/misc.c test/tests.o utf8proc.o utf8proc.h test/tests.h
- $(CC) $(UCFLAGS) $(LDFLAGS) test/misc.c test/tests.o utf8proc.o -o $@
+ $(CC) $(UCFLAGS) $(LDFLAGS) -DUNICODE_VERSION='"'`$(PERL) -ne "/^UNICODE_VERSION=/ and print $$';" data/Makefile`'"' test/misc.c test/tests.o utf8proc.o -o $@
check: test/normtest data/NormalizationTest.txt test/graphemetest data/GraphemeBreakTest.txt test/printproperty test/case test/custom test/charwidth test/misc test/valid test/iterate bench/bench.c bench/util.c bench/util.h utf8proc.o
$(MAKE) -C bench