JP Abgrall | 3b1946f | 2014-05-07 16:59:40 -0700 | [diff] [blame^] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # The versions depend on $(LOCAL_PATH)/VERSION |
| 4 | version_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 |
| 6 | common_C_INCLUDES := $(LOCAL_PATH)/include external/e2fsprogs/lib/ |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | LOCAL_SRC_FILES := \ |
| 10 | lib/libf2fs.c \ |
| 11 | mkfs/f2fs_format.c \ |
| 12 | mkfs/f2fs_format_utils.c \ |
| 13 | |
| 14 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 15 | LOCAL_CFLAGS := $(version_CFLAGS) |
| 16 | LOCAL_EXPORT_CFLAGS := $(version_CFLAGS) |
| 17 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/mkfs |
| 18 | LOCAL_MODULE := libf2fs_fmt |
| 19 | include $(BUILD_STATIC_LIBRARY) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_SRC_FILES := \ |
| 23 | lib/libf2fs.c \ |
| 24 | mkfs/f2fs_format.c \ |
| 25 | mkfs/f2fs_format_utils.c \ |
| 26 | |
| 27 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 28 | LOCAL_CFLAGS := $(version_CFLAGS) |
| 29 | LOCAL_EXPORT_CFLAGS := $(version_CFLAGS) |
| 30 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/mkfs |
| 31 | LOCAL_MODULE := libf2fs_fmt_host |
| 32 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 33 | |
| 34 | include $(CLEAR_VARS) |
| 35 | LOCAL_SRC_FILES := \ |
| 36 | lib/libf2fs_io.c \ |
| 37 | mkfs/f2fs_format_main.c \ |
| 38 | |
| 39 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 40 | LOCAL_CFLAGS := $(version_CFLAGS) |
| 41 | # The LOCAL_MODULE name is referenced by the code. Don't change it. |
| 42 | LOCAL_MODULE := mkfs.f2fs |
| 43 | LOCAL_SHARED_LIBRARIES := libext2_uuid |
| 44 | LOCAL_SYSTEM_SHARED_LIBRARIES := libc |
| 45 | LOCAL_STATIC_LIBRARIES := libf2fs_fmt |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | include $(BUILD_EXECUTABLE) |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_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 | |
| 58 | LOCAL_C_INCLUDES := $(common_C_INCLUDES) |
| 59 | LOCAL_CFLAGS := $(version_CFLAGS) |
| 60 | # The LOCAL_MODULE name is referenced by the code. Don't change it. |
| 61 | LOCAL_MODULE := fsck.f2fs |
| 62 | LOCAL_SHARED_LIBRARIES := libext2_uuid |
| 63 | LOCAL_SYSTEM_SHARED_LIBRARIES := libc |
| 64 | LOCAL_MODULE_TAGS := optional |
| 65 | include $(BUILD_EXECUTABLE) |
| 66 | |