]> mj.ucw.cz Git - libucw.git/blob - charset/Makefile
New character set conversion routines from CharConv Library.
[libucw.git] / charset / Makefile
1 # Makefile for the Sherlock UniCode Library (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
2
3 CLIB=../lib/libunicode.a
4
5 OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o tosig.o strlen.o debug.o \
6         charconv.o setnames.o
7
8 all: .stamp $(CLIB)
9
10 .stamp:
11         mkdir -p $(TOPDIR)/run/char
12         ln -sf `pwd`/set $(TOPDIR)/run/char
13         touch .stamp
14
15 $(CLIB): $(OBJS)
16         rm -f $(CLIB)
17         ar rcs $(CLIB) $(OBJS)
18
19 toupper.o: toupper.c unicode.h U-upper.h
20 tolower.o: tolower.c unicode.h U-lower.h
21 tocat.o: tocat.c unicode.h U-cat.h
22 utf8.o: utf8.c unicode.h
23 unaccent.o: unaccent.c unicode.h U-unacc.h
24 tosig.o: tosig.c unicode.h U-sig.h
25 strlen.o: strlen.c unicode.h
26 debug.o: debug.c unicode.h
27 charconv.o: charconv.c charconv.h chartable.h
28 setnames.o: setnames.c charconv.h
29
30 test: test.o $(CLIB) $(TOPDIR)/lib/libsh.a
31         $(CC) $(LDFLAGS) test.o -o test -lsh -lunicode
32
33 test.o: test.c unicode.h
34
35 buildall: cleanall
36         mkdir exp
37         for a in `find set -type f -maxdepth 1` ; do b=`basename $$a` ; echo $$b ; misc/mkexpands $$b >exp/$$b ; done
38         misc/unisplit
39         misc/gentab _U_cat byte <misc/u-cat >U-cat.h
40         misc/gentab _U_lower word <misc/u-lower >U-lower.h
41         misc/gentab _U_upper word <misc/u-upper >U-upper.h
42         misc/mkunacc >misc/u-unacc
43         misc/gentab _U_unaccent word <misc/u-unacc >U-unacc.h
44         misc/mksig >misc/u-sig
45         misc/gentab _U_sig byte <misc/u-sig >U-sig.h
46         misc/tabgen <misc/chartable.in >chartable.h
47
48 cleanall:
49         rm -rf exp misc/u-* U-*.h chartable.h
50
51 tags:
52         etags *.[ch]
53
54 clean:
55         rm -f .stamp misc/u-* test