blob: 500348cb11b06847b1089bd4b7d73e439d9b0261 [file] [log] [blame]
JP Abgrall3b1946f2014-05-07 16:59:40 -07001LOCAL_PATH:= $(call my-dir)
2
3# The versions depend on $(LOCAL_PATH)/VERSION
4version_CFLAGS := -DF2FS_MAJOR_VERSION=1 -DF2FS_MINOR_VERSION=2 -DF2FS_TOOLS_VERSION=\"1.2.0\" -DF2FS_TOOLS_DATE=\"2013-10-25\"
5# external/e2fsprogs/lib is needed for uuid/uuid.h
6common_C_INCLUDES := $(LOCAL_PATH)/include external/e2fsprogs/lib/
7
8include $(CLEAR_VARS)
9LOCAL_SRC_FILES := \
10 lib/libf2fs.c \
11 mkfs/f2fs_format.c \
12 mkfs/f2fs_format_utils.c \
13
14LOCAL_C_INCLUDES := $(common_C_INCLUDES)
15LOCAL_CFLAGS := $(version_CFLAGS)
16LOCAL_EXPORT_CFLAGS := $(version_CFLAGS)
17LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/mkfs
18LOCAL_MODULE := libf2fs_fmt
19include $(BUILD_STATIC_LIBRARY)
20
21include $(CLEAR_VARS)
22LOCAL_SRC_FILES := \
23 lib/libf2fs.c \
24 mkfs/f2fs_format.c \
25 mkfs/f2fs_format_utils.c \
26
27LOCAL_C_INCLUDES := $(common_C_INCLUDES)
28LOCAL_CFLAGS := $(version_CFLAGS)
29LOCAL_EXPORT_CFLAGS := $(version_CFLAGS)
30LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/mkfs
31LOCAL_MODULE := libf2fs_fmt_host
32include $(BUILD_HOST_STATIC_LIBRARY)
33
34include $(CLEAR_VARS)
35LOCAL_SRC_FILES := \
36 lib/libf2fs_io.c \
37 mkfs/f2fs_format_main.c \
38
39LOCAL_C_INCLUDES := $(common_C_INCLUDES)
40LOCAL_CFLAGS := $(version_CFLAGS)
41# The LOCAL_MODULE name is referenced by the code. Don't change it.
42LOCAL_MODULE := mkfs.f2fs
43LOCAL_SHARED_LIBRARIES := libext2_uuid
44LOCAL_SYSTEM_SHARED_LIBRARIES := libc
45LOCAL_STATIC_LIBRARIES := libf2fs_fmt
46LOCAL_MODULE_TAGS := optional
47include $(BUILD_EXECUTABLE)
48
49include $(CLEAR_VARS)
50LOCAL_SRC_FILES := \
51 fsck/dump.c \
52 fsck/fsck.c \
53 fsck/main.c \
54 fsck/mount.c \
55 lib/libf2fs.c \
56 lib/libf2fs_io.c \
57
58LOCAL_C_INCLUDES := $(common_C_INCLUDES)
59LOCAL_CFLAGS := $(version_CFLAGS)
60# The LOCAL_MODULE name is referenced by the code. Don't change it.
61LOCAL_MODULE := fsck.f2fs
62LOCAL_SHARED_LIBRARIES := libext2_uuid
63LOCAL_SYSTEM_SHARED_LIBRARIES := libc
64LOCAL_MODULE_TAGS := optional
65include $(BUILD_EXECUTABLE)
66