1# Makefile for uClibc
2#
3# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
4#
5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6#
7# The routines included in this math library are derived from
8# glibc's libm.
9#
10
11ifeq ($(UCLIBC_HAS_FENV),y)
12libm_ARCH_SRC:=$(wildcard $(libm_ARCH_DIR)/*.c)
13libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_DIR)/%.c,$(libm_ARCH_OUT)/%.o,$(libm_ARCH_SRC))
14endif
15
16libm_ARCH_OBJS:=$(libm_ARCH_OBJ)
17
18ifeq ($(DOPIC),y)
19libm-a-y+=$(libm_ARCH_OBJS:.o=.os)
20else
21libm-a-y+=$(libm_ARCH_OBJS)
22endif
23libm-so-y+=$(libm_ARCH_OBJS:.o=.os)
24
25