fs.mak
2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
TARGET_SRC_LIST = fs\fat\src\fs_kal.c \
fs\fat\src\rtfbs.c \
fs\fat\src\rtfex.c \
fs\fat\src\format.c \
fs\fat\src\rtfiles.c \
fs\fat\src\rtfcore.c \
fs\fat\src\rtfbuf.c \
fs\common\src\fs_internal_api.c \
fs\common\src\fs_sst.c \
fs\Efs\src\fs_internal.c \
fs\Efs\src\fs_func.c \
fs\Efs\src\fs_func_adv.c \
fs\Efs\src\fs_func_async.c \
fs\Efs\src\fs_utility.c \
fs\Efs\src\fs_task.c \
fs\Efs\src\fs_usbms.c
MODIS_SRC_LIST = MoDIS_VC9\FileSystem\FileSystemSrc\FSSim_core.c \
MoDIS_VC9\FileSystem\FileSystemSrc\FSSim_data.c \
MoDIS_VC9\FileSystem\FileSystemSrc\FSSim_supplemental.c
# if defined(__FS_BENCHMARK__)
ifneq ($(filter __FS_BENCHMARK__, $(strip $(MODULE_DEFS))),)
TARGET_SRC_LIST += fs\Efs\src\fs_task.c
endif
# if !defined(__SMART_PHONE_MODEM__) || !defined(__MTK_TARGET__)
ifeq ($(filter __SMART_PHONE_MODEM__, $(strip $(MODULE_DEFS))),)
TARGET_SRC_LIST += fs\Efs\src\fs_internal.c \
fs\Efs\src\fs_func.c \
fs\Efs\src\fs_func_adv.c
else
ifeq ($(filter __MTK_TARGET__, $(strip $(MODULE_DEFS))),)
TARGET_SRC_LIST += fs\Efs\src\fs_internal.c \
fs\Efs\src\fs_func.c \
fs\Efs\src\fs_func_adv.c
endif
endif
# if defined(__FS_TRACE_SUPPORT__)
ifneq ($(filter __FS_TRACE_SUPPORT__, $(strip $(MODULE_DEFS))),)
TARGET_SRC_LIST += fs\Efs\src\fs_utility.c
endif
# Define source file lists to SRC_LIST
ifneq ($(filter __MTK_TARGET__,$(strip $(MODULE_DEFS))),)
SRC_LIST = $(TARGET_SRC_LIST)
else
ifneq ($(filter __FS_MODIS_FDM__,$(strip $(MODULE_DEFS))),)
SRC_LIST = $(TARGET_SRC_LIST)
else
SRC_LIST = $(MODIS_SRC_LIST)
endif
endif
SRC_LIST += fs\fsal\src\fsal.c \
fs\fsal\src\fsal_buffer.c \
fs\fsal\src\fsal_read.c \
fs\fsal\src\fsal_write.c
# Define include path lists to INC_DIR
ifneq ($(filter __MTK_TARGET__, $(strip $(MODULE_DEFS))),)
INC_DIR = fs\fat\include \
fs\Efs\include \
drv\include \
fs\common\include
else
ifneq ($(filter __FS_MODIS_FDM__,$(strip $(MODULE_DEFS))),)
INC_DIR = fs\fat\include \
fs\Efs\include \
drv\include \
fs\common\include
else
INC_DIR = MoDIS_VC9\FileSystem\FileSystemInc
endif
endif
ifneq ($(filter __MTK_TARGET__,$(strip $(MODULE_DEFS))),)
else
ifneq ($(filter __FS_MODIS_FDM__,$(strip $(MODULE_DEFS))),)
else
endif
endif
# Define the specified compile options to COMP_DEFS
COMP_DEFS = NODEBUG
ifneq ($(filter __MTK_TARGET__,$(strip $(MODULE_DEFS))),)
COMP_DEFS = NODEBUG
else
ifneq ($(filter __FS_MODIS_FDM__,$(strip $(MODULE_DEFS))),)
COMP_DEFS = NODEBUG
else
COMP_DEFS =
endif
endif
COMP_DEFS += CURR_MODULE=MOD_$(strip $(call Upper,$(COMPONENT)))