blob: ef08bec19ae655832116f982455f32fb88937ce6 [file] [log] [blame]
San Mehata6391f12010-03-10 12:46:00 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4ifneq ($(TARGET_SIMULATOR),true)
5
San Mehata6391f12010-03-10 12:46:00 -08006
Bruce Beare07b3d092010-06-28 15:16:22 -07007commonSources := \
San Mehata6391f12010-03-10 12:46:00 -08008 diskconfig.c \
9 diskutils.c \
10 write_lst.c \
11 config_mbr.c
12
Bruce Beare07b3d092010-06-28 15:16:22 -070013include $(CLEAR_VARS)
14LOCAL_SRC_FILES := $(commonSources)
San Mehata6391f12010-03-10 12:46:00 -080015LOCAL_MODULE := libdiskconfig
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
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)
25
26
27
San Mehata6391f12010-03-10 12:46:00 -080028endif # ! TARGET_SIMULATOR