Makefile.in 1.5 KB

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