# ---------------------------------------------------------------------
#   Distinct ONC RPC/XDR for Java RPCInfo
#   Copyright 1997, 1998 by Distinct Corporation. All rights reserved.
# ---------------------------------------------------------------------

# Use these settings on Win32
RM = del
EXTCLASSPATH = -classpath .;$(CLASSPATH)

# Use these setting on Solaris (and other Unix derivates)
#RM = rm
#EXTCLASSPATH = -classpath .:$(CLASSPATH)

.SUFFIXES : .java .class

JAVAC = javac
JAVAOPTS = -O

CLASSES =       PmapDump.class \
                PmapEntry.class \
                PmapList.class \
                RPCInfo.class

all:	$(CLASSES)

clean:
	-$(RM) *.class
	-$(RM) PmapDump.java
	-$(RM) PmapEntry.java
	-$(RM) PmapList.java

# Use the first line on Win32 and the second line on Solaris
PmapDump.java:
	java Jrpcgen PmapDump.x
#	java Jrpcgen -c /usr/ccs/lib/cpp PmapDump.x

.java.class:
	$(JAVAC) $(JAVAOPTS) $(EXTCLASSPATH) $*.java
