-# Makefile for the Sherlock Charset Data Files (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+# Makefile for the Sherlock Charset Library (c) 1997--2001 Martin Mares <mj@ucw.cz>
-all: .stamp
+DIRS+=charset
-.stamp:
- mkdir -p $(TOPDIR)/run/char
- ln -sf `pwd`/set $(TOPDIR)/run/char
- ln -sf `pwd`/exp $(TOPDIR)/run/char
- touch .stamp
+UNI_OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o strlen.o debug.o \
+ charconv.o setnames.o unistream.o
-buildall:
- rm -rf exp
- mkdir exp
- for a in `find set -type f` ; do b=`basename $$a` ; echo $$b ; misc/mkexpands $$b >exp/$$b ; done
+obj/charset/libcharset.a: $(addprefix obj/charset/,$(UNI_OBJS))
-tags:
+build_charsets:
+ cd charset && sh misc/generate
-clean:
- rm -f .stamp
+clean::
+ rm -f charset/misc/u-*