utf8proc
view Makefile @ 3:4ee0d5f54af1
Version 1.0
- added the LUMP option, which lumps certain characters together (see lump.txt) (also used for the PostgreSQL "unifold" function)
- added the STRIPMARK option, which strips marking characters (or marks of composed characters)
- deprecated ruby method String#char_ary in favour of String#utf8chars
- added the LUMP option, which lumps certain characters together (see lump.txt) (also used for the PostgreSQL "unifold" function)
- added the STRIPMARK option, which strips marking characters (or marks of composed characters)
- deprecated ruby method String#char_ary in favour of String#utf8chars
| author | jbe | 
|---|---|
| date | Sun Sep 17 12:00:00 2006 +0200 (2006-09-17) | 
| parents | 61a89ecc2fb9 | 
| children | fcfd8c836c64 | 
 line source
     1 # libutf8proc Makefile
     4 # settings
     6 cflags = -g -O0 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
     7 cc = gcc $(cflags)
    10 # meta targets
    12 c-library: libutf8proc.a libutf8proc.so
    14 ruby-library: ruby/utf8proc_native.so
    16 pgsql-library: pgsql/utf8proc_pgsql.so
    18 all: c-library ruby-library pgsql-library
    20 clean::
    21 	rm -f utf8proc.o libutf8proc.a libutf8proc.so
    22 	cd ruby/ && test -e Makefile && (make clean && rm -f Makefile) || true
    23 	cd pgsql/ && make clean
    25 # real targets
    27 utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
    28 	$(cc) -c -o utf8proc.o utf8proc.c
    30 libutf8proc.a: utf8proc.o
    31 	rm -f libutf8proc.a
    32 	ar rs libutf8proc.a utf8proc.o
    34 libutf8proc.so: utf8proc.o
    35 	$(cc) -shared -o libutf8proc.so utf8proc.o
    36 	chmod a-x libutf8proc.so
    38 ruby/Makefile: ruby/extconf.rb
    39 	cd ruby && ruby extconf.rb
    41 ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \
    42 		ruby/utf8proc_native.c ruby/Makefile
    43 	cd ruby && make
    45 pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \
    46 		pgsql/utf8proc_pgsql.c
    47 	cd pgsql && make
