SOURCE=Board.hs Game.hs Main.hs Observer.hs Pack.hs Pos.hs Robo.hs Server.hs Utils.hs
AUX=README LICENSE Makefile ChangeLog doc.html style.css

PACKS=-package net -package posix -package concurrent -package util
OPT=-O2 -optl -static -optl -s
#OPT=-O2 -prof -auto-all
#INC=-ilib -ilib/Monads
INC=
WARN=-fwarn-name-shadowing -fwarn-incomplete-patterns

Simulator: *.hs
	ghc --make $(WARN) $(PACKS) $(OPT) $(INC) -o Simulator Main.hs

simulator.tar.gz::
	tar zcf simulator.tar.gz $(AUX) $(SOURCE)

clean:
	rm -f *.hi *.o Simulator
