yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[yaffs2.git] / direct / test-framework / unit_tests / 64_and_32_bit_time / 32_bit / Makefile
1 # Makefile for 64 bit time test.
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
21 MAINFILES = time_32_tests create_32_bit validate_32_bit
22 MAIN_OBJS = $(addsuffix .o,$(MAINFILES))
23
24 EXTRA_OBJS = shared.o
25
26 CLEAN_OBJS = $(MAINFILES) 
27 CFLAGS = -DCONFIG_YAFFS_USE_32_BIT_TIME_T
28
29 YAFFS_TEST_OBJS = $(COMMONTESTOBJS) $(EXTRA_OBJS)
30 ALL_UNSORTED_OBJS += $(YAFFS_TEST_OBJS) $(MAIN_OBJS)
31
32 all: $(MAINFILES) 
33
34 include $(YDI_FRAMEWORK_DIR)/FrameworkRules.mk
35
36 phony. test: time_32_tests
37         ./time_32_tests
38
39 $(MAINFILES): $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS) $(MAIN_OBJS) 
40         gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS) $@.o -lpthread -DCONFIG_YAFFS_USE_32_BIT_TIME_T
41