#
# Makefile for Linux kernel SUN RPC
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...

O_TARGET := sunrpc.o
RPC_OBJS := clnt.o xprt.o sched.o stats.o \
	    auth.o auth_null.o auth_unix.o \
	    svc.o svcsock.o svcauth.o \
	    pmap_clnt.o xdr.o sysctl.o
#		svcsock.o svcauth.o
DES_OBJS := auth_des.o keycall.o
O_OBJS   := $(RPC_OBJS)

MOD_LIST_NAME := NET_SUNRPC_MODULES
M_OBJS	:= $(O_TARGET)

ifeq ($(CONFIG_SUNRPC_SECURE),y)
O_TARGET+= authdes.o
#O_OBJS	+= $(DES_OBJS)
else
  ifeq ($(CONFIG_SUNRPC_SECURE),m)
  M_OBJS += authdes.o
  endif
endif

include $(TOPDIR)/Rules.make

authdes.o: $(DES_OBJS)
	$(LD) -r -o $@ $(DES_OBJS)
