#
# linux-nfs/Makefile
#
#-----------------------------------------------------
TOPDIR  :=  $(shell /bin/pwd)
TOPDIR  :=  $(TOPDIR)/..

include $(TOPDIR)/prerules.mk
#-----------------------------------------------------
SUBDIRS	= tools support utils
TOP	= 
RAMDISK_DIR     = ../../ramdisk

# Target path
T_SBIN          := $(RAMDISK_DIR)/sbin
T_BIN           := $(RAMDISK_DIR)/bin
T_USBIN         := $(RAMDISK_DIR)/usr/sbin
T_UBIN          := $(RAMDISK_DIR)/usr/bin


T_ETC           := $(RAMDISK_DIR)/etc
T_HOME          := $(RAMDISK_DIR)/home

T_LIB           := $(RAMDISK_DIR)/lib

T_SHARE         := $(RAMDISK_DIR)/share

all:: config.mk utils/statd/.depend

include $(TOP)rules.mk


config.mk:
	./configure

utils/statd/.depend:
	$(MAKE) $(MFLAGS) dep

distclean clean::
	rm -f postscript/*.ps
	rm -f LOG make.log

distclean::
	rm -fr bin
	rm -f config.cache config.log config.mk config.status

install:
	$(STRIP) utils/nfsd/nfsd
	$(STRIP) utils/mountd/mountd
	$(STRIP) utils/exportfs/exportfs

	cp utils/nfsd/nfsd $(T_SBIN)
	cp utils/mountd/mountd $(T_SBIN)
	cp utils/exportfs/exportfs $(T_SBIN)
