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