diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-10-27 06:03:35 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-10-27 06:07:09 +0100 |
commit | 86e0c62e149c8f519785670530d54e996cbd1c59 (patch) | |
tree | 02fa47f50c86b421b7d8f90393b9e6ac4e0c93d2 | |
parent | 2cd2f9a923e1afba3d7dd93e34794748205df5d7 (diff) | |
download | mce-test-86e0c62e149c8f519785670530d54e996cbd1c59.tar.gz |
Add proper dependencies to stress Makefiles
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | stress/Makefile | 12 | ||||
-rw-r--r-- | stress/tools/Makefile | 5 | ||||
-rw-r--r-- | stress/tools/fs-metadata/Makefile | 9 | ||||
-rw-r--r-- | stress/tools/page-poisoning/Makefile | 8 |
4 files changed, 21 insertions, 13 deletions
diff --git a/stress/Makefile b/stress/Makefile index b465d3f..7192d6c 100644 --- a/stress/Makefile +++ b/stress/Makefile @@ -1,11 +1,13 @@ +CFLAGS := -g -Wall +LDFLAGS := -g + +export CFLAGS +export LDFLAGS + all: mkdir -p bin - $(MAKE) -C tools + $(MAKE) -C tools install clean: $(MAKE) -C tools clean rm -rf bin log result runtest - -distclean: - $(MAKE) -C tools distclean - diff --git a/stress/tools/Makefile b/stress/tools/Makefile index b4f666c..ef78a90 100644 --- a/stress/tools/Makefile +++ b/stress/tools/Makefile @@ -5,13 +5,12 @@ all: ${MAKE} -C $$i $@; \ done -clean: +install: @for i in ${SUBDIRS}; do \ ${MAKE} -C $$i $@; \ done - rm -rf tmp result -distclean: +clean: @for i in ${SUBDIRS}; do \ ${MAKE} -C $$i $@; \ done diff --git a/stress/tools/fs-metadata/Makefile b/stress/tools/fs-metadata/Makefile index 5332b45..9e97a24 100644 --- a/stress/tools/fs-metadata/Makefile +++ b/stress/tools/fs-metadata/Makefile @@ -1,7 +1,10 @@ -all: - gcc -Wall -g k-tree-gen.c -o k-tree-gen - gcc -Wall -g k-tree-trav.c -o k-tree-trav +all: k-tree-gen k-tree-trav +k-tree-trav: k-tree-trav.o + +k-tree-gen: k-tree-gen.o + +install: cp fs-metadata.sh k-thread.sh k-tree-gen k-tree-trav ../../bin clean: diff --git a/stress/tools/page-poisoning/Makefile b/stress/tools/page-poisoning/Makefile index ccfccb0..ef93ade 100644 --- a/stress/tools/page-poisoning/Makefile +++ b/stress/tools/page-poisoning/Makefile @@ -1,7 +1,11 @@ -all: - gcc -Wall -g page-poisoning.c -o page-poisoning +all: page-poisoning +page-poisoning: page-poisoning.o + +../../bin/page-poisoning: page-poisoning cp page-poisoning ../../bin +install: ../../bin/page-poisoning + clean: rm -f page-poisoning *.o |