X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FEntities%2Fdir.mk;h=d51df6e551719be988fcc80db5dd68fbdf454cfd;hp=e1e39d15d8b31c1fb85ef70909a88e0d3199485e;hb=16f1445959244e40f1d68afb175a87c613e4b6f0;hpb=70468808f161d45b9ae0eecf5d9d854a805bd855 diff --git a/src/Entities/dir.mk b/src/Entities/dir.mk index e1e39d1..d51df6e 100644 --- a/src/Entities/dir.mk +++ b/src/Entities/dir.mk @@ -1,15 +1,25 @@ +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/ -FILES := # insure blank -FILES += Ball.cpp -FILES += Entity.cpp -FILES += Line.cpp -FILES += Particle.cpp -FILES += PhysicsEntity.cpp -FILES += Point.cpp -FILES += Polygon.cpp -FILES += WindParticle.cpp +NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS}) +NEWOBJS := ${NEWSRCS:.cpp=.o} +NEWDEPS := ${NEWSRCS:.cpp=.d} -FILES := $(addprefix ${CURDIR},${FILES}) +# Append to lists -SRCS += ${FILES} +SRCS += ${NEWSRCS} +OBJS += $(addprefix ${OBJSDIR},${NEWOBJS}) +DEPS += $(addprefix ${DEPSDIR},${NEWDEPS})