created function include varibles F_
authorPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 1 Jul 2009 19:30:08 +0000 (15:30 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 1 Jul 2009 19:30:08 +0000 (15:30 -0400)
Makefile
Makefile.d/vars.mk [new file with mode: 0644]
lib/rules.mk
lib/src/dir.mk
lib/src/locks/dir.mk
tests/rules.mk
tests/src/1/dir.mk
tests/src/dir.mk
tests/src/printTrace/dir.mk

index a1a2d5c..5510278 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,8 @@ G_RULESMK   := rules.mk
 G_LISTSMK   := lists.mk
 G_TVARSMK   := tvars.mk
 
+include Makefile.d/${G_VARSMK}
+
 include ${G_LISTSMK}
 include ${G_VARSMK}
 
diff --git a/Makefile.d/vars.mk b/Makefile.d/vars.mk
new file mode 100644 (file)
index 0000000..64ac7d7
--- /dev/null
@@ -0,0 +1,6 @@
+
+F_STACKPUSH   := Makefile.d/stackpush.mk
+F_STACKPOP    := Makefile.d/stackpop.mk
+
+F_CLEANRULES  := Makefile.d/cleanrules.mk
+
index 2b50788..ea75bc9 100644 (file)
@@ -38,6 +38,6 @@ ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
 
 
 T := $P
-    include Makefile.d/cleanrules.mk
+    include ${F_CLEANRULES}
 T :=
 
index b18fdc0..165ec69 100644 (file)
@@ -3,7 +3,7 @@ T_DIRNAME := src
 
 ################################################################################
 
-include Makefile.d/stackpush.mk
+include ${F_STACKPUSH}
 T_DIRNAME :=
 
 
@@ -11,5 +11,5 @@ include ${CURDIR}${G_FILESMK}
 include $(addsuffix ${G_DIRMK},${NEWDIRS})
 
 
-include Makefile.d/stackpop.mk
+include ${F_STACKPOP}
 
index 56bd062..d7a1a38 100644 (file)
@@ -3,7 +3,7 @@ T_DIRNAME := locks
 
 ################################################################################
 
-include Makefile.d/stackpush.mk
+include ${F_STACKPUSH}
 T_DIRNAME :=
 
 
@@ -11,5 +11,5 @@ include ${CURDIR}${G_FILESMK}
 include $(addsuffix ${G_DIRMK},${NEWDIRS})
 
 
-include Makefile.d/stackpop.mk
+include ${F_STACKPOP}
 
index 9639031..5c80769 100644 (file)
@@ -16,6 +16,6 @@ ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
 
 
 T := $P
-    include Makefile.d/cleanrules.mk
+    include ${F_CLEANRULES}
 T :=
 
index 9989045..4cc65c6 100644 (file)
@@ -3,7 +3,7 @@ T_DIRNAME := 1
 
 ################################################################################
 
-include Makefile.d/stackpush.mk
+include ${F_STACKPUSH}
 T_DIRNAME :=
 
 
@@ -24,5 +24,5 @@ include ${CURDIR}${G_TVARSMK}
 include ${CURDIR}${G_RULESMK}
 
 
-include Makefile.d/stackpop.mk
+include ${F_STACKPOP}
 
index b18fdc0..165ec69 100644 (file)
@@ -3,7 +3,7 @@ T_DIRNAME := src
 
 ################################################################################
 
-include Makefile.d/stackpush.mk
+include ${F_STACKPUSH}
 T_DIRNAME :=
 
 
@@ -11,5 +11,5 @@ include ${CURDIR}${G_FILESMK}
 include $(addsuffix ${G_DIRMK},${NEWDIRS})
 
 
-include Makefile.d/stackpop.mk
+include ${F_STACKPOP}
 
index 4a25699..72353ba 100644 (file)
@@ -3,7 +3,7 @@ T_DIRNAME := printTrace
 
 ################################################################################
 
-include Makefile.d/stackpush.mk
+include ${F_STACKPUSH}
 T_DIRNAME :=
 
 
@@ -24,5 +24,5 @@ include ${CURDIR}${G_TVARSMK}
 include ${CURDIR}${G_RULESMK}
 
 
-include Makefile.d/stackpop.mk
+include ${F_STACKPOP}