128fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross# Copyright 2010 The Android Open Source Project 228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 328fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_PATH:= $(call my-dir) 428fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 528fa5bc347390480fe190294c6c385b6a9f0d68bColin Crosslibsparse_src_files := \ 628fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross backed_block.c \ 728fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross output_file.c \ 828fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross sparse.c \ 9a21930b6b0dbb04a52948566d58fb48c6db58babColin Cross sparse_crc32.c \ 100c4c47f88dfc15cada154a1cf9b4db88b49890f0Colin Cross sparse_err.c \ 110c4c47f88dfc15cada154a1cf9b4db88b49890f0Colin Cross sparse_read.c 1228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 1328fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 1420258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 1528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 1628fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := $(libsparse_src_files) 1720258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE := libsparse_host 1828fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_STATIC_LIBRARIES := libz 1928fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib 2028fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_HOST_STATIC_LIBRARY) 2128fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 2228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 2320258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 2428fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 2528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := $(libsparse_src_files) 2628fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_MODULE := libsparse 2728fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib 2820258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_SHARED_LIBRARIES := \ 2920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 3028fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_SHARED_LIBRARY) 3128fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 3228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 3320258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 3428fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 3528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := $(libsparse_src_files) 3620258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE := libsparse_static 3728fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib 3828fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_STATIC_LIBRARIES := libz 3928fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_STATIC_LIBRARY) 4028fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 4128fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 4220258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 4328fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := simg2img.c \ 4428fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross sparse_crc32.c 4520258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE := simg2img_host 4620258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato# Need a unique module name, but exe should still be called simg2img 4720258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE_STEM := simg2img 4820258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_STATIC_LIBRARIES := \ 4920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libsparse_host \ 5020258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 5128fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_HOST_EXECUTABLE) 5228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 5328fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 5420258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 5528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := simg2img.c \ 5628fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross sparse_crc32.c 5728fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_MODULE := simg2img 5820258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_STATIC_LIBRARIES := \ 5920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libsparse_static \ 6020258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 6128fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_EXECUTABLE) 6228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 6328fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 6420258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 6528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := img2simg.c 6620258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE := img2simg_host 6720258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato# Need a unique module name, but exe should still be called simg2img 6820258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_MODULE_STEM := img2simg 6920258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_STATIC_LIBRARIES := \ 7020258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libsparse_host \ 7120258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 7228fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_HOST_EXECUTABLE) 7328fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 7428fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 7520258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 7628fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := img2simg.c 7728fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_MODULE := img2simg 7820258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_STATIC_LIBRARIES := \ 7920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libsparse_static \ 8020258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 8128fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_EXECUTABLE) 8228fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 8328fa5bc347390480fe190294c6c385b6a9f0d68bColin Cross 8420258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 85bdc6d39ed6c09199a5d806f29b71b44cbb27c5c2Colin CrossLOCAL_SRC_FILES := simg2simg.c 86bdc6d39ed6c09199a5d806f29b71b44cbb27c5c2Colin CrossLOCAL_MODULE := simg2simg 8720258b501e1d2b15b4587d42c83db848b8fae188Joe OnoratoLOCAL_STATIC_LIBRARIES := \ 8820258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libsparse_host \ 8920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato libz 90bdc6d39ed6c09199a5d806f29b71b44cbb27c5c2Colin Crossinclude $(BUILD_HOST_EXECUTABLE) 91bdc6d39ed6c09199a5d806f29b71b44cbb27c5c2Colin Cross 92bdc6d39ed6c09199a5d806f29b71b44cbb27c5c2Colin Cross 9320258b501e1d2b15b4587d42c83db848b8fae188Joe Onoratoinclude $(CLEAR_VARS) 9428fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_MODULE := simg_dump.py 9528fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_SRC_FILES := simg_dump.py 9628fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_MODULE_CLASS := EXECUTABLES 9728fa5bc347390480fe190294c6c385b6a9f0d68bColin CrossLOCAL_IS_HOST_MODULE := true 9828fa5bc347390480fe190294c6c385b6a9f0d68bColin Crossinclude $(BUILD_PREBUILT) 9920258b501e1d2b15b4587d42c83db848b8fae188Joe Onorato 100