Makefile.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += libc/misc/internals
  8. CSRC := tempname.c errno.c __errno_location.c __h_errno_location.c \
  9. parse_config.c
  10. MISC_INTERNALS_DIR := $(top_srcdir)libc/misc/internals
  11. MISC_INTERNALS_OUT := $(top_builddir)libc/misc/internals
  12. MISC_INTERNALS_SRC := $(patsubst %.c,$(MISC_INTERNALS_DIR)/%.c,$(CSRC))
  13. MISC_INTERNALS_OBJ := $(patsubst %.c,$(MISC_INTERNALS_OUT)/%.o,$(CSRC))
  14. CFLAGS-__uClibc_main.c := $(SSP_DISABLE_FLAGS)
  15. libc-y += $(MISC_INTERNALS_OBJ)
  16. ifneq ($(UCLIBC_FORMAT_SHARED_FLAT),y)
  17. libc-shared-y += $(MISC_INTERNALS_OUT)/__uClibc_main.oS
  18. else
  19. libc-shared-y += $(MISC_INTERNALS_OUT)/__uClibc_main.os
  20. endif
  21. libc-static-y += $(MISC_INTERNALS_OUT)/__uClibc_main.o
  22. libc-static-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += \
  23. $(MISC_INTERNALS_OUT)/shared_flat_initfini.o \
  24. $(MISC_INTERNALS_OUT)/shared_flat_add_library.o
  25. libc-static-$(UCLIBC_FORMAT_SHARED_FLAT) += \
  26. $(MISC_INTERNALS_OUT)/shared_flat_initfini.o \
  27. $(MISC_INTERNALS_OUT)/shared_flat_add_library.o
  28. libc-shared-$(UCLIBC_FORMAT_SHARED_FLAT) += \
  29. $(MISC_INTERNALS_OUT)/shared_flat_initfini.os \
  30. $(MISC_INTERNALS_OUT)/shared_flat_add_library.os
  31. libc-nomulti-y += $(MISC_INTERNALS_OUT)/__uClibc_main.o
  32. objclean-y += CLEAN_libc/misc/internals
  33. CLEAN_libc/misc/internals:
  34. $(do_rm) $(addprefix $(MISC_INTERNALS_OUT)/*., o os oS)