created stackpush/pop include functions
[physics.git] / src / GameStates / dir.mk
index 5665c36..f760812 100644 (file)
@@ -1,21 +1,15 @@
-NEWSRCS := # insure blank
 
-NEWSRCS += CreatingPolygon.cpp
-NEWSRCS += GameState.cpp
-NEWSRCS += Paused.cpp
-NEWSRCS += Running.cpp
+T_DIRNAME := GameStates
 
+################################################################################
 
-# Post dir setup
+include Makefile.d/stackpush.mk
+T_DIRNAME :=
 
-CURDIR         := GameStates/
 
-NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
-NEWOBJS := ${NEWSRCS:.cpp=.o}
-NEWDEPS := ${NEWSRCS:.cpp=.d}
+include ${CURDIR}${G_FILESMK}
+include $(addsuffix ${G_DIRMK},${NEWDIRS})
 
-# Append to lists
 
-SRCS    += ${NEWSRCS}
-OBJS    += $(addprefix ${OBJSDIR},${NEWOBJS})
-DEPS    += $(addprefix ${DEPSDIR},${NEWDEPS})
+include Makefile.d/stackpop.mk
+