San Mehat | a6391f1 | 2010-03-10 12:46:00 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Bruce Beare | 07b3d09 | 2010-06-28 15:16:22 -0700 | [diff] [blame] | 4 | commonSources := \ |
San Mehat | a6391f1 | 2010-03-10 12:46:00 -0800 | [diff] [blame] | 5 | diskconfig.c \ |
| 6 | diskutils.c \ |
| 7 | write_lst.c \ |
| 8 | config_mbr.c |
| 9 | |
Bruce Beare | 07b3d09 | 2010-06-28 15:16:22 -0700 | [diff] [blame] | 10 | include $(CLEAR_VARS) |
| 11 | LOCAL_SRC_FILES := $(commonSources) |
San Mehat | a6391f1 | 2010-03-10 12:46:00 -0800 | [diff] [blame] | 12 | LOCAL_MODULE := libdiskconfig |
Chih-Wei Huang | 68cc6bb | 2011-01-16 16:56:42 +0800 | [diff] [blame] | 13 | LOCAL_MODULE_TAGS := optional |
San Mehat | a6391f1 | 2010-03-10 12:46:00 -0800 | [diff] [blame] | 14 | LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc |
Mark Salyzyn | 42c79fe | 2014-05-15 15:07:43 -0700 | [diff] [blame] | 15 | LOCAL_CFLAGS := -Werror |
San Mehat | a6391f1 | 2010-03-10 12:46:00 -0800 | [diff] [blame] | 16 | include $(BUILD_SHARED_LIBRARY) |
| 17 | |
Kenny Root | bedaac5 | 2010-07-12 23:03:45 -0700 | [diff] [blame] | 18 | ifeq ($(HOST_OS),linux) |
Bruce Beare | 07b3d09 | 2010-06-28 15:16:22 -0700 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | LOCAL_SRC_FILES := $(commonSources) |
| 21 | LOCAL_MODULE := libdiskconfig_host |
Chih-Wei Huang | 68cc6bb | 2011-01-16 16:56:42 +0800 | [diff] [blame] | 22 | LOCAL_MODULE_TAGS := optional |
Bruce Beare | 07b3d09 | 2010-06-28 15:16:22 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE |
| 24 | include $(BUILD_HOST_STATIC_LIBRARY) |
Kenny Root | bedaac5 | 2010-07-12 23:03:45 -0700 | [diff] [blame] | 25 | endif # HOST_OS == linux |