Makefile.in 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 $(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. libcrypt-a-y := $(libcrypt_OBJ)
  17. libcrypt-so-y := $(libcrypt_OBJ:.o=.os)
  18. libcrypt-multi-y := $(libcrypt_SRC)
  19. lib-a-y += $(top_builddir)lib/libcrypt.a
  20. lib-so-y += $(top_builddir)lib/libcrypt.so
  21. objclean-y += libcrypt_clean
  22. $(top_builddir)lib/libcrypt.so: $(libcrypt_OUT)/libcrypt_so.a libc-y
  23. $(call link.so,$(libcrypt_FULL_NAME),$(MAJOR_VERSION))
  24. $(libcrypt_OUT)/libcrypt_so.a: $(libcrypt-so-y)
  25. $(Q)$(RM) $@
  26. $(do_strip)
  27. $(do_ar)
  28. ifeq ($(DOPIC),y)
  29. $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y:.o=.os)
  30. else
  31. $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
  32. endif
  33. $(Q)$(INSTALL) -d $(dir $@)
  34. $(Q)$(RM) $@
  35. $(do_strip)
  36. $(do_ar)
  37. libcrypt_clean:
  38. $(RM) $(libcrypt_OUT)/*.{o,os,a}