giving more control to dir.mk files
[physics.git] / src / graphics / dir.mk
index 3a9c271..7028eef 100644 (file)
@@ -1,8 +1,18 @@
+NEWSRCS := # insure blank
+
+NEWSRCS += graphics.cpp
+
+
+# Post dir setup
+
 CURDIR         := graphics/
-FILES  := # insure blank
 
-FILES += graphics.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})