X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2FMakefile;h=8e121369474edae8b577c067cf6f94c836c547fc;hb=1a3cd3005f2a5cda8dbdaaf8f153ae5703845876;hp=ad9911cb359a48fc36d9470d8d95e432cc0eb739;hpb=5451cada955bd952f5c732857e27ed676e873aa1;p=libucw.git diff --git a/charset/Makefile b/charset/Makefile index ad9911cb..8e121369 100644 --- a/charset/Makefile +++ b/charset/Makefile @@ -1,55 +1,22 @@ -# Makefile for the Sherlock UniCode Library (c) 1997 Martin Mares +# Makefile for the Sherlock Charset Library (c) 1997--2007 Martin Mares -CLIB=../lib/libunicode.a +DIRS+=charset -OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o tosig.o strlen.o debug.o \ - charconv.o setnames.o +LIBCHARSET_MODS=toupper tolower tocat toligatures unaccent charconv setnames fb-charconv stk-charconv mp-charconv +LIBCHARSET_INCLUDES=charconv.h unicat.h fb-charconv.h stk-charconv.h mp-charconv.h -all: .stamp $(CLIB) +$(o)/charset/libcharset.a: $(addsuffix .o,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS))) +$(o)/charset/libcharset.so: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS))) +$(o)/charset/libcharset.pc: $(LIBUCW) -.stamp: - mkdir -p $(TOPDIR)/run/char - ln -sf `pwd`/set $(TOPDIR)/run/char - touch .stamp +API_LIBS+=libcharset +API_INCLUDES+=$(o)/charset/.include-stamp +$(o)/charset/.include-stamp: $(addprefix $(s)/charset/,$(LIBCHARSET_INCLUDES)) +$(o)/charset/.include-stamp: IDST=charset +run/lib/pkgconfig/libcharset.pc: $(o)/charset/libcharset.pc -$(CLIB): $(OBJS) - rm -f $(CLIB) - ar rcs $(CLIB) $(OBJS) +build_charsets: + cd $(s)/charset && sh misc/generate -toupper.o: toupper.c unicode.h U-upper.h -tolower.o: tolower.c unicode.h U-lower.h -tocat.o: tocat.c unicode.h U-cat.h -utf8.o: utf8.c unicode.h -unaccent.o: unaccent.c unicode.h U-unacc.h -tosig.o: tosig.c unicode.h U-sig.h -strlen.o: strlen.c unicode.h -debug.o: debug.c unicode.h -charconv.o: charconv.c charconv.h chartable.h -setnames.o: setnames.c charconv.h - -test: test.o $(CLIB) $(TOPDIR)/lib/libsh.a - $(CC) $(LDFLAGS) test.o -o test -lsh -lunicode - -test.o: test.c unicode.h - -buildall: cleanall - mkdir exp - for a in `find set -type f -maxdepth 1` ; do b=`basename $$a` ; echo $$b ; misc/mkexpands $$b >exp/$$b ; done - misc/unisplit - misc/gentab _U_cat byte U-cat.h - misc/gentab _U_lower word U-lower.h - misc/gentab _U_upper word U-upper.h - misc/mkunacc >misc/u-unacc - misc/gentab _U_unaccent word U-unacc.h - misc/mksig >misc/u-sig - misc/gentab _U_sig byte U-sig.h - misc/tabgen chartable.h - -cleanall: - rm -rf exp misc/u-* U-*.h chartable.h - -tags: - etags *.[ch] - -clean: - rm -f .stamp misc/u-* test +clean:: + rm -f $(s)/charset/misc/u-*