summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/Makefile.in
blob: cee428b09d8b2649ea0654fa670ebc346b23a0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Makefile for uClibc
#
# Copyright (C) 2000 by Lineo, inc.
# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

ifneq ($(UCLIBC_HAS_FULL_RPC),y)
# For now, only compile the stuff needed to do an NFS mount....
CSRC:=	authunix_prot.c auth_none.c auth_unix.c bindresvport.c \
	clnt_perror.c clnt_simple.c clnt_tcp.c clnt_udp.c \
	create_xid.c getrpcent.c \
	pmap_clnt.c pmap_getmaps.c pmap_getport.c pmap_prot.c pmap_prot2.c \
	rcmd.c rexec.c rpc_cmsg.c rpc_commondata.c rpc_dtablesize.c \
	rpc_prot.c rpc_thread.c rtime.c ruserpass.c sa_len.c \
	svc.c svc_auth.c svc_authux.c \
	xdr.c xdr_array.c xdr_mem.c xdr_rec.c xdr_reference.c
endif

INET_RPC_DIR:=$(top_srcdir)libc/inet/rpc
INET_RPC_OUT:=$(top_builddir)libc/inet/rpc

ifeq ($(UCLIBC_HAS_FULL_RPC),y)
INET_RPC_SRC:=$(wildcard $(INET_RPC_DIR)/*.c)
else
INET_RPC_SRC:=$(patsubst %.c,$(INET_RPC_DIR)/%.c,$(CSRC))
endif
INET_RPC_OBJ:=$(patsubst $(INET_RPC_DIR)/%.c,$(INET_RPC_OUT)/%.o,$(INET_RPC_SRC))

libc-a-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ)
libc-so-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ:.o=.os)

objclean-y+=inet_rpc_objclean

inet_rpc_objclean:
	$(RM) $(INET_RPC_OUT)/*.{o,os}