Makefile.in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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-libcrypt := -DNOT_IN_libc -DIS_IN_libcrypt $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libcrypt.so := $(LDFLAGS)
  9. LIBS-libcrypt.so := $(LIBS)
  10. libcrypt_FULL_NAME := libcrypt-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  11. libcrypt_DIR := $(top_srcdir)libcrypt
  12. libcrypt_OUT := $(top_builddir)libcrypt
  13. libcrypt_SRC := $(wildcard $(libcrypt_DIR)/*.c)
  14. libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC))
  15. ifeq ($(DOPIC),y)
  16. libcrypt-a-y := $(libcrypt_OBJ:.o=.os)
  17. else
  18. libcrypt-a-y := $(libcrypt_OBJ)
  19. endif
  20. libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
  21. lib-a-y += $(top_builddir)lib/libcrypt.a
  22. lib-so-y += $(top_builddir)lib/libcrypt.so
  23. objclean-y += libcrypt_clean
  24. ifeq ($(DOMULTI),n)
  25. ifeq ($(DOPIC),y)
  26. $(top_builddir)lib/libcrypt.so: $(top_builddir)lib/libcrypt.a $(libc)
  27. else
  28. $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt_so.a $(libc)
  29. endif
  30. $(call link.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
  31. else
  32. $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt.oS | $(libc)
  33. $(call linkm.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
  34. endif
  35. $(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
  36. $(Q)$(RM) $@
  37. $(do_strip)
  38. $(do_ar)
  39. $(libcrypt_OUT)/libcrypt.oS: $(libcrypt_SRC)
  40. $(Q)$(RM) $@
  41. $(compile-m)
  42. $(do_t_strip)
  43. $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
  44. $(Q)$(INSTALL) -d $(dir $@)
  45. $(Q)$(RM) $@
  46. $(do_strip)
  47. $(do_ar)
  48. libcrypt_clean:
  49. $(RM) $(libcrypt_OUT)/*.{o,os,oS,a}