1 # Makefile for the Sherlock UniCode Library (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
3 CLIB=../lib/libunicode.a
5 OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o tosig.o strlen.o debug.o
10 mkdir -p $(TOPDIR)/run/char
11 ln -sf `pwd`/set $(TOPDIR)/run/char
16 ar rcs $(CLIB) $(OBJS)
18 toupper.o: toupper.c unicode.h U-upper.h
19 tolower.o: tolower.c unicode.h U-lower.h
20 tocat.o: tocat.c unicode.h U-cat.h
21 utf8.o: utf8.c unicode.h
22 unaccent.o: unaccent.c unicode.h U-unacc.h
23 tosig.o: tosig.c unicode.h U-sig.h
24 strlen.o: strlen.c unicode.h
25 debug.o: debug.c unicode.h
27 test: test.o $(CLIB) $(TOPDIR)/lib/libsh.a
28 $(CC) $(LDFLAGS) test.o -o test -lsh -lunicode
30 test.o: test.c unicode.h
34 for a in `find set -type f -maxdepth 1` ; do b=`basename $$a` ; echo $$b ; misc/mkexpands $$b >exp/$$b ; done
36 misc/gentab _U_cat byte <misc/u-cat >U-cat.h
37 misc/gentab _U_lower word <misc/u-lower >U-lower.h
38 misc/gentab _U_upper word <misc/u-upper >U-upper.h
39 misc/mkunacc >misc/u-unacc
40 misc/gentab _U_unaccent word <misc/u-unacc >U-unacc.h
41 misc/mksig >misc/u-sig
42 misc/gentab _U_sig byte <misc/u-sig >U-sig.h
45 rm -rf exp misc/u-* U-*.h
51 rm -f .stamp misc/u-* test