blob: b5d83fad9e8525032940d07aedd22fc5c819b282 [file] [log] [blame]
San Mehata6391f12010-03-10 12:46:00 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Bruce Beare07b3d092010-06-28 15:16:22 -07004commonSources := \
San Mehata6391f12010-03-10 12:46:00 -08005 diskconfig.c \
6 diskutils.c \
7 write_lst.c \
8 config_mbr.c
9
Bruce Beare07b3d092010-06-28 15:16:22 -070010include $(CLEAR_VARS)
11LOCAL_SRC_FILES := $(commonSources)
San Mehata6391f12010-03-10 12:46:00 -080012LOCAL_MODULE := libdiskconfig
Chih-Wei Huang68cc6bb2011-01-16 16:56:42 +080013LOCAL_MODULE_TAGS := optional
San Mehata6391f12010-03-10 12:46:00 -080014LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
San Mehata6391f12010-03-10 12:46:00 -080015include $(BUILD_SHARED_LIBRARY)
16
Kenny Rootbedaac52010-07-12 23:03:45 -070017ifeq ($(HOST_OS),linux)
Bruce Beare07b3d092010-06-28 15:16:22 -070018include $(CLEAR_VARS)
19LOCAL_SRC_FILES := $(commonSources)
20LOCAL_MODULE := libdiskconfig_host
Chih-Wei Huang68cc6bb2011-01-16 16:56:42 +080021LOCAL_MODULE_TAGS := optional
Bruce Beare07b3d092010-06-28 15:16:22 -070022LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
23include $(BUILD_HOST_STATIC_LIBRARY)
Kenny Rootbedaac52010-07-12 23:03:45 -070024endif # HOST_OS == linux