1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Makefile for uClibc
- #
- # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
- LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc)
- LIBS-libnsl.so := $(LIBS)
- libnsl_FULL_NAME := libnsl-$(VERSION).so
- libnsl_DIR := $(top_srcdir)libnsl
- libnsl_OUT := $(top_builddir)libnsl
- libnsl_SRC := $(libnsl_DIR)/nsl.c
- libnsl_OBJ := $(patsubst $(libnsl_DIR)/%.c,$(libnsl_OUT)/%.o,$(libnsl_SRC))
- ifeq ($(DOPIC),y)
- libnsl-a-y := $(libnsl_OBJ:.o=.os)
- else
- libnsl-a-y := $(libnsl_OBJ)
- endif
- libnsl-so-y := $(libnsl_OBJ:.o=.os)
- lib-a-y += $(top_builddir)lib/libnsl.a
- lib-so-y += $(top_builddir)lib/libnsl.so
- objclean-y += libnsl_clean
- ifeq ($(DOPIC),y)
- $(top_builddir)lib/libnsl.so: $(top_builddir)lib/libnsl.a $(libc.depend)
- else
- $(top_builddir)lib/libnsl.so: $(libnsl_OUT)/libnsl_so.a $(libc.depend)
- endif
- $(call link.so,$(libnsl_FULL_NAME),$(MAJOR_VERSION))
- $(libnsl_OUT)/libnsl_so.a: $(libnsl-so-y)
- $(Q)$(RM) $@
- $(do_ar)
- $(top_builddir)lib/libnsl.a: $(libnsl-a-y)
- $(Q)$(INSTALL) -d $(dir $@)
- $(Q)$(RM) $@
- $(do_ar)
- libnsl_clean:
- $(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)
|