Home | History | Annotate | Download | only in ext4_utils
      1 # Copyright 2010 The Android Open Source Project
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 #
      6 # -- All host/targets including windows
      7 #
      8 
      9 include $(CLEAR_VARS)
     10 LOCAL_SRC_FILES := make_ext4fs_main.c
     11 LOCAL_MODULE := make_ext4fs
     12 LOCAL_C_INCLUDES := \
     13     $(LOCAL_PATH)/include
     14 LOCAL_SHARED_LIBRARIES += libcutils
     15 LOCAL_STATIC_LIBRARIES += \
     16     libext4_utils \
     17     libsparse \
     18     libz
     19 LOCAL_LDLIBS_windows += -lws2_32
     20 LOCAL_SHARED_LIBRARIES_darwin += libselinux
     21 LOCAL_SHARED_LIBRARIES_linux += libselinux
     22 LOCAL_CFLAGS_darwin := -DHOST
     23 LOCAL_CFLAGS_linux := -DHOST
     24 include $(BUILD_HOST_EXECUTABLE)
     25 
     26 
     27 include $(CLEAR_VARS)
     28 LOCAL_SRC_FILES := blk_alloc_to_base_fs.c
     29 LOCAL_MODULE := blk_alloc_to_base_fs
     30 LOCAL_SHARED_LIBRARIES := libcutils
     31 LOCAL_CFLAGS_darwin := -DHOST
     32 LOCAL_CFLAGS_linux := -DHOST
     33 include $(BUILD_HOST_EXECUTABLE)
     34 
     35 #
     36 # -- All host/targets excluding windows
     37 #
     38 
     39 ifneq ($(HOST_OS),windows)
     40 
     41 include $(CLEAR_VARS)
     42 LOCAL_SRC_FILES := make_ext4fs_main.c
     43 LOCAL_MODULE := make_ext4fs
     44 LOCAL_C_INCLUDES := \
     45     $(LOCAL_PATH)/include
     46 LOCAL_SHARED_LIBRARIES := \
     47     libcutils \
     48     libext2_uuid \
     49     libext4_utils \
     50     libselinux \
     51     libz
     52 LOCAL_CFLAGS := -DREAL_UUID
     53 include $(BUILD_EXECUTABLE)
     54 
     55 
     56 include $(CLEAR_VARS)
     57 LOCAL_SRC_FILES := setup_fs.c
     58 LOCAL_MODULE := setup_fs
     59 LOCAL_SHARED_LIBRARIES += libcutils
     60 include $(BUILD_EXECUTABLE)
     61 
     62 
     63 include $(CLEAR_VARS)
     64 LOCAL_SRC_FILES := ext4fixup_main.c
     65 LOCAL_MODULE := ext4fixup
     66 LOCAL_SHARED_LIBRARIES += \
     67     libext4_utils \
     68     libsparse \
     69     libz
     70 include $(BUILD_EXECUTABLE)
     71 
     72 
     73 include $(CLEAR_VARS)
     74 LOCAL_SRC_FILES := ext4fixup_main.c
     75 LOCAL_MODULE := ext4fixup
     76 LOCAL_STATIC_LIBRARIES += \
     77     libext4_utils \
     78     libsparse \
     79     libz
     80 include $(BUILD_HOST_EXECUTABLE)
     81 
     82 
     83 include $(CLEAR_VARS)
     84 LOCAL_MODULE := mkuserimg.sh
     85 LOCAL_SRC_FILES := mkuserimg.sh
     86 LOCAL_MODULE_CLASS := EXECUTABLES
     87 # We don't need any additional suffix.
     88 LOCAL_MODULE_SUFFIX :=
     89 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
     90 LOCAL_IS_HOST_MODULE := true
     91 include $(BUILD_PREBUILT)
     92 
     93 
     94 include $(CLEAR_VARS)
     95 LOCAL_MODULE := mkuserimg_mke2fs.sh
     96 LOCAL_SRC_FILES := mkuserimg_mke2fs.sh
     97 LOCAL_MODULE_CLASS := EXECUTABLES
     98 LOCAL_REQUIRED_MODULES := mke2fs e2fsdroid
     99 # We don't need any additional suffix.
    100 LOCAL_MODULE_SUFFIX :=
    101 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
    102 LOCAL_IS_HOST_MODULE := true
    103 include $(BUILD_PREBUILT)
    104 
    105 endif
    106