# 04-Jan-00: adapted from:
# template Makefile for a trivial Swarm application. Copy and modify.
#   SWARMHOME points to the Swarm directory root

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
MAPPDIR=$(LIBNAME)-0.9.1

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

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

html:
	texi2html $(LIBNAME).texinfo

dvi:
	texi2dvi $(LIBNAME).texinfo

info:
	makeinfo $(LIBNAME).texinfo

ps:
	dvips -o $(LIBNAME).ps $(LIBNAME).dvi

tarball:
	rm -rf $(MAPPDIR)
	mkdir $(MAPPDIR)
	cp *.h *.m Makefile README COPYING Changes $(LIBNAME).texinfo $(MAPPDIR)
	cp $(LIBNAME)*.html $(LIBNAME).dvi $(LIBNAME).info $(MAPPDIR)
	tar cvfz $(MAPPDIR).tar.gz $(MAPPDIR)
	rm -rf $(MAPPDIR)


