Makefile.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 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-$(VERSION).so
  11. libutil_DIR := $(top_srcdir)libutil
  12. libutil_OUT := $(top_builddir)libutil
  13. libutil_SRC := $(wildcard $(libutil_DIR)/*.c)
  14. ifneq ($(ARCH_USE_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. lib-a-y += $(top_builddir)lib/libutil.a
  25. lib-so-y += $(top_builddir)lib/libutil.so
  26. objclean-y += libutil_clean
  27. ifeq ($(DOMULTI),n)
  28. ifeq ($(DOPIC),y)
  29. $(top_builddir)lib/libutil.so: $(top_builddir)lib/libutil.a $(libc.depend)
  30. else
  31. $(top_builddir)lib/libutil.so: $(libutil_OUT)/libutil_so.a $(libc.depend)
  32. endif
  33. $(call link.so,$(libutil_FULL_NAME),$(MAJOR_VERSION))
  34. else
  35. $(top_builddir)lib/libutil.so: $(libutil_OUT)/libutil.oS | $(libc.depend)
  36. $(call linkm.so,$(libutil_FULL_NAME),$(MAJOR_VERSION))
  37. endif
  38. $(libutil_OUT)/libutil_so.a: $(libutil-so-y)
  39. $(Q)$(RM) $@
  40. $(do_strip)
  41. $(do_ar)
  42. $(libutil_OUT)/libutil.oS: $(libutil_SRC)
  43. $(Q)$(RM) $@
  44. $(compile-m)
  45. $(do_t_strip)
  46. $(top_builddir)lib/libutil.a: $(libutil-a-y)
  47. $(Q)$(INSTALL) -d $(dir $@)
  48. $(Q)$(RM) $@
  49. $(do_strip)
  50. $(do_ar)
  51. libutil_clean:
  52. $(RM) $(libutil_OUT)/*.{o,os,oS,a}