utf8proc
annotate Makefile @ 7:fcfd8c836c64
Version 1.1.1
- Added a new PostgreSQL function 'unistrip', which behaves like 'unifold', but also removes all character marks (e.g. accents).
- Changed license from BSD to MIT style.
- Added a new function 'utf8proc_codepoint_valid' to the C library.
- Changed compiler flags in Makefile from -g -O0 to -O2
- The ruby script, which was used to build the utf8proc_data.c file, is now included in the distribution.
- Added a new PostgreSQL function 'unistrip', which behaves like 'unifold', but also removes all character marks (e.g. accents).
- Changed license from BSD to MIT style.
- Added a new function 'utf8proc_codepoint_valid' to the C library.
- Changed compiler flags in Makefile from -g -O0 to -O2
- The ruby script, which was used to build the utf8proc_data.c file, is now included in the distribution.
author | jbe |
---|---|
date | Sun Jul 22 12:00:00 2007 +0200 (2007-07-22) |
parents | 61a89ecc2fb9 |
children | 951e73a98021 |
rev | line source |
---|---|
jbe@0 | 1 # libutf8proc Makefile |
jbe@0 | 2 |
jbe@0 | 3 |
jbe@0 | 4 # settings |
jbe@0 | 5 |
jbe@7 | 6 cflags = -O2 -std=c99 -pedantic -Wall -fpic $(CFLAGS) |
jbe@0 | 7 cc = gcc $(cflags) |
jbe@0 | 8 |
jbe@0 | 9 |
jbe@0 | 10 # meta targets |
jbe@0 | 11 |
jbe@0 | 12 c-library: libutf8proc.a libutf8proc.so |
jbe@0 | 13 |
jbe@0 | 14 ruby-library: ruby/utf8proc_native.so |
jbe@0 | 15 |
jbe@0 | 16 pgsql-library: pgsql/utf8proc_pgsql.so |
jbe@0 | 17 |
jbe@0 | 18 all: c-library ruby-library pgsql-library |
jbe@0 | 19 |
jbe@0 | 20 clean:: |
jbe@0 | 21 rm -f utf8proc.o libutf8proc.a libutf8proc.so |
jbe@0 | 22 cd ruby/ && test -e Makefile && (make clean && rm -f Makefile) || true |
jbe@0 | 23 cd pgsql/ && make clean |
jbe@0 | 24 |
jbe@0 | 25 # real targets |
jbe@0 | 26 |
jbe@0 | 27 utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c |
jbe@0 | 28 $(cc) -c -o utf8proc.o utf8proc.c |
jbe@0 | 29 |
jbe@0 | 30 libutf8proc.a: utf8proc.o |
jbe@0 | 31 rm -f libutf8proc.a |
jbe@0 | 32 ar rs libutf8proc.a utf8proc.o |
jbe@0 | 33 |
jbe@0 | 34 libutf8proc.so: utf8proc.o |
jbe@0 | 35 $(cc) -shared -o libutf8proc.so utf8proc.o |
jbe@0 | 36 chmod a-x libutf8proc.so |
jbe@0 | 37 |
jbe@0 | 38 ruby/Makefile: ruby/extconf.rb |
jbe@0 | 39 cd ruby && ruby extconf.rb |
jbe@0 | 40 |
jbe@0 | 41 ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \ |
jbe@0 | 42 ruby/utf8proc_native.c ruby/Makefile |
jbe@0 | 43 cd ruby && make |
jbe@0 | 44 |
jbe@0 | 45 pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \ |
jbe@0 | 46 pgsql/utf8proc_pgsql.c |
jbe@0 | 47 cd pgsql && make |
jbe@0 | 48 |