#*****************************************************************************#
#* File name: Makefile                                                       *#
#* Purpose: to make nfs and all packages used by it                          *#
#* Last modified: 27.07.99                                                   *#
#* Author: Victor Klimov, 1999                                               *#
#*                                                                           *#
#* This program is distributed in the hope that it will be useful, but       *#
#* WITHOUT ANY WARRANTY; without even the implied warranty of                *#
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General *#
#* Public License for more details.                                          *#
#*                                                                           *#
#* This software is distributed under the terms                              *#
#* of the GNU General Public License as published                            *#
#* by the Free Software Foundation; either version 2, or (at your option)    *#
#* any later version.                                                        *#
#* See file COPYING for your rights (GNU GPL)                                *#
#*****************************************************************************#

# $Header: /d/NFS/RCS/Makefile,v 1.1 1999/07/28 20:02:28 vklimov Exp $

JC = javac
JCFLAGS = -g
JCLASSPATH = -classpath .:/usr/src/jdk1.1.3/lib/classes.zip
export JC
export JCFLAGS
export JCLASSPATH
packages =  general xdr util c msdos io jtar rpc pm mount nfs

%.class : %.java
	$(JC) $(JCFLAGS) $(JCLASSPATH) $^

all: $(packages)
	for i in $(packages); do \
		echo $$i; cd $$i; \
		$(MAKE) -f Makefile all; \
		cd ..; \
	done


.PHONY : clean
clean:
	find . -type f -name "*.class" -print -exec rm -r {} \;

#*****************************************************************************#
#* End of file: Makefile                                                     *#
#*****************************************************************************#
