Makefile.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CFLAGS-libutil := -DNOT_IN_libc -DIS_IN_libutil $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libutil.so := $(LDFLAGS)
  9. LIBS-libutil.so := $(LIBS)
  10. libutil_FULL_NAME := libutil-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  11. libutil_DIR := $(top_srcdir)libutil
  12. libutil_OUT := $(top_builddir)libutil
  13. libutil_SRC := $(wildcard $(libutil_DIR)/*.c)
  14. ifneq ($(ARCH_HAS_MMU),y)
  15. libutil_SRC := $(filter-out $(libutil_DIR)/forkpty.c,$(libutil_SRC))
  16. endif
  17. libutil_OBJ := $(patsubst $(libutil_DIR)/%.c,$(libutil_OUT)/%.o,$(libutil_SRC))
  18. ifeq ($(DOPIC),y)
  19. libutil-a-y := $(libutil_OBJ:.o=.os)
  20. else
  21. libutil-a-y := $(libutil_OBJ)
  22. endif
  23. libutil-so-y := $(libutil_OBJ:.o=.os)
  24. libutil-multi-y := $(libutil_SRC)
  25. lib-a-y += $(top_builddir)lib/libutil.a
  26. lib-so-y += $(top_builddir)lib/libutil.so
  27. objclean-y += libutil_clean
  28. ifeq ($(DOPIC),y)
  29. $(top_builddir)lib/libutil.so: $(top_builddir)lib/libutil.a $(libc)
  30. else
  31. $(top_builddir)lib/libutil.so: $(libutil_OUT)/libutil_so.a $(libc)
  32. endif
  33. $(call link.so,$(libutil_FULL_NAME),$(MAJOR_VERSION))
  34. $(libutil_OUT)/libutil_so.a: $(libutil-so-y)
  35. $(Q)$(RM) $@
  36. $(do_strip)
  37. $(do_ar)
  38. $(top_builddir)lib/libutil.a: $(libutil-a-y)
  39. $(Q)$(INSTALL) -d $(dir $@)
  40. $(Q)$(RM) $@
  41. $(do_strip)
  42. $(do_ar)
  43. libutil_clean:
  44. $(RM) $(libutil_OUT)/*.{o,os,a}