Fix unmatched temporary buffer allocations
[yaffs2.git] / direct / test-framework / timothy_tests / yaffs_and_linux_mirror_tests / Makefile
1 # Makefile for mirror_tests
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 Timothy Manning <timothy@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 CLEAN_OBJS = mirror_tests emfile-2k-0
21
22 TESTFILES =     mirror_tests.o lib.o\
23                 linux_test_open.o yaffs_test_open.o\
24                 linux_test_truncate.o yaffs_test_truncate.o \
25                 linux_test_unlink.o yaffs_test_unlink.o \
26                 linux_test_write.o yaffs_test_write.o
27
28 all: mirror_tests
29
30 YAFFS_TEST_OBJS = $(COMMONTESTOBJS) $(TESTFILES)
31
32
33 ALL_UNSORTED_OBJS += $(YAFFS_TEST_OBJS) $(FUZZER_OBJS)
34
35 include $(YDI_FRAMEWORK_DIR)/FrameworkRules.mk
36
37
38 yaffs_test: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
39         gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS)
40
41
42
43 mirror_tests: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
44         gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS)
45