Makefile.in 816 B

12345678910111213141516171819202122232425262728293031
  1. # Makefile for uClibc-ng
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. subdirs += libiconv
  4. CFLAGS-libiconv := -DNOT_IN_libc -DIS_IN_libiconv $(SSP_ALL_CFLAGS) \
  5. -I$(top_srcdir)libiconv/include
  6. libiconv_DIR := $(top_srcdir)libiconv
  7. libiconv_OUT := $(top_builddir)libiconv
  8. libiconv_SRC-$(UCLIBC_HAS_LIBICONV) := iconv.c
  9. libiconv_SRC := $(addprefix $(libiconv_DIR)/,$(libiconv_SRC-y))
  10. libiconv_OBJ := $(patsubst $(libiconv_DIR)/%.c,$(libiconv_OUT)/%.o,$(libiconv_SRC))
  11. ifeq ($(DOPIC),y)
  12. libiconv-a-y := $(libiconv_OBJ:.o=.os)
  13. else
  14. libiconv-a-y := $(libiconv_OBJ)
  15. endif
  16. libiconv-so-y := $(libiconv_OBJ:.o=.os)
  17. objclean-y += CLEAN_libiconv
  18. $(libiconv_OUT)/libiconv.oS: $(libiconv_SRC)
  19. $(Q)$(RM) $@
  20. $(compile-m)
  21. CLEAN_libiconv:
  22. $(do_rm) $(addprefix $(libiconv_OUT)/*., o os oS a)