1 # Makefile for stress tests and fuzzer
4 # YAFFS: Yet another Flash File System. A NAND-flash specific file system.
6 # Copyright (C) 2003-2010 Aleph One Ltd.
9 # Created by Charles Manning <charles@aleph1.co.uk>
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 2 as
13 # published by the Free Software Foundation.
15 # NB Warning this Makefile does not include header dependencies.
19 YDI_FRAMEWORK_DIR = ../
21 TARGETS = yaffs_test fuzzer
25 YAFFS_TEST_OBJS = $(COMMONTESTOBJS) yaffs_test.o nor_stress.o yaffs_fsx.o
26 FUZZER_OBJS = fuzzer.o
28 ALL_UNSORTED_OBJS += $(YAFFS_TEST_OBJS) $(FUZZER_OBJS)
30 include ../FrameworkRules.mk
32 CFLAGS += -DCONFIG_YAFFS_USE_PTHREADS -Werror
34 yaffs_test: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
35 gcc $(CFLLAG) -o $@ $(YAFFS_TEST_OBJS) -lpthread
37 fuzzer: $(FUZZER_OBJS)
38 gcc $(CFLAGS) -o $@ $<