utf8proc
view Makefile @ 10:00d2bcbdc945
Version 1.1.4
- replaced C++ style comments for compatibility reasons
- added typecasts to suppress compiler warnings
- removed redundant source files for ruby-gemfile generation
- Changed copyright notice for Public Software Group e. V.
- Minor changes in the README file
- replaced C++ style comments for compatibility reasons
- added typecasts to suppress compiler warnings
- removed redundant source files for ruby-gemfile generation
- Changed copyright notice for Public Software Group e. V.
- Minor changes in the README file
author | jbe |
---|---|
date | Wed Aug 19 12:00:00 2009 +0200 (2009-08-19) |
parents | 951e73a98021 |
children | 15450ff3d454 |
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 ruby-gem 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 rm -Rf ruby/gem/lib ruby/gem/ext
24 rm -f ruby/gem/utf8proc-*.gem
25 cd pgsql/ && make clean
27 # real targets
29 utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
30 $(cc) -c -o utf8proc.o utf8proc.c
32 libutf8proc.a: utf8proc.o
33 rm -f libutf8proc.a
34 ar rs libutf8proc.a utf8proc.o
36 libutf8proc.so: utf8proc.o
37 $(cc) -shared -o libutf8proc.so utf8proc.o
38 chmod a-x libutf8proc.so
40 libutf8proc.dylib: utf8proc.o
41 $(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@
43 ruby/Makefile: ruby/extconf.rb
44 cd ruby && ruby extconf.rb
46 ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \
47 ruby/utf8proc_native.c ruby/Makefile
48 cd ruby && make
50 ruby/gem/lib/utf8proc.rb: ruby/utf8proc.rb
51 test -e ruby/gem/lib || mkdir ruby/gem/lib
52 cp ruby/utf8proc.rb ruby/gem/lib/
54 ruby/gem/ext/extconf.rb: ruby/extconf.rb
55 test -e ruby/gem/ext || mkdir ruby/gem/ext
56 cp ruby/extconf.rb ruby/gem/ext/
58 ruby/gem/ext/utf8proc_native.c: utf8proc.h utf8proc_data.c utf8proc.c ruby/utf8proc_native.c
59 test -e ruby/gem/ext || mkdir ruby/gem/ext
60 cat utf8proc.h utf8proc_data.c utf8proc.c ruby/utf8proc_native.c | grep -v '#include "utf8proc.h"' | grep -v '#include "utf8proc_data.c"' | grep -v '#include "../utf8proc.c"' > ruby/gem/ext/utf8proc_native.c
62 ruby-gem:: ruby/gem/lib/utf8proc.rb ruby/gem/ext/extconf.rb ruby/gem/ext/utf8proc_native.c
63 cd ruby/gem && gem build utf8proc.gemspec
65 pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \
66 pgsql/utf8proc_pgsql.c
67 cd pgsql && make