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 LOCAL_CFLAGS := -Werror
     16 include $(BUILD_SHARED_LIBRARY)
     17 
     18 ifeq ($(HOST_OS),linux)
     19 include $(CLEAR_VARS)
     20 LOCAL_SRC_FILES := $(commonSources)
     21 LOCAL_MODULE := libdiskconfig_host
     22 LOCAL_MODULE_TAGS := optional
     23 LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
     24 include $(BUILD_HOST_STATIC_LIBRARY)
     25 endif # HOST_OS == linux
     26