1 # Makefile for the Sherlock Charset Library (c) 1997--2007 Martin Mares <mj@ucw.cz>
5 LIBCHARSET_MODS=toupper tolower tocat toligatures unaccent charconv setnames fb-charconv stk-charconv mp-charconv
6 LIBCHARSET_INCLUDES=charconv.h unicat.h fb-charconv.h stk-charconv.h mp-charconv.h
8 $(o)/charset/libcharset.a: $(addsuffix .o,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
9 $(o)/charset/libcharset.so: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCHARSET_MODS)))
10 $(o)/charset/libcharset.pc: $(LIBUCW)
13 API_INCLUDES+=$(o)/charset/.include-stamp
14 $(o)/charset/.include-stamp: $(addprefix $(s)/charset/,$(LIBCHARSET_INCLUDES))
15 $(o)/charset/.include-stamp: IDST=charset
16 run/lib/pkgconfig/libcharset.pc: $(o)/charset/libcharset.pc
19 cd $(s)/charset && sh misc/generate
22 rm -f $(s)/charset/misc/u-*
24 INSTALL_TARGETS+=install-libcharset
26 install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
27 install -m 644 $(addprefix run/include/charset/,$(LIBCHARSET_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset
28 install -m 644 run/lib/libcharset.$(LS) $(DESTDIR)$(INSTALL_LIB_DIR)
29 install -m 644 run/lib/pkgconfig/libcharset.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
31 .PHONY: install-libcharset