Fix copyright
[yaffs2.git] / direct / test-framework / python / Makefile
1 # Makefile for YAFFS direct stress 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 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
19
20
21           
22
23
24 $(YAFFSLIBOBJS): %.o: %.c
25         gcc -c $(CFLAGS)   -o $@ $<
26
27
28 $(YAFFSDIRECTSYMLINKS):
29         ln -s ../$@ $@
30
31 $(DIRECTEXTRASYMLINKS):
32         ln -s ../basic-test/$@ $@
33
34
35 # Makefile for stress tests and fuzzer
36 #
37 #
38 # YAFFS: Yet another Flash File System. A NAND-flash specific file system.
39 #
40 # Copyright (C) 2002-2018 Aleph One Ltd.
41 #
42 #
43 # Created by Charles Manning <charles@aleph1.co.uk>
44 #
45 # This program is free software; you can redistribute it and/or modify
46 # it under the terms of the GNU General Public License version 2 as
47 # published by the Free Software Foundation.
48 #
49 # NB Warning this Makefile does not include header dependencies.
50 #
51
52 YDI_DIR = ../../
53 YDI_FRAMEWORK_DIR = ../
54
55 TARGETS = libyaffsfs.so
56
57
58 all: $(TARGETS)
59
60
61 YAFFSLIBOBJS  = $(COMMONTESTOBJS) yaffs_python_helper.o
62
63 ALL_UNSORTED_OBJS += $(YAFFSLIBOBJS)
64
65 include ../FrameworkRules.mk
66
67 CFLAGS +=    -O0 -fPIC
68
69
70 libyaffsfs.so: $(FRAMEWORK_SOURCES) $(YAFFSLIBOBJS)
71         gcc -shared $(YAFFSLIBOBJS) -o $@
72