blob: 1b4bd8bf159770a32107385e917e0c70d683483b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# Copyright (C) 2008 STMicroelectronics Ltd.
2# Author: Carmelo Amoroso <carmelo.amoroso@st.com>
3
4# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5#
6
7subdirs += libc/misc/elf
8
9libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c
10CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
11CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
12
13MISC_ELF_OUT:=$(top_builddir)libc/misc/elf
14MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC))
15
16libc-static-y += $(MISC_ELF_OBJ)
17libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS
18
19objclean-y+= CLEAN_libc/misc/elf
20
21CLEAN_libc/misc/elf:
22 $(do_rm) $(addprefix $(MISC_ELF_OUT)/*., o os oS)