Makefile.in 739 B

12345678910111213141516171819202122
  1. # Copyright (C) 2008 STMicroelectronics Ltd.
  2. # Author: Carmelo Amoroso <carmelo.amoroso@st.com>
  3. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. #
  5. subdirs += libc/misc/elf
  6. libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c
  7. CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
  8. CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include
  9. MISC_ELF_OUT:=$(top_builddir)libc/misc/elf
  10. MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC))
  11. libc-static-y += $(MISC_ELF_OBJ)
  12. libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS
  13. objclean-y+= misc_elf_clean
  14. misc_elf_clean:
  15. $(do_rm) $(addprefix $(MISC_ELF_OUT)/*., o os oS)