1 BUILD_BLKTRACE := false 2 3 ifeq ($(BUILD_BLKTRACE), true) 4 5 LOCAL_PATH := $(call my-dir) 6 7 include $(CLEAR_VARS) 8 LOCAL_SRC_FILES := blkparse.c blkparse_fmt.c rbtree.c act_mask.c strverscmp.c 9 LOCAL_C_INCLUDES := external/blktrace/ 10 LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 11 LOCAL_MODULE := blkparse 12 LOCAL_MODULE_TAGS := 13 LOCAL_SYSTEM_SHARED_LIBRARIES := libc 14 include $(BUILD_EXECUTABLE) 15 16 include $(CLEAR_VARS) 17 LOCAL_SRC_FILES := blktrace.c act_mask.c 18 LOCAL_C_INCLUDES := external/blktrace/ 19 LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_ANDROID_ 20 LOCAL_MODULE := blktrace 21 LOCAL_MODULE_TAGS := 22 LOCAL_SYSTEM_SHARED_LIBRARIES := libc 23 include $(BUILD_EXECUTABLE) 24 25 include $(CLEAR_VARS) 26 LOCAL_SRC_FILES := verify_blkparse.c 27 LOCAL_C_INCLUDES := external/blktrace/ 28 LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 29 LOCAL_MODULE := verify_blkparse 30 LOCAL_MODULE_TAGS := 31 LOCAL_SYSTEM_SHARED_LIBRARIES := libc 32 include $(BUILD_EXECUTABLE) 33 34 include $(CLEAR_VARS) 35 LOCAL_SRC_FILES := blkrawverify.c 36 LOCAL_C_INCLUDES := external/blktrace/ 37 LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 38 LOCAL_MODULE := blkrawverify 39 LOCAL_MODULE_TAGS := 40 LOCAL_SYSTEM_SHARED_LIBRARIES := libc 41 include $(BUILD_EXECUTABLE) 42 43 #include $(CLEAR_VARS) 44 #LOCAL_SRC_FILES := blkiomon.c 45 #LOCAL_C_INCLUDES := external/blktrace/ 46 #LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 47 #LOCAL_MODULE := blkiomon 48 #LOCAL_MODULE_TAGS := 49 #LOCAL_SYSTEM_SHARED_LIBRARIES := libc 50 #include $(BUILD_EXECUTABLE) 51 52 endif 53