NEWSRCS := # insure blank NEWSRCS += Ball.cpp NEWSRCS += Entity.cpp NEWSRCS += Line.cpp NEWSRCS += Particle.cpp NEWSRCS += PhysicsEntity.cpp NEWSRCS += Point.cpp NEWSRCS += Polygon.cpp NEWSRCS += WindParticle.cpp # Post dir setup CURDIR := Entities/ NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS}) NEWOBJS := ${NEWSRCS:.cpp=.o} NEWDEPS := ${NEWSRCS:.cpp=.d} # Append to lists SRCS += ${NEWSRCS} OBJS += $(addprefix ${OBJSDIR},${NEWOBJS}) DEPS += $(addprefix ${DEPSDIR},${NEWDEPS})