3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 CFLAGS-libnsl
:= -DNOT_IN_libc
-DIS_IN_libnsl
$(SSP_ALL_CFLAGS
)
12 libnsl_DIR
:= $(top_srcdir
)libnsl
13 libnsl_OUT
:= $(top_builddir
)libnsl
15 libnsl_SRC
:= $(libnsl_DIR
)/nsl.c
16 libnsl_OBJ
:= $(patsubst $(libnsl_DIR
)/%.c
,$(libnsl_OUT
)/%.o
,$(libnsl_SRC
))
19 libnsl-a-y
:= $(libnsl_OBJ
:.o
=.os
)
21 libnsl-a-y
:= $(libnsl_OBJ
)
23 libnsl-so-y
:= $(libnsl_OBJ
:.o
=.os
)
25 objclean-y
+= CLEAN_libnsl
28 $(do_rm
) $(addprefix $(libnsl_OUT
)/*.
, o os a
)