Makefile.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. CFLAGS-libcrypt := -DNOT_IN_libc -DIS_IN_libcrypt $(SSP_ALL_CFLAGS)
  9. LDFLAGS-libcrypt.so := $(LDFLAGS)
  10. LIBS-libcrypt.so := $(LIBS)
  11. libcrypt_FULL_NAME := libcrypt-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  12. libcrypt_DIR := $(top_srcdir)libcrypt
  13. libcrypt_OUT := $(top_builddir)libcrypt
  14. libcrypt_SRC := $(wildcard $(libcrypt_DIR)/*.c)
  15. libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC))
  16. ifeq ($(DOPIC),y)
  17. libcrypt-a-y := $(libcrypt_OBJ:.o=.os)
  18. else
  19. libcrypt-a-y := $(libcrypt_OBJ)
  20. endif
  21. libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
  22. lib-a-y += $(top_builddir)lib/libcrypt.a
  23. lib-so-y += $(top_builddir)lib/libcrypt.so
  24. objclean-y += libcrypt_clean
  25. ifeq ($(DOMULTI),n)
  26. ifeq ($(DOPIC),y)
  27. $(top_builddir)lib/libcrypt.so: $(top_builddir)lib/libcrypt.a $(libc)
  28. else
  29. $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt_so.a $(libc)
  30. endif
  31. $(call link.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
  32. else
  33. $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt.oS $(libc)
  34. $(call linkm.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
  35. endif
  36. $(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
  37. $(Q)$(RM) $@
  38. $(do_strip)
  39. $(do_ar)
  40. $(libcrypt_OUT)/libcrypt.oS: $(libcrypt_SRC)
  41. $(Q)$(RM) $@
  42. $(compile-m)
  43. $(do_t_strip)
  44. $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
  45. $(Q)$(INSTALL) -d $(dir $@)
  46. $(Q)$(RM) $@
  47. $(do_strip)
  48. $(do_ar)
  49. libcrypt_clean:
  50. $(RM) $(libcrypt_OUT)/*.{o,os,oS,a}