# 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-1999 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.7 2000/03/29 23:47:18 carzanig Exp $
#

SHELL		= /bin/sh

subdirs		= base server
top_srcdir	= .
srcdir		= .

prefix		= /home/orso/core/Siena/WIP/Siena3.3/inst
javadir		= $(prefix)/java



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

SIENAVERSION	= 0.3.1
PACKAGE		= siena-$(SIENAVERSION)
SRCPACKAGE	= siena-java-$(SIENAVERSION)
DOCPACKAGE	= siena-javadoc-$(SIENAVERSION)

CLASSDIR	= classes
DOCDIR		= doc
DOCS		= AUTHORS LICENSE README VERSION
MAKEFILES	= Makefile.in
CONFIGS		= configure install-sh configure.in aclocal.m4
JFLAGS		= -g -d $(CLASSDIR) -classpath $(CLASSDIR)

SOURCES 	= AttributeValue.java Event.java Siena.java \
		  AttributeConstraint.java Filter.java SienaException.java \
		  Notifiable.java Covering.java\
                  SENP.java SENPPacket.java \
                  PacketHandler.java InvalidPacketHandlerException.java \
		  PacketHandlerException.java \
		  TCPPacketHandler.java PacketHandlerFactory.java \
		  HierarchicalDispatcher.java \
		  Monitor.java \
		  SienaId.java \
		  StartServer.java

SRCDIST		= $(DOCS) $(MAKEFILES) $(CONFIGS) $(SOURCES)

all: $(PACKAGE).jar

doc: $(DOCPACKAGE).tar.gz

.PHONY: all doc install clean distclean maintainerclean

$(PACKAGE).jar: $(SOURCES)
	test -d $(CLASSDIR) || mkdir $(CLASSDIR)
	$(JAVAC) $(JFLAGS) $?
	$(JAR) cvf $@ -C $(CLASSDIR) siena

$(DOCPACKAGE).tar.gz: $(SOURCES)
	test -d $(DOCDIR) || mkdir $(DOCDIR) 
	$(JAVADOC) -d $(DOCDIR) $?
	tar cvf - $(DOCDIR) | gzip > $@

install: $(PACKAGE).jar $(DOCPACKAGE).tar.gz
	test -d $(CLASSDIR) || mkdir -p $(javadir)
	$(INSTALL) -m 644 $(PACKAGE).jar $(DOCPACKAGE).tar.gz $(javadir)

srcdist: $(SRCPACKAGE).tar.gz

$(SRCPACKAGE).tar.gz:
	mkdir $(PACKAGE)
	(cd $(srcdir);tar cf - $(SRCDIST))|(cd $(PACKAGE);tar xf -)
	tar cf - $(PACKAGE) | gzip > $@
	/bin/rm -rf $(PACKAGE)

clean:
	/bin/rm -rf $(CLASSDIR) $(DOCDIR) $(PACKAGE).jar

distclean: clean
	/bin/rm -f *~ Makefile config.status config.cache config.log \
		$(PACKAGE).* $(DOCPACKAGE).* $(SRCPACKAGE).*

#
# maintainer stuff
#
maintainerclean: distclean

checkout:
	cd $(srcdir) && \
	co $(COFLAGS) $(DOCS) $(MAKEFILES) $(SOURCES) < /dev/null

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

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

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