From ae385163f7278dd67dbe3d133d37ff3aabece1ad Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 13 Apr 2011 16:20:28 +0300 Subject: 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 Signed-off-by: Artem Bityutskiy --- tests/checkfs/Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'tests/checkfs/Makefile') 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 -- cgit v1.2.3