6906d26c910251cd29d39e4324345d4f7a431e8b
[yaffs2.git] / direct / test-framework / tests / Makefile
1 # Makefile for stress tests and fuzzer
2 #
3 #
4 # YAFFS: Yet another Flash File System. A NAND-flash specific file system.
5 #
6 # Copyright (C) 2002-2018 Aleph One Ltd.
7 #
8 #
9 # Created by Charles Manning <charles@aleph1.co.uk>
10 #
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.
14 #
15 # NB Warning this Makefile does not include header dependencies.
16 #
17
18 YDI_DIR = ../../
19 YDI_FRAMEWORK_DIR = ../
20
21 TARGETS = yaffs_test fuzzer
22
23 all: $(TARGETS)
24
25 YAFFS_TEST_OBJS = $(COMMONTESTOBJS) yaffs_test.o nor_stress.o yaffs_fsx.o
26 FUZZER_OBJS = fuzzer.o
27
28 ALL_UNSORTED_OBJS += $(YAFFS_TEST_OBJS) $(FUZZER_OBJS)
29
30 include ../FrameworkRules.mk
31
32 C_FLAGS += -DCONFIG_YAFFS_USE_PTHREADS
33
34 yaffs_test: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
35         gcc $(CFLLAG) -o $@ $(YAFFS_TEST_OBJS) -lpthread
36
37 fuzzer: $(FUZZER_OBJS)
38         gcc $(CFLAGS) -o $@ $<