This is the way I like it:
- Only call fpc on hwengine.pas, let compiler rule the dependencies
- Make hwengine.pas depend on all other source files, so 'make' always calls fpc
foreach(dir
Art
Bamboo
Bath
Blox
Brick
Cake
Cave
Castle
Cheese
Christmas
City
Compost
CrazyMission
Deepspace
Desert
EarthRise
Eyes
Freeway
Fruit
Golf
Halloween
Hell
Island
Jungle
Nature
Olympics
Planes
Sheep
Snow
Stage
Underwater
)
add_subdirectory(${dir})
endforeach(dir)