Makefile.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 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. libcrypt-multi-y := $(libcrypt_SRC)
  23. lib-a-y += $(top_builddir)lib/libcrypt.a
  24. lib-so-y += $(top_builddir)lib/libcrypt.so
  25. objclean-y += libcrypt_clean
  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. $(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
  33. $(Q)$(RM) $@
  34. $(do_strip)
  35. $(do_ar)
  36. $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
  37. $(Q)$(INSTALL) -d $(dir $@)
  38. $(Q)$(RM) $@
  39. $(do_strip)
  40. $(do_ar)
  41. libcrypt_clean:
  42. $(RM) $(libcrypt_OUT)/*.{o,os,a}