blob: 9decbb91aefc6cfec018da5b54b3389275bd6715 [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_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