Makefile.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-y := tempname.c errno.c h_errno.c __errno_location.c __h_errno_location.c \
  9. parse_config.c version.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-y))
  13. MISC_INTERNALS_OBJ := $(patsubst %.c,$(MISC_INTERNALS_OUT)/%.o,$(CSRC-y))
  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. # link order is important to not pull in pthread functions, when
  22. # a single threaded application is statically linked
  23. libc-static-y := $(MISC_INTERNALS_OUT)/__uClibc_main.o $(libc-static-y)
  24. libc-static-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += \
  25. $(MISC_INTERNALS_OUT)/shared_flat_initfini.o \
  26. $(MISC_INTERNALS_OUT)/shared_flat_add_library.o
  27. libc-static-$(UCLIBC_FORMAT_SHARED_FLAT) += \
  28. $(MISC_INTERNALS_OUT)/shared_flat_initfini.o \
  29. $(MISC_INTERNALS_OUT)/shared_flat_add_library.o
  30. libc-shared-$(UCLIBC_FORMAT_SHARED_FLAT) += \
  31. $(MISC_INTERNALS_OUT)/shared_flat_initfini.os \
  32. $(MISC_INTERNALS_OUT)/shared_flat_add_library.os
  33. libc-nomulti-y += $(MISC_INTERNALS_OUT)/__uClibc_main.o
  34. objclean-y += CLEAN_libc/misc/internals
  35. CLEAN_libc/misc/internals:
  36. $(do_rm) $(addprefix $(MISC_INTERNALS_OUT)/*., o os oS)