NEWSRCS := # insure blank NEWSRCS += CreatingPolygon.cpp NEWSRCS += GameState.cpp NEWSRCS += Paused.cpp NEWSRCS += Running.cpp # Post dir setup CURDIR := GameStates/ 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})