# 04-Jan-00: adapted from:
# template Makefile for a trivial Swarm application. Copy and modify.
#   SWARMHOME points to the Swarm directory root
#   APPLICATION is the name of your program
#   OBJECTS are the .o files needed to link your program
#   APPLIBS are extra libs you need to link (-lspace, for instance)
# Then include Makefile.appl, and you're set!
# you should also write dependencies for each of your .o files to ensure
#   correct compilation.

ifeq ($(SWARMHOME),)
# please set your SWARMHOME in your environment or put it here:
SWARMHOME=
endif
BUGADDRESS=ralf@ark.in-berlin.de

LIBNAME=logzone
OBJECTS=LoggingZone.o AsciiMemLogger.o RMemLogger.o KISSMemLogger.o \
MemLogClassData.o TextItemWithStr.o Hashtable.o
APPDIR=$(LIBNAME)-0.8

SOURCES=$(addsuffix .m, $(basename $(OBJECTS)))
HEADERS=$(addsuffix .h, $(basename $(OBJECTS)))
HEADERS:=$(filter-out $(APPLICATION).h,$(HEADERS)) MemLogConsumer.h

include $(SWARMHOME)/etc/swarm/Makefile.lib

#-include .depend

#.depend: $(SOURCES)
#	gcc -M -MG -D_GNU_SOURCE *.m >.depend 2>/dev/null

html:
	ht latex doc-t4h
	cp doc-t4h.html doc.html
	cp doc-t4h.css doc.css

dvi:
	latex doc.tex
	latex doc.tex
	latex doc.tex

tarball:
	rm -rf $(APPDIR)
	mkdir $(APPDIR)
	cp *.h *.m *.tex Makefile README COPYING Changes $(APPDIR)
	cp doc.html doc.css doc.dvi $(APPDIR)
	tar cvfz $(APPDIR).tar.gz $(APPDIR)
	rm -rf $(APPDIR)

#ps:
#	jade -t tex -d doc.print.dsl doc.sgml
#	jadetex doc.tex
#	jadetex doc.tex
#	jadetex doc.tex
#	dvips -o doc.ps doc.dvi


