lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # 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 | |
| 8 | libubacktrace_ARCH_SRC-$(UCLIBC_HAS_BACKTRACE) := backtrace.c |
| 9 | libubacktrace_ARCH_SRCS := $(addprefix $(libubacktrace_ARCH_DIR)/,$(libubacktrace_ARCH_SRC-y)) |
| 10 | libubacktrace_ARCH_OBJS := $(patsubst $(libubacktrace_ARCH_DIR)/%.c,$(libubacktrace_ARCH_OUT)/%.o,$(libubacktrace_ARCH_SRCS)) |
| 11 | |
| 12 | ifeq ($(DOPIC),y) |
| 13 | libubacktrace-a-y+=$(libubacktrace_ARCH_OBJS:.o=.os) |
| 14 | else |
| 15 | libubacktrace-a-y+=$(libubacktrace_ARCH_OBJS) |
| 16 | endif |
| 17 | libubacktrace-so-y+=$(libubacktrace_ARCH_OBJS:.o=.os) |