summaryrefslogtreecommitdiff
path: root/tests/checkfs/Makefile
diff options
context:
space:
mode:
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>2011-04-13 16:20:28 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-14 15:33:46 +0300
commitae385163f7278dd67dbe3d133d37ff3aabece1ad (patch)
treec035bc04b3d805bb48bd8a3bb93bf589073ea6e7 /tests/checkfs/Makefile
parent2d3c16c2dc7af1c7a87044446e48730429299d32 (diff)
tests: checkfs: adjust Makefile
This patch brings common Makefile (in terms of mtd-utils project) to the checkfs test suite. Additionally it fixes a build error related to usage of open(). Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/checkfs/Makefile')
-rw-r--r--tests/checkfs/Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/checkfs/Makefile b/tests/checkfs/Makefile
index ac94dde..0a77682 100644
--- a/tests/checkfs/Makefile
+++ b/tests/checkfs/Makefile
@@ -1,14 +1,6 @@
+TARGETS = checkfs makefiles
-all: checkfs makefiles
+include ../../common.mk
-checkfs: checkfs.c Makefile common.h comm.o
- gcc -g -Wall checkfs.c comm.o -o checkfs
+$(TARGETS): $(addprefix $(BUILDDIR)/, comm.o)
-comm.o: comm.c Makefile
- gcc -g -Wall -c comm.c -o comm.o
-
-makefiles: makefiles.c Makefile common.h
- gcc -g -Wall makefiles.c -o makefiles
-
-clean:
- rm -f makefiles checkfs *~ *.o