#CXXFLAGS=-I$(QTDIR)/include 
LDFLAGS=-lm

WIDTH=1000
HEIGHT=500

.PHONY: all clean

all: maze.png
clean: 
	rm -f maze.png maze.inc *.o gen

Maze.o: Maze.cpp Maze.h
gen.o: gen.cpp Maze.h 

gen: gen.o

gen: Maze.o gen.o
	g++ -o gen gen.o Maze.o $(LDFLAGS)

maze.inc: gen
	./gen > maze.inc

maze.png: maze.pov maze.inc forest.inc
	povray +A0.1 +W$(WIDTH) +H$(HEIGHT) +Omaze.png +Imaze.pov


forest.inc: forest.py
	python forest.py > forest.inc
