Considering the following Makefile:
%.o: %.cpp
$(C) $(CF) -c $< -o $@
Audio/%.o: Audio/%.cpp
$(C) $(CF) -c $< -o $@
Game/%.o: Game/%.cpp
$(C) $(CF) -c $< -o $@
Generation/%.o: Generation/%.cpp
$(C) $(CF) -c $< -o $@
Input/%.o: Input/%.cpp
$(C) $(CF) -c $< -o $@
Particle/%.o: Particle/%.cpp
$(C) $(CF) -c $< -o $@
Screen/%.o: Screen/%.cpp
$(C) $(CF) -c $< -o $@
Utility/%.o: Utility/%.cpp
$(C) $(CF) -c $< -o $@
How can I simplify it so that it only depends on a list of directories, such as:
SUBD = Audio/\
Game/\
Generation/\
Input/\
Particle/\
Screen/\
Utility/