1 OLD_LOCAL_PATH := $(LOCAL_PATH) 2 LOCAL_PATH := $(call my-dir) 3 4 LIBEXT4_UTILS_SOURCES := \ 5 src/allocate.c \ 6 src/contents.c \ 7 src/crc16.c \ 8 src/ext4_sb.c \ 9 src/ext4_utils.c \ 10 src/extent.c \ 11 src/indirect.c \ 12 src/make_ext4fs.c \ 13 src/sha1.c \ 14 src/uuid.c \ 15 src/wipe.c \ 16 17 LIBEXT4_UTILS_INCLUDES := $(LOCAL_PATH)/include 18 19 LIBEXT4_UTILS_CFLAGS := -DHOST 20 ifeq ($(HOST_OS),windows) 21 LIBEXT4_UTILS_CFLAGS += -DUSE_MINGW=1 22 endif 23 24 $(call start-emulator-library,emulator-libext4_utils) 25 LOCAL_SRC_FILES := $(LIBEXT4_UTILS_SOURCES) 26 LOCAL_C_INCLUDES := \ 27 $(LIBEXT4_UTILS_INCLUDES) \ 28 $(LIBSPARSE_INCLUDES) \ 29 $(LIBSELINUX_INCLUDES) 30 LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 31 $(call end-emulator-library) 32 33 $(call start-emulator64-library,emulator64-libext4_utils) 34 LOCAL_SRC_FILES := $(LIBEXT4_UTILS_SOURCES) 35 LOCAL_C_INCLUDES := \ 36 $(LIBEXT4_UTILS_INCLUDES) \ 37 $(LIBSPARSE_INCLUDES) \ 38 $(LIBSELINUX_INCLUDES) 39 LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 40 $(call end-emulator-library) 41 42 $(call start-emulator-program,emulator_make_ext4fs) 43 LOCAL_SRC_FILES := src/make_ext4fs_main.c 44 LOCAL_C_INCLUDES := \ 45 $(LIBEXT4_UTILS_INCLUDES) \ 46 $(LIBSELINUX_INCLUDES) 47 LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 48 LOCAL_STATIC_LIBRARIES := \ 49 emulator-libext4_utils \ 50 emulator-libsparse \ 51 emulator-libselinux \ 52 emulator-zlib 53 $(call end-emulator-program) 54 55 $(call start-emulator64-program,emulator64_make_ext4fs) 56 LOCAL_SRC_FILES := src/make_ext4fs_main.c 57 LOCAL_C_INCLUDES := \ 58 $(LIBEXT4_UTILS_INCLUDES) \ 59 $(LIBSELINUX_INCLUDES) 60 LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 61 LOCAL_STATIC_LIBRARIES := \ 62 emulator64-libext4_utils \ 63 emulator64-libsparse \ 64 emulator64-libselinux \ 65 emulator64-zlib 66 $(call end-emulator-program) 67 68 LOCAL_PATH := $(OLD_LOCAL_PATH)