1LOCAL_PATH := $(call my-dir) 2 3sgdisk_src_files := \ 4 sgdisk.cc \ 5 gptcl.cc \ 6 crc32.cc \ 7 support.cc \ 8 guid.cc \ 9 gptpart.cc \ 10 mbrpart.cc \ 11 basicmbr.cc \ 12 mbr.cc \ 13 gpt.cc \ 14 bsd.cc \ 15 parttypes.cc \ 16 attributes.cc \ 17 diskio.cc \ 18 diskio-unix.cc \ 19 android_popt.cc \ 20 21include $(CLEAR_VARS) 22 23LOCAL_CPP_EXTENSION := .cc 24 25LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib 26LOCAL_SRC_FILES := $(sgdisk_src_files) 27LOCAL_CFLAGS += -Wno-unused-parameter -Werror 28 29LOCAL_SHARED_LIBRARIES := libext2_uuid 30 31LOCAL_MODULE := sgdisk 32 33include $(BUILD_EXECUTABLE) 34 35include $(CLEAR_VARS) 36 37LOCAL_CPP_EXTENSION := .cc 38 39ifeq ($(HOST_OS),darwin) 40LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -Doff64_t=off_t 41endif 42 43LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib 44LOCAL_SRC_FILES := $(sgdisk_src_files) 45LOCAL_CFLAGS += -Wno-unused-parameter -Werror 46 47LOCAL_SHARED_LIBRARIES := libext2_uuid 48 49LOCAL_MODULE := sgdisk_host 50LOCAL_MODULE_STEM := sgdisk 51 52include $(BUILD_HOST_EXECUTABLE) 53