Makefile.in 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += libcrypt
  8. CFLAGS-libcrypt := -DNOT_IN_libc -DIS_IN_libcrypt $(SSP_ALL_CFLAGS)
  9. libcrypt_DIR := $(top_srcdir)libcrypt
  10. libcrypt_OUT := $(top_builddir)libcrypt
  11. libcrypt_SRC-y :=
  12. libcrypt_SRC-$(UCLIBC_HAS_CRYPT_IMPL) += crypt.c des.c md5.c
  13. libcrypt_SRC-$(UCLIBC_HAS_SHA256_CRYPT_IMPL) += sha256.c sha256-crypt.c
  14. libcrypt_SRC-$(UCLIBC_HAS_SHA512_CRYPT_IMPL) += sha512.c sha512-crypt.c
  15. libcrypt_SRC-$(UCLIBC_HAS_CRYPT_STUB) += crypt_stub.c
  16. libcrypt_SRC := $(addprefix $(libcrypt_DIR)/,$(libcrypt_SRC-y))
  17. libcrypt_OBJ := $(patsubst $(libcrypt_DIR)/%.c,$(libcrypt_OUT)/%.o,$(libcrypt_SRC))
  18. ifeq ($(DOPIC),y)
  19. libcrypt-a-y := $(libcrypt_OBJ:.o=.os)
  20. else
  21. libcrypt-a-y := $(libcrypt_OBJ)
  22. endif
  23. libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
  24. objclean-y += CLEAN_libcrypt
  25. $(libcrypt_OUT)/libcrypt.oS: $(libcrypt_SRC)
  26. $(Q)$(RM) $@
  27. $(compile-m)
  28. CLEAN_libcrypt:
  29. $(do_rm) $(addprefix $(libcrypt_OUT)/*., o os oS a)