jbe@0: # libutf8proc Makefile jbe@0: jbe@0: jbe@0: # settings jbe@0: jbe@1: cflags = -g -O0 -std=c99 -pedantic -Wall -fpic $(CFLAGS) jbe@0: cc = gcc $(cflags) jbe@0: jbe@0: jbe@0: # meta targets jbe@0: jbe@0: c-library: libutf8proc.a libutf8proc.so jbe@0: jbe@0: ruby-library: ruby/utf8proc_native.so jbe@0: jbe@0: pgsql-library: pgsql/utf8proc_pgsql.so jbe@0: jbe@0: all: c-library ruby-library pgsql-library jbe@0: jbe@0: clean:: jbe@0: rm -f utf8proc.o libutf8proc.a libutf8proc.so jbe@0: cd ruby/ && test -e Makefile && (make clean && rm -f Makefile) || true jbe@0: cd pgsql/ && make clean jbe@0: jbe@0: # real targets jbe@0: jbe@0: utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c jbe@0: $(cc) -c -o utf8proc.o utf8proc.c jbe@0: jbe@0: libutf8proc.a: utf8proc.o jbe@0: rm -f libutf8proc.a jbe@0: ar rs libutf8proc.a utf8proc.o jbe@0: jbe@0: libutf8proc.so: utf8proc.o jbe@0: $(cc) -shared -o libutf8proc.so utf8proc.o jbe@0: chmod a-x libutf8proc.so jbe@0: jbe@0: ruby/Makefile: ruby/extconf.rb jbe@0: cd ruby && ruby extconf.rb jbe@0: jbe@0: ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \ jbe@0: ruby/utf8proc_native.c ruby/Makefile jbe@0: cd ruby && make jbe@0: jbe@0: pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \ jbe@0: pgsql/utf8proc_pgsql.c jbe@0: cd pgsql && make jbe@0: jbe@0: