29e1e7393d
Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
23 lines
592 B
Makefile
23 lines
592 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
commonSources := \
|
|
diskconfig.c \
|
|
diskutils.c \
|
|
write_lst.c \
|
|
config_mbr.c
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := $(commonSources)
|
|
LOCAL_MODULE := libdiskconfig
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := $(commonSources)
|
|
LOCAL_MODULE := libdiskconfig_host
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils
|
|
LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
endif # HOST_OS == linux
|