blob: 53c6d2cacd11156b6d1834e05766811a47093b9f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# Makefile for uClibc
2#
3# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4#
5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6#
7
8libm_ARCH_SRC:=$(wildcard $(libm_SUBARCH_DIR)/*.c)
9libm_ARCH_OBJ:=$(patsubst $(libm_SUBARCH_DIR)/%.c,$(libm_SUBARCH_OUT)/%.o,$(libm_ARCH_SRC))
10
11libm_ARCH_OBJS:=$(libm_ARCH_OBJ)
12
13ifeq ($(DOPIC),y)
14libm-a-y+=$(libm_ARCH_OBJS:.o=.os)
15else
16libm-a-y+=$(libm_ARCH_OBJS)
17endif
18libm-so-y+=$(libm_ARCH_OBJS:.o=.os)