rename back to utf8proc now that we are taking over maintenance
This commit is contained in:
30
Makefile
30
Makefile
@@ -1,4 +1,4 @@
|
||||
# libmojibake Makefile
|
||||
# libutf8proc Makefile
|
||||
|
||||
CURL=curl
|
||||
RUBY=ruby
|
||||
@@ -7,7 +7,7 @@ MAKE=make
|
||||
|
||||
# settings
|
||||
|
||||
cflags = -O2 -std=c99 -pedantic -Wall -fpic -DMOJIBAKE_EXPORTS $(CFLAGS)
|
||||
cflags = -O2 -std=c99 -pedantic -Wall -fpic -DUTF8PROC_EXPORTS $(CFLAGS)
|
||||
cc = $(CC) $(cflags)
|
||||
AR = ar
|
||||
|
||||
@@ -22,10 +22,10 @@ endif
|
||||
|
||||
all: c-library
|
||||
|
||||
c-library: libmojibake.a libmojibake.$(SHLIB_EXT)
|
||||
c-library: libutf8proc.a libutf8proc.$(SHLIB_EXT)
|
||||
|
||||
clean:
|
||||
rm -f utf8proc.o libmojibake.a libmojibake.$(SHLIB_EXT) normtest graphemetest UnicodeData.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt
|
||||
rm -f utf8proc.o libutf8proc.a libutf8proc.$(SHLIB_EXT) normtest graphemetest UnicodeData.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt
|
||||
$(MAKE) -C bench clean
|
||||
|
||||
update: utf8proc_data.c.new
|
||||
@@ -51,18 +51,18 @@ CompositionExclusions.txt:
|
||||
CaseFolding.txt:
|
||||
$(CURL) -O http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
|
||||
|
||||
utf8proc.o: mojibake.h utf8proc.c utf8proc_data.c
|
||||
utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
|
||||
$(cc) -c -o utf8proc.o utf8proc.c
|
||||
|
||||
libmojibake.a: utf8proc.o
|
||||
rm -f libmojibake.a
|
||||
$(AR) rs libmojibake.a utf8proc.o
|
||||
libutf8proc.a: utf8proc.o
|
||||
rm -f libutf8proc.a
|
||||
$(AR) rs libutf8proc.a utf8proc.o
|
||||
|
||||
libmojibake.so: utf8proc.o
|
||||
$(cc) -shared -o libmojibake.$(SHLIB_EXT) utf8proc.o
|
||||
chmod a-x libmojibake.$(SHLIB_EXT)
|
||||
libutf8proc.so: utf8proc.o
|
||||
$(cc) -shared -o libutf8proc.$(SHLIB_EXT) utf8proc.o
|
||||
chmod a-x libutf8proc.$(SHLIB_EXT)
|
||||
|
||||
libmojibake.dylib: utf8proc.o
|
||||
libutf8proc.dylib: utf8proc.o
|
||||
$(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@
|
||||
|
||||
|
||||
@@ -74,13 +74,13 @@ NormalizationTest.txt:
|
||||
GraphemeBreakTest.txt:
|
||||
$(CURL) http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@
|
||||
|
||||
normtest: normtest.c utf8proc.o mojibake.h tests.h
|
||||
normtest: normtest.c utf8proc.o utf8proc.h tests.h
|
||||
$(cc) normtest.c utf8proc.o -o $@
|
||||
|
||||
graphemetest: graphemetest.c utf8proc.o mojibake.h tests.h
|
||||
graphemetest: graphemetest.c utf8proc.o utf8proc.h tests.h
|
||||
$(cc) graphemetest.c utf8proc.o -o $@
|
||||
|
||||
printproperty: printproperty.c utf8proc.o mojibake.h tests.h
|
||||
printproperty: printproperty.c utf8proc.o utf8proc.h tests.h
|
||||
$(cc) printproperty.c utf8proc.o -o $@
|
||||
|
||||
check: normtest NormalizationTest.txt graphemetest GraphemeBreakTest.txt
|
||||
|
||||
Reference in New Issue
Block a user