X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2FMakefile;h=32cc82a7637102008980eb58efa37daf6dced645;hb=5423d3ec7aa3ff3fec105c49f7ec1a122e82561d;hp=40423122fc2daae7b542c7e4e9acd0e7862361b3;hpb=0ba1850de076504dbf931928e709c4119f7bd02d;p=libucw.git diff --git a/charset/Makefile b/charset/Makefile index 40423122..32cc82a7 100644 --- a/charset/Makefile +++ b/charset/Makefile @@ -1,14 +1,45 @@ -# Makefile for the Sherlock Charset Library (c) 1997--2001 Martin Mares +# Makefile for the UCW Charset Library (c) 1997--2007 Martin Mares DIRS+=charset -UNI_OBJS=toupper.o tolower.o tocat.o utf8.o unaccent.o strlen.o debug.o \ - charconv.o setnames.o unistream.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 -obj/charset/libcharset.a: $(addprefix obj/charset/,$(UNI_OBJS)) +$(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) + +ifdef CONFIG_STATIC_PIC +$(o)/charset/libcharset.pc: $(o)/charset/libcharset-pic.a +endif + +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 + +ifdef CONFIG_CHARSET_UTILS +PROGS+=$(o)/charset/cs2cs +endif + +$(o)/charset/cs2cs: $(o)/charset/cs2cs.o $(LIBUCW) $(o)/charset/libcharset.pc build_charsets: - cd charset && sh misc/generate + cd $(s)/charset && sh misc/generate clean:: - rm -f charset/misc/u-* + 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