X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=charset%2FMakefile;h=23d40f8c8e896cf52b7e166ab30e5d294eb08862;hb=45201a4c724923aae01ed891be9e125b229ad189;hp=5cdd48983521aa14508674d5153e8ea8e8336c13;hpb=036b9b800610a335a249db7e35547d556d54d272;p=libucw.git diff --git a/charset/Makefile b/charset/Makefile index 5cdd4898..23d40f8c 100644 --- a/charset/Makefile +++ b/charset/Makefile @@ -1,19 +1,39 @@ -# Makefile for the Sherlock Charset Data Files (c) 1997 Martin Mares +# Makefile for the UCW Charset Library (c) 1997--2007 Martin Mares -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 +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 -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 +$(o)/charset/libcharset.a: $(addsuffix .o,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS))) +$(o)/charset/libcharset-pic.a: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS))) +$(o)/charset/libcharset.so: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS))) +$(o)/charset/libcharset.pc: $(LIBUCW) -tags: +ifdef CONFIG_STATIC_PIC +$(o)/charset/libcharset.pc: $(o)/charset/libcharset-pic.a +endif -clean: - rm -f .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 + +build_charsets: + cd $(s)/charset && sh misc/generate + +clean:: + rm -f $(s)/charset/misc/u-* + +INSTALL_TARGETS+=install-libcharset +install-libcharset: + install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR) + install -m 644 $(addprefix run/include/charset/,$(LIBCHARSET_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset + install -m 644 run/lib/libcharset.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR) + install -m 644 run/lib/pkgconfig/libcharset.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR) +ifdef CONFIG_STATIC_PIC + install -m 644 run/lib/libcharset-pic.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR) +endif + +.PHONY: install-libcharset