Makefile.in 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libnsl.so := $(LDFLAGS)
  9. LIBS-libnsl.so := $(LIBS)
  10. libnsl_FULL_NAME := libnsl-$(VERSION).so
  11. libnsl_DIR := $(top_srcdir)libnsl
  12. libnsl_OUT := $(top_builddir)libnsl
  13. libnsl_SRC := $(libnsl_DIR)/nsl.c
  14. libnsl_OBJ := $(patsubst $(libnsl_DIR)/%.c,$(libnsl_OUT)/%.o,$(libnsl_SRC))
  15. ifeq ($(DOPIC),y)
  16. libnsl-a-y := $(libnsl_OBJ:.o=.os)
  17. else
  18. libnsl-a-y := $(libnsl_OBJ)
  19. endif
  20. libnsl-so-y := $(libnsl_OBJ:.o=.os)
  21. lib-a-y += $(top_builddir)lib/libnsl.a
  22. lib-so-y += $(top_builddir)lib/libnsl.so
  23. objclean-y += libnsl_clean
  24. ifeq ($(DOPIC),y)
  25. $(top_builddir)lib/libnsl.so: $(top_builddir)lib/libnsl.a $(libc)
  26. else
  27. $(top_builddir)lib/libnsl.so: $(libnsl_OUT)/libnsl_so.a $(libc)
  28. endif
  29. $(call link.so,$(libnsl_FULL_NAME),$(MAJOR_VERSION))
  30. $(libnsl_OUT)/libnsl_so.a: $(libnsl-so-y)
  31. $(Q)$(RM) $@
  32. $(do_strip)
  33. $(do_ar)
  34. $(top_builddir)lib/libnsl.a: $(libnsl-a-y)
  35. $(Q)$(INSTALL) -d $(dir $@)
  36. $(Q)$(RM) $@
  37. $(do_strip)
  38. $(do_ar)
  39. libnsl_clean:
  40. $(RM) $(libnsl_OUT)/*.{o,os,a}