# 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=/usr endif APPVERSION=2.1 BUGADDRESS=bug-swarm@swarm.org APPLICATION=marriage OBJECTS=main.o MovingAverage.o ModelSwarm.o ObserverSwarm.o Person.o APPLIBS= include $(SWARMHOME)/etc/swarm/Makefile.appl main.o: main.m MovingAverage.h ObserverSwarm.h MovingAverage.o: MovingAverage.m MovingAverage.h Person.o: Person.m Person.h ModelSwarm.o: ModelSwarm.m ModelSwarm.h ObserverSwarm.o: ObserverSwarm.m ObserverSwarm.h ModelSwarm.h