Makefile.in 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libresolv.so := $(LDFLAGS)
  9. LIBS-libresolv.so := $(LIBS)
  10. libresolv_FULL_NAME := libresolv-$(VERSION).so
  11. libresolv_DIR := $(top_srcdir)libresolv
  12. libresolv_OUT := $(top_builddir)libresolv
  13. libresolv_SRC := $(libresolv_DIR)/resolv.c
  14. libresolv_OBJ := $(patsubst $(libresolv_DIR)/%.c,$(libresolv_OUT)/%.o,$(libresolv_SRC))
  15. ifeq ($(DOPIC),y)
  16. libresolv-a-y := $(libresolv_OBJ:.o=.os)
  17. else
  18. libresolv-a-y := $(libresolv_OBJ)
  19. endif
  20. libresolv-so-y := $(libresolv_OBJ:.o=.os)
  21. lib-a-y += $(top_builddir)lib/libresolv.a
  22. lib-so-y += $(top_builddir)lib/libresolv.so
  23. objclean-y += libresolv_clean
  24. ifeq ($(DOPIC),y)
  25. $(top_builddir)lib/libresolv.so: $(top_builddir)lib/libresolv.a $(libc.depend)
  26. else
  27. $(top_builddir)lib/libresolv.so: $(libresolv_OUT)/libresolv_so.a $(libc.depend)
  28. endif
  29. $(call link.so,$(libresolv_FULL_NAME),$(MAJOR_VERSION))
  30. $(libresolv_OUT)/libresolv_so.a: $(libresolv-so-y)
  31. $(Q)$(RM) $@
  32. $(do_ar)
  33. $(top_builddir)lib/libresolv.a: $(libresolv-a-y)
  34. $(Q)$(INSTALL) -d $(dir $@)
  35. $(Q)$(RM) $@
  36. $(do_ar)
  37. libresolv_clean:
  38. $(RM) $(libresolv_OUT)/*.{o,os,a}