changed all directory usages to dir/name instead of dir/name/
[physics.git] / src / Entities / files.mk
index e1e39d1..bffa3ac 100644 (file)
@@ -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}