utf8proc
diff Makefile @ 0:a0368662434c
Version 0.1
author | jbe |
---|---|
date | Fri Jun 02 12:00:00 2006 +0200 (2006-06-02) |
parents | |
children | 61a89ecc2fb9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Fri Jun 02 12:00:00 2006 +0200 1.3 @@ -0,0 +1,49 @@ 1.4 +# libutf8proc Makefile 1.5 + 1.6 + 1.7 +# settings 1.8 + 1.9 +cflags = -g -O0 -std=c99 -pedantic -Wall $(CFLAGS) 1.10 +cc = gcc $(cflags) 1.11 + 1.12 + 1.13 +# meta targets 1.14 + 1.15 +c-library: libutf8proc.a libutf8proc.so 1.16 + 1.17 +ruby-library: ruby/utf8proc_native.so 1.18 + 1.19 +pgsql-library: pgsql/utf8proc_pgsql.so 1.20 + 1.21 +all: c-library ruby-library pgsql-library 1.22 + 1.23 +clean:: 1.24 + rm -f utf8proc.o libutf8proc.a libutf8proc.so 1.25 + cd ruby/ && test -e Makefile && (make clean && rm -f Makefile) || true 1.26 + cd pgsql/ && make clean 1.27 + 1.28 +# real targets 1.29 + 1.30 +utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c 1.31 + $(cc) -c -o utf8proc.o utf8proc.c 1.32 + 1.33 +libutf8proc.a: utf8proc.o 1.34 + rm -f libutf8proc.a 1.35 + ar rs libutf8proc.a utf8proc.o 1.36 + 1.37 +libutf8proc.so: utf8proc.o 1.38 + $(cc) -shared -o libutf8proc.so utf8proc.o 1.39 + chmod a-x libutf8proc.so 1.40 + 1.41 +ruby/Makefile: ruby/extconf.rb 1.42 + cd ruby && ruby extconf.rb 1.43 + 1.44 +ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \ 1.45 + ruby/utf8proc_native.c ruby/Makefile 1.46 + cd ruby && make 1.47 + 1.48 +pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \ 1.49 + pgsql/utf8proc_pgsql.c 1.50 + cd pgsql && make 1.51 + 1.52 +