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) 27 28LOCAL_SHARED_LIBRARIES := libext2_uuid 29 30LOCAL_MODULE := sgdisk 31 32include $(BUILD_EXECUTABLE) 33 34include $(CLEAR_VARS) 35 36LOCAL_CPP_EXTENSION := .cc 37 38ifeq ($(HOST_OS),darwin) 39LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -Doff64_t=off_t 40endif 41 42LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib 43LOCAL_SRC_FILES := $(sgdisk_src_files) 44 45LOCAL_SHARED_LIBRARIES := libext2_uuid-host 46 47LOCAL_MODULE := sgdisk_host 48LOCAL_MODULE_STEM := sgdisk 49 50include $(BUILD_HOST_EXECUTABLE) 51