OSDN Git Service

buildsys: fix IS_IN_lib*
[uclinux-h8/uClibc.git] / libc / inet / rpc / Makefile.in
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
8 subdirs += libc/inet/rpc
9
10 CFLAGS-y-libc/inet/rpc := -fno-strict-aliasing
11
12 # For now, only compile the stuff needed to do an NFS mount....
13 CSRC_NFS = authunix_prot.c auth_none.c auth_unix.c bindresvport.c \
14         clnt_perror.c clnt_simple.c clnt_tcp.c clnt_udp.c \
15         create_xid.c getrpcent.c \
16         pmap_clnt.c pm_getmaps.c pm_getport.c pmap_prot.c pmap_prot2.c \
17         rcmd.c rexec.c rpc_cmsg.c rpc_commondata.c rpc_dtablesize.c \
18         rpc_prot.c rpc_thread.c rtime.c ruserpass.c sa_len.c \
19         svc.c svc_auth.c svc_authux.c \
20         xdr.c xdr_array.c xdr_mem.c xdr_rec.c xdr_reference.c
21
22 INET_RPC_DIR:=$(top_srcdir)libc/inet/rpc
23 INET_RPC_OUT:=$(top_builddir)libc/inet/rpc
24
25 CSRC_ALL = $(notdir $(wildcard $(INET_RPC_DIR)/*.c))
26 CSRC-y := $(if $(UCLIBC_HAS_FULL_RPC),$(CSRC_ALL),$(CSRC_NFS))
27 # rpc_thread.oS is better, because the header adds unneeded references
28 # to __pthread_internal_tsd*
29 CSRC-y := $(filter-out rpc_thread.c,$(CSRC-y))
30
31 INET_RPC_SRC:=$(patsubst %.c,$(INET_RPC_DIR)/%.c,$(CSRC-y))
32 INET_RPC_OBJ:=$(patsubst %.c,$(INET_RPC_OUT)/%.o,$(CSRC-y))
33
34 libc-static-$(UCLIBC_HAS_RPC)  += $(INET_RPC_OUT)/rpc_thread.o
35 libc-shared-$(UCLIBC_HAS_RPC)  += $(INET_RPC_OUT)/rpc_thread.oS
36 libc-nomulti-$(UCLIBC_HAS_RPC) += $(INET_RPC_OUT)/rpc_thread.o
37 libc-$(UCLIBC_HAS_RPC) += $(INET_RPC_OBJ)
38
39 objclean-y+=CLEAN_libc/inet/rpc
40
41 CLEAN_libc/inet/rpc:
42         $(do_rm) $(addprefix $(INET_RPC_OUT)/*., o os oS)