1 LOCAL_PATH
:= $(call my-dir
)
3 libext2fs_src_files
:= \
78 libext2fs_src_files
+= test_io.c
80 libext2fs_shared_libraries
:= \
86 libext2fs_system_shared_libraries
:= libc
88 libext2fs_c_includes
:= external
/e2fsprogs
/lib
90 libext2fs_cflags
:= -O2
-g
-W
-Wall \
97 -DHAVE_SYS_RESOURCE_H \
107 -DHAVE_TYPE_SSIZE_T \
112 libext2fs_cflags_linux
:= \
114 -DHAVE_LINUX_FD_H
=1 \
115 -DHAVE_SYS_PRCTL_H
=1 \
117 -DHAVE_LSEEK64_PROTOTYPE
=1
119 include $(CLEAR_VARS
)
121 LOCAL_SRC_FILES
:= $(libext2fs_src_files
)
122 LOCAL_SYSTEM_SHARED_LIBRARIES
:= $(libext2fs_system_shared_libraries
)
123 LOCAL_SHARED_LIBRARIES
:= $(libext2fs_shared_libraries
)
124 LOCAL_C_INCLUDES
:= $(libext2fs_c_includes
)
125 LOCAL_CFLAGS
:= $(libext2fs_cflags
) $(libext2fs_cflags_linux
)
126 LOCAL_MODULE
:= libext2fs
127 LOCAL_MODULE_TAGS
:= optional
129 include $(BUILD_SHARED_LIBRARY
)
131 include $(CLEAR_VARS
)
133 LOCAL_SRC_FILES
:= $(libext2fs_src_files
)
134 LOCAL_SHARED_LIBRARIES
:= $(addsuffix _host
, $(libext2fs_shared_libraries
))
135 LOCAL_C_INCLUDES
:= $(libext2fs_c_includes
)
136 ifeq ($(HOST_OS
),linux
)
137 LOCAL_CFLAGS
:= $(libext2fs_cflags
) $(libext2fs_cflags_linux
)
139 LOCAL_CFLAGS
:= $(libext2fs_cflags
)
141 LOCAL_MODULE
:= libext2fs_host
142 LOCAL_MODULE_TAGS
:= optional
144 include $(BUILD_HOST_SHARED_LIBRARY
)