#
# Makefile for the linux filesystem.
#
# 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 definitions are now in the main makefile...

MOD_LIST_NAME := FS_MODULES
ALL_SUB_DIRS = lockd nfs nfsd

ifeq ($(CONFIG_NFS_FS),y)
CONFIG_LOCKD := y
SUB_DIRS += nfs
else
  ifeq ($(CONFIG_NFS_FS),m)
  MOD_SUB_DIRS += nfs
  endif
endif

ifeq ($(CONFIG_NFSD),y)
CONFIG_LOCKD := y
SUB_DIRS += nfsd
else
  ifeq ($(CONFIG_NFSD),m)
  MOD_SUB_DIRS += nfsd
  endif
endif

ifeq ($(CONFIG_LOCKD),y)
SUB_DIRS += lockd
else
  ifeq ($(CONFIG_LOCKD),m)
  MOD_SUB_DIRS := lockd $(MOD_SUB_DIRS)
  endif
endif

include $(TOPDIR)/Rules.make
