Makefile.arch 716 B

123456789101112131415161718192021222324
  1. # Makefile for uClibc
  2. #
  3. # Copyright (c) 2007, 2010 STMicroelectronics Ltd
  4. #
  5. # Author(s): Carmelo Amoroso <carmelo.amoroso@st.com>
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. ifeq ($(UCLIBC_HAS_FENV),y)
  9. libm_ARCH_CSRC:=$(wildcard $(libm_SUBARCH_DIR)/*.c)
  10. libm_ARCH_COBJ:=$(patsubst $(libm_SUBARCH_DIR)/%.c,$(libm_SUBARCH_OUT)/%.o,$(libm_ARCH_SRC))
  11. libm_ARCH_SSRC:=$(wildcard $(libm_SUBARCH_DIR)/*.S)
  12. libm_ARCH_SOBJ:=$(patsubst $(libm_SUBARCH_DIR)/%.S,$(libm_SUBARCH_OUT)/%.o,$(libm_ARCH_SSRC))
  13. endif
  14. libm_ARCH_OBJS:=$(libm_ARCH_COBJ) $(libm_ARCH_SOBJ)
  15. ifeq ($(DOPIC),y)
  16. libm-a-y+=$(libm_ARCH_OBJS:.o=.os)
  17. else
  18. libm-a-y+=$(libm_ARCH_OBJS)
  19. endif
  20. libm-so-y+=$(libm_ARCH_OBJS:.o=.os)