gettimeofday: fix static build
[uclibc-ng.git] / libiconv / Makefile.in
blob3636aa647cc6e649751f547e4496218be7b777ca
1 # Makefile for uClibc-ng
2 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 subdirs += libiconv
6 CFLAGS-libiconv := -DNOT_IN_libc -DIS_IN_libiconv $(SSP_ALL_CFLAGS) \
7 -I$(top_srcdir)libiconv/include
9 libiconv_DIR := $(top_srcdir)libiconv
10 libiconv_OUT := $(top_builddir)libiconv
12 libiconv_SRC-$(UCLIBC_HAS_LIBICONV) := iconv.c
14 libiconv_SRC := $(addprefix $(libiconv_DIR)/,$(libiconv_SRC-y))
15 libiconv_OBJ := $(patsubst $(libiconv_DIR)/%.c,$(libiconv_OUT)/%.o,$(libiconv_SRC))
17 ifeq ($(DOPIC),y)
18 libiconv-a-y := $(libiconv_OBJ:.o=.os)
19 else
20 libiconv-a-y := $(libiconv_OBJ)
21 endif
22 libiconv-so-y := $(libiconv_OBJ:.o=.os)
24 objclean-y += CLEAN_libiconv
26 $(libiconv_OUT)/libiconv.oS: $(libiconv_SRC)
27 $(Q)$(RM) $@
28 $(compile-m)
30 CLEAN_libiconv:
31 $(do_rm) $(addprefix $(libiconv_OUT)/*., o os oS a)