X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2FMakefile;h=23d40f8c8e896cf52b7e166ab30e5d294eb08862;hb=31316f76dd68a03b803f51931d6e1fff2c60c5d1;hp=61caf3014646844b7b1eb6c3823d06b8da6a4523;hpb=c3c9e4646f7277212cd66439ab0167c5f282a146;p=libucw.git diff --git a/charset/Makefile b/charset/Makefile index 61caf301..23d40f8c 100644 --- a/charset/Makefile +++ b/charset/Makefile @@ -1,4 +1,4 @@ -# Makefile for the Sherlock Charset Library (c) 1997--2007 Martin Mares +# Makefile for the UCW Charset Library (c) 1997--2007 Martin Mares DIRS+=charset @@ -10,6 +10,10 @@ $(o)/charset/libcharset-pic.a: $(addsuffix .oo,$(addprefix $(o)/charset/,$(LIBCH $(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)) @@ -28,5 +32,8 @@ install-libcharset: 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