X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2Ffiles.mk;h=41f88b6363ad0c1b6888dc723940bb6c7979c38d;hb=ce5a195f85b9cdaf5f412db4dda458fb976d6d36;hp=3d008fa6f49273ea63da08aaed8d3b27593ad539;hpb=0376f786586cb8183437837007be8df7f054fb80;p=physics.git diff --git a/src/Entities/files.mk b/src/Entities/files.mk index 3d008fa..41f88b6 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}