Home | History | Annotate | Download | only in libdiskconfig
      1 LOCAL_PATH := $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 commonSources := \
      5 	diskconfig.c \
      6 	diskutils.c \
      7 	write_lst.c \
      8 	config_mbr.c
      9 
     10 include $(CLEAR_VARS)
     11 LOCAL_SRC_FILES := $(commonSources)
     12 LOCAL_MODULE := libdiskconfig
     13 LOCAL_MODULE_TAGS := optional
     14 LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
     15 include $(BUILD_SHARED_LIBRARY)
     16 
     17 ifeq ($(HOST_OS),linux)
     18 include $(CLEAR_VARS)
     19 LOCAL_SRC_FILES := $(commonSources)
     20 LOCAL_MODULE := libdiskconfig_host
     21 LOCAL_MODULE_TAGS := optional
     22 LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
     23 include $(BUILD_HOST_STATIC_LIBRARY)
     24 endif # HOST_OS == linux
     25