#
# Makefile for the Java implementation of icecrypt
#
# Written by Matthew Kwan - April 1997
#

CLASSES =	IceCrypt.class Block.class IceKey.class

ZIPTARGET =	icecrypt.zip

JARTARGET =	icecrypt.jar

default:	$(CLASSES)

%.class:	%.java
		javac $<

zip:		$(ZIPTARGET)

$(ZIPTARGET):	$(CLASSES)
		zip -u -0 $@ $<

jar:		$(JARTARGET)

$(JARTARGET):	$(CLASSES)
		jar cvf $@ $<

clean:
		/bin/rm -f $(CLASSES) $(ZIPTARGET) $(JARTARGET)


# Specialized dependencies

IceCrypt.class:	IceCrypt.java
		javac $<
		chmod a+x $@
