# 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),)
SWARMHOME=/home/ralf/sw/swarm-2.0.1
endif
APPVERSION=0.03.1
BUGADDRESS=ralf@ark.in-berlin.de
APPLICATION=aquarium
OBJECTS=main.o SetSet.o Species.o Agent.o Fish.o Shark.o AquariumSwarm.o AquariumObserverSwarm.o
APPDIR=$(APPLICATION)-$(APPVERSION)
SOURCES=$(addsuffix .m, $(basename $(OBJECTS)))
HEADERS=$(addsuffix .h, $(basename $(OBJECTS)))
HEADERS:=$(filter-out main.h,$(HEADERS))
APPLIBS=../../libMNGVideo.a

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

$(APPLICATION): $(APPLIBS)

archive:
	mkdir -p ../../$(ARC)/test ../../$(ARC)/test/aquarium
	cp $(SOURCES) $(HEADERS) COPYING ChangeLog README* Makefile ../../$(ARC)/test/aquarium


