X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2Ffiles.mk;h=bffa3ac598a8a297cb562dee2a969f5f8859563b;hb=389bf8fdd7e1b8f4fe21e5a9fdb477d40d03d829;hp=e1e39d15d8b31c1fb85ef70909a88e0d3199485e;hpb=e4d7555ada4b164f6ee12019356bdb0a12c5fbf9;p=physics.git diff --git a/src/Entities/files.mk b/src/Entities/files.mk index e1e39d1..bffa3ac 100644 --- a/src/Entities/files.mk +++ b/src/Entities/files.mk @@ -1,15 +1,29 @@ -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 := # := start; empty -FILES := $(addprefix ${CURDIR},${FILES}) +NEWSRCS += Ball.cpp +NEWSRCS += Entity.cpp +NEWSRCS += Line.cpp +NEWSRCS += Particle.cpp +NEWSRCS += PhysicsEntity.cpp +NEWSRCS += Point.cpp +NEWSRCS += Polygon.cpp +NEWSRCS += WindParticle.cpp + +NEWDIRS := # := start; empty + +################################################################################ + +NEWSRCS := $(addprefix ${CURDIR}/,${NEWSRCS}) +NEWDIRS := $(addprefix ${CURDIR}/,${NEWDIRS}) + +# Append to lists + +L_SRCS_$P += ${NEWSRCS} + +L_OBJS_$P += ${NEWSRCS:${SRCSDIR_$P}%.cpp=${OBJSDIR_$P}%.o} +L_DEPS_$P += ${NEWSRCS:${SRCSDIR_$P}%.cpp=${DEPSDIR_$P}%.d} + +L_BLDDIRS_$P += ${NEWDIRS:${SRCSDIR_$P}%=${OBJSDIR_$P}%} +L_BLDDIRS_$P += ${NEWDIRS:${SRCSDIR_$P}%=${DEPSDIR_$P}%} -SRCS += ${FILES}