Makefile.in 650 B

12345678910111213141516171819202122232425262728
  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 += libnsl
  8. CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
  9. libnsl_DIR := $(top_srcdir)libnsl
  10. libnsl_OUT := $(top_builddir)libnsl
  11. libnsl_SRC := $(libnsl_DIR)/nsl.c
  12. libnsl_OBJ := $(patsubst $(libnsl_DIR)/%.c,$(libnsl_OUT)/%.o,$(libnsl_SRC))
  13. ifeq ($(DOPIC),y)
  14. libnsl-a-y := $(libnsl_OBJ:.o=.os)
  15. else
  16. libnsl-a-y := $(libnsl_OBJ)
  17. endif
  18. libnsl-so-y := $(libnsl_OBJ:.o=.os)
  19. objclean-y += CLEAN_libnsl
  20. CLEAN_libnsl:
  21. $(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)