2010-03-11 04:46:00 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-06-29 06:16:22 +08:00
|
|
|
commonSources := \
|
2010-03-11 04:46:00 +08:00
|
|
|
diskconfig.c \
|
|
|
|
diskutils.c \
|
|
|
|
write_lst.c \
|
|
|
|
config_mbr.c
|
|
|
|
|
2010-06-29 06:16:22 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(commonSources)
|
2010-03-11 04:46:00 +08:00
|
|
|
LOCAL_MODULE := libdiskconfig
|
2011-01-16 16:56:42 +08:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2010-03-11 04:46:00 +08:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
|
2014-05-16 06:07:43 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2010-03-11 04:46:00 +08:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2010-07-13 14:03:45 +08:00
|
|
|
ifeq ($(HOST_OS),linux)
|
2010-06-29 06:16:22 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(commonSources)
|
|
|
|
LOCAL_MODULE := libdiskconfig_host
|
2011-01-16 16:56:42 +08:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2010-06-29 06:16:22 +08:00
|
|
|
LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
|
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
2010-07-13 14:03:45 +08:00
|
|
|
endif # HOST_OS == linux
|