diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-11 16:56:19 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-14 07:56:05 +0100 |
commit | 4fa7ed9388f3ca81d97cad2099a6f9fa9f8098de (patch) | |
tree | ec4d1325b6b91a30dd0537658fe604bd8661c0b7 /libiconv/Makefile.in | |
parent | 5ca03df6978345c297225212cc0ca33d476b0272 (diff) |
add libiconv-tiny implementation
To use it enable UCLIBC_HAS_LIBICONV, then iconv_open/iconv_close
should be available.
Diffstat (limited to 'libiconv/Makefile.in')
-rw-r--r-- | libiconv/Makefile.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libiconv/Makefile.in b/libiconv/Makefile.in new file mode 100644 index 000000000..3636aa647 --- /dev/null +++ b/libiconv/Makefile.in @@ -0,0 +1,31 @@ +# Makefile for uClibc-ng +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + +subdirs += libiconv + +CFLAGS-libiconv := -DNOT_IN_libc -DIS_IN_libiconv $(SSP_ALL_CFLAGS) \ + -I$(top_srcdir)libiconv/include + +libiconv_DIR := $(top_srcdir)libiconv +libiconv_OUT := $(top_builddir)libiconv + +libiconv_SRC-$(UCLIBC_HAS_LIBICONV) := iconv.c + +libiconv_SRC := $(addprefix $(libiconv_DIR)/,$(libiconv_SRC-y)) +libiconv_OBJ := $(patsubst $(libiconv_DIR)/%.c,$(libiconv_OUT)/%.o,$(libiconv_SRC)) + +ifeq ($(DOPIC),y) +libiconv-a-y := $(libiconv_OBJ:.o=.os) +else +libiconv-a-y := $(libiconv_OBJ) +endif +libiconv-so-y := $(libiconv_OBJ:.o=.os) + +objclean-y += CLEAN_libiconv + +$(libiconv_OUT)/libiconv.oS: $(libiconv_SRC) + $(Q)$(RM) $@ + $(compile-m) + +CLEAN_libiconv: + $(do_rm) $(addprefix $(libiconv_OUT)/*., o os oS a) |