blob: 53b8c0e211cd84f4d8e16cb27e2b7c4f774d4f06 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# Makefile for uClibc (libubacktrace)
2#
3# Author: Khem Raj <raj.khem@gmail.com>
4
5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6#
7
8libubacktrace_ARCH_SRC-$(UCLIBC_HAS_BACKTRACE) := backtrace.c
9libubacktrace_ARCH_SRCS := $(addprefix $(libubacktrace_ARCH_DIR)/,$(libubacktrace_ARCH_SRC-y))
10libubacktrace_ARCH_OBJS := $(patsubst $(libubacktrace_ARCH_DIR)/%.c,$(libubacktrace_ARCH_OUT)/%.o,$(libubacktrace_ARCH_SRCS))
11
12ifeq ($(DOPIC),y)
13libubacktrace-a-y+=$(libubacktrace_ARCH_OBJS:.o=.os)
14else
15libubacktrace-a-y+=$(libubacktrace_ARCH_OBJS)
16endif
17libubacktrace-so-y+=$(libubacktrace_ARCH_OBJS:.o=.os)