blob: c887955eabb7dfdb74ca167c226829eacfcfadd4 [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
San Mehata6391f12010-03-10 12:46:00 -080015LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
San Mehata6391f12010-03-10 12:46:00 -080016include $(BUILD_SHARED_LIBRARY)
17
Kenny Rootbedaac52010-07-12 23:03:45 -070018ifeq ($(HOST_OS),linux)
Bruce Beare07b3d092010-06-28 15:16:22 -070019include $(CLEAR_VARS)
20LOCAL_SRC_FILES := $(commonSources)
21LOCAL_MODULE := libdiskconfig_host
22LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils
23LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
24include $(BUILD_HOST_STATIC_LIBRARY)
Kenny Rootbedaac52010-07-12 23:03:45 -070025endif # HOST_OS == linux
Bruce Beare07b3d092010-06-28 15:16:22 -070026
San Mehata6391f12010-03-10 12:46:00 -080027endif # ! TARGET_SIMULATOR