

JINI = /usr/local/jini2_0
CLASSPATH = .:$(JINI)/lib/jini-ext.jar:$(JINI)/lib/jini-core.jar:$(JINI)/lib/serviceui-1.1.jar;/home/httpd/html/java/jini/speaker.old/speaker/

%.class: %.java
	javac -deprecation  -classpath $(CLASSPATH) $<

CLASSES = \
	common/IncompatableSinkException.class \
	common/IncompatableSourceException.class \
	common/TooManySinksException.class \
	common/TooManySourcesException.class \
	common/NoSuchSinkException.class \
	common/NoSuchSourceException.class \
	common/AlreadyPlayingException.class \
	common/NotPlayingException.class \
	common/AlreadyRecordingException.class \
	common/NotRecordingException.class \
	common/NoSuchListenerException.class \
	common/CDTrack.class \
	common/ComparableServiceItem.class \
	common/Sink.class \
	common/Source.class \
	common/Directory.class \
	common/VolumeControl.class \
	\
	transport/HttpURL.class \
	transport/HttpSink.class \
	transport/HttpSource.class \
	transport/TcpSource.class \
	transport/TransportSink.class \
	transport/HttpSinkImpl.class \
	transport/TcpSinkImpl.class \
	\
	transport/Transport.class \
	transport/PullByteSink.class\
	transport/PullByteSource.class \
	transport/PushByteSink.class \
	transport/PushByteSource.class \
	\
	presentation/WAV.class \
	presentation/MP3.class \
	presentation/Ogg.class \
	\
	pushbytes/PushByteSourceImpl.class \
	pushbytes/PushByteSinkImpl.class \
	\
	aumix/Aumix.class \
	\
	http/HttpWAVSourceImpl.class \
	http/HttpMP3SourceImpl.class \
	http/HttpOggSourceImpl.class \
	http/HttpSourceImpl.class \
	http/HttpSourceActivationImpl.class \
        http/HttpFileSourceServer.class \
	\
	pull/ContentSink.class \
	pull/PullSource.class \
	pull/SinkImpl.class \
	pull/SinkServer.class \
	\
	filedir/FileDirectory.class \
	filedir/DirDirectory.class \
	\
	tuner/Server.class \
	tuner/Client.class \
	tuner/TcpSourceImpl.class \
	tuner/TunerSource.class \
	\
	filesink/FileSink.class \
	filesink/RemoteFileSystemView.class \
	filesink/RemoteFileSystemViewWrapper.class \
	filesink/ContentSink.class \
	filesink/FileSinkJDialog.class \
	filesink/FileSinkJDialogFactory.class \
	filesink/SinkImpl.class \
	filesink/SinkServer.class \
	\
	client/BasicClient.class \
	client/SourceSink.class \
	client/LabelCellRenderer.class \
	client/PlayFrame.class \
	client/ClientFrame.class \
	client/ClientFrame.class \
	client/GUIClient.class

DEFUNCT = \
	client/HttpBasicClient.class \
	common/ContentType.class \
	common/MimeType.class \
	http/HttpSinkImpl.class \


TESTS =

all: $(CLASSES) $(TESTS)

clean:
	rm -rf */*.class */*~

run:
	java2 -classpath $(CLASSPATH) SmartCat image.gif

run2:
	java2 -classpath $(CLASSPATH) SmartCat file.txt

install:
	jar cf speaker.jar */*.class
	cp speaker.jar /home/httpd/html/classes/speaker.jar
	scp speaker.jar root@server:/home/httpd/html/classes/speaker.jar
