| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | # Makefile for uClibc## Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>## Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.#CFLAGS-rpc := -fno-strict-aliasingifneq ($(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 pm_getmaps.c pm_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.cendifINET_RPC_DIR:=$(top_srcdir)libc/inet/rpcINET_RPC_OUT:=$(top_builddir)libc/inet/rpcifeq ($(UCLIBC_HAS_FULL_RPC),y)INET_RPC_SRC:=$(wildcard $(INET_RPC_DIR)/*.c)elseINET_RPC_SRC:=$(patsubst %.c,$(INET_RPC_DIR)/%.c,$(CSRC))endif# rpc_thread.oS is better, because the header adds unneeded references to __pthread_internal_tsd*INET_RPC_SRC:=$(filter-out $(INET_RPC_DIR)/rpc_thread.c,$(INET_RPC_SRC))INET_RPC_OBJ:=$(patsubst $(INET_RPC_DIR)/%.c,$(INET_RPC_OUT)/%.o,$(INET_RPC_SRC))libc-static-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OUT)/rpc_thread.olibc-shared-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OUT)/rpc_thread.oSlibc-nomulti-$(UCLIBC_HAS_RPC) += $(INET_RPC_OUT)/rpc_thread.olibc-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ)objclean-y+=inet_rpc_objcleaninet_rpc_objclean:	$(RM) $(INET_RPC_OUT)/*.{o,os,oS}
 |