# Generated automatically from Makefile.in by configure.
#
#  This file is part of Siena, a wide-area event notification system.
#  See http://www.cs.colorado.edu/serl/dot/siena.html
#
#  Author: Antonio Carzaniga <carzanig@cs.colorado.edu>
#  See the file AUTHORS for full details. 
#
#  Copyright (C) 1998-2000 University of Colorado
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  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.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
#  USA, or send email to serl@cs.colorado.edu.
#
#
# $Id: Makefile.in,v 1.1 2000/04/17 17:07:18 carzanig Exp $
#

SHELL		= /bin/sh

subdirs		= base server
top_srcdir	= ..
srcdir		= .

prefix		= ..
javadir		= $(prefix)/java



#
# Siena ``base'' stuff
#
JAVA		= @JAVA@
JAVAC		= javac
JAVADOC		= javadoc
JAR		= jar
INSTALL		= /usr/bin/install -c
MKPATH		= mkdir -p

SIENAVERSION	= 0.3.1
SIENAJAR	= ../siena-$(SIENAVERSION).jar

CLASSDIR	= .
JFLAGS		= -g -d $(CLASSDIR) -classpath $(SIENAJAR)

SOURCES 	= TestTokenizer.java Sender.java Receiver.java Compare.java \
		  TestCovering.java TestFilter.java \
		  TestEncode.java TestDecode.java TestLocalPubSub.java
CLASSES		= siena/TestTokenizer.class TestLocalPubSub.class \
		  siena/TestCovering.class siena/TestFilter.class \
		  TestEncode.class siena/TestDecode.class \
		  siena/Sender.class Receiver.class siena/Compare.class
TESTS		= $(srcdir)/test_tokenizer.sh $(srcdir)/test_covering.sh \
		  $(srcdir)/test_filter.sh $(srcdir)/test_encode.sh \
		  $(srcdir)/test_remote_sub.sh

.PHONY: all compileall clean distclean maintainerclean

all: $(CLASSES)

$(CLASSES): $(SOURCES)
	$(JAVAC) $(JFLAGS) $^

runtests: $(CLASSES) config.sh $(TESTS) $(srcdir)/topology.sh
	@for t in $(TESTS); do $$t || exit 1; done

clean:
	/bin/rm -rf *.class siena

distclean: clean
	/bin/rm -f *~ Makefile config.status config.cache \
		*.log *.info server.pids 

maintainerclean: distclean
#
# autoconf stuff
#
$(top_srcdir)/configure: $(top_srcdir)/configure.in 
	cd $(top_srcdir) && autoconf

./Makefile: $(srcdir)/Makefile.in ../config.status
	cd .. && ./config.status

../config.status: $(top_srcdir)/configure
	cd .. && ./config.status --recheck
