lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # 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 | |
| 7 | subdirs += libc/misc/elf |
| 8 | |
| 9 | libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c |
| 10 | CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include |
| 11 | CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include |
| 12 | |
| 13 | MISC_ELF_OUT:=$(top_builddir)libc/misc/elf |
| 14 | MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC)) |
| 15 | |
| 16 | libc-static-y += $(MISC_ELF_OBJ) |
| 17 | libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS |
| 18 | |
| 19 | objclean-y+= CLEAN_libc/misc/elf |
| 20 | |
| 21 | CLEAN_libc/misc/elf: |
| 22 | $(do_rm) $(addprefix $(MISC_ELF_OUT)/*., o os oS) |