blob: 624e38522a644fa7616556aeee14b50668db1416 [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
Mark Salyzyn42c79fe2014-05-15 15:07:43 -070015LOCAL_CFLAGS := -Werror
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
Chih-Wei Huang68cc6bb2011-01-16 16:56:42 +080022LOCAL_MODULE_TAGS := optional
Bruce Beare07b3d092010-06-28 15:16:22 -070023LOCAL_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