make system changed to be a subset of the library make system
[physics.git] / src / graphics / dir.mk
index 7028eef..9328018 100644 (file)
@@ -1,18 +1,40 @@
-NEWSRCS := # insure blank
 
-NEWSRCS += graphics.cpp
+T_DIRNAME := graphics
 
+################################################################################
 
-# Post dir setup
+# save
+T := $D_TEMP
+    DIRNAME_$T  := ${DIRNAME}
+    D_$T        := $D
 
-CURDIR         := graphics/
+    DIRNAME     := ${T_DIRNAME}
+    D           := $D_${DIRNAME}
 
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWOBJS := ${NEWSRCS:.cpp=.o}
-NEWDEPS := ${NEWSRCS:.cpp=.d}
+    DIRNAME_$D  := ${DIRNAME_$T}
+    D_$D        := ${D_$T}
 
-# Append to lists
+    DIRNAME_$T  :=
+    D_$T        :=
+T :=
+
+T_DIRNAME :=
+
+CURDIR_$D   := ${CURDIR}
+CURDIR      := ${CURDIR_$D}${DIRNAME}/
+
+SRCPATH_$D  := ${SRCPATH}
+SRCPATH     := ${SRCPATH_$D}${DIRNAME}/
+
+
+include ${CURDIR}${G_FILESMK}
+include $(addprefix ${SRCSDIR_$P},$(addsuffix ${G_DIRMK},${NEWDIRS}))
+
+
+# restore
+
+CURDIR  := ${CURDIR_$D}
+SRCPATH := ${SRCPATH_$D}
+DIRNAME := ${DIRNAME_$D}
+D       := ${D_$D}
 
-SRCS    += ${NEWSRCS}
-OBJS    += $(addprefix ${OBJSDIR},${NEWOBJS})
-DEPS    += $(addprefix ${DEPSDIR},${NEWDEPS})