blob: 714606a5c92077356f27e726d6df6be2425cb714 [file] [log] [blame]
San Mehata6391f12010-03-10 12:46:00 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4ifneq ($(TARGET_SIMULATOR),true)
5
Bruce Beare07b3d092010-06-28 15:16:22 -07006commonSources := \
San Mehata6391f12010-03-10 12:46:00 -08007 diskconfig.c \
8 diskutils.c \
9 write_lst.c \
10 config_mbr.c
11
Bruce Beare07b3d092010-06-28 15:16:22 -070012include $(CLEAR_VARS)
13LOCAL_SRC_FILES := $(commonSources)
San Mehata6391f12010-03-10 12:46:00 -080014LOCAL_MODULE := libdiskconfig
Chih-Wei Huang68cc6bb2011-01-16 16:56:42 +080015LOCAL_MODULE_TAGS := optional
San Mehata6391f12010-03-10 12:46:00 -080016LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
San Mehata6391f12010-03-10 12:46:00 -080017include $(BUILD_SHARED_LIBRARY)
18
Kenny Rootbedaac52010-07-12 23:03:45 -070019ifeq ($(HOST_OS),linux)
Bruce Beare07b3d092010-06-28 15:16:22 -070020include $(CLEAR_VARS)
21LOCAL_SRC_FILES := $(commonSources)
22LOCAL_MODULE := libdiskconfig_host
Chih-Wei Huang68cc6bb2011-01-16 16:56:42 +080023LOCAL_MODULE_TAGS := optional
Bruce Beare07b3d092010-06-28 15:16:22 -070024LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils
25LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
26include $(BUILD_HOST_STATIC_LIBRARY)
Kenny Rootbedaac52010-07-12 23:03:45 -070027endif # HOST_OS == linux
Bruce Beare07b3d092010-06-28 15:16:22 -070028
San Mehata6391f12010-03-10 12:46:00 -080029endif # ! TARGET_SIMULATOR