utf8proc

view Makefile @ 9:951e73a98021

Version 1.1.3

- Added a function utf8proc_version returning a string containing the version number of the library.
- Included a target libutf8proc.dylib for MacOSX.
- PostgreSQL 8.3 compatibility (use of SET_VARSIZE macro)
author jbe
date Fri May 01 12:00:00 2009 +0200 (2009-05-01)
parents fcfd8c836c64
children 00d2bcbdc945
line source
1 # libutf8proc Makefile
4 # settings
6 cflags = -O2 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
7 cc = $(CC) $(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 libutf8proc.dylib: utf8proc.o
39 $(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@
41 ruby/Makefile: ruby/extconf.rb
42 cd ruby && ruby extconf.rb
44 ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \
45 ruby/utf8proc_native.c ruby/Makefile
46 cd ruby && make
48 pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \
49 pgsql/utf8proc_pgsql.c
50 cd pgsql && make

Impressum / About Us