Home | History | Annotate | Download | only in ext2fs
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 libext2fs_src_files := \
      4 	ext2_err.c \
      5 	alloc.c \
      6 	alloc_sb.c \
      7 	alloc_stats.c \
      8 	alloc_tables.c \
      9 	badblocks.c \
     10 	bb_inode.c \
     11 	bitmaps.c \
     12 	bitops.c \
     13 	blkmap64_ba.c \
     14 	blkmap64_rb.c \
     15 	blknum.c \
     16 	block.c \
     17 	bmap.c \
     18 	check_desc.c \
     19 	crc16.c \
     20 	csum.c \
     21 	closefs.c \
     22 	dblist.c \
     23 	dblist_dir.c \
     24 	dirblock.c \
     25 	dirhash.c \
     26 	dir_iterate.c \
     27 	dupfs.c \
     28 	expanddir.c \
     29 	ext_attr.c \
     30 	extent.c \
     31 	fileio.c \
     32 	finddev.c \
     33 	flushb.c \
     34 	freefs.c \
     35 	gen_bitmap.c \
     36 	gen_bitmap64.c \
     37 	get_pathname.c \
     38 	getsize.c \
     39 	getsectsize.c \
     40 	i_block.c \
     41 	icount.c \
     42 	ind_block.c \
     43 	initialize.c \
     44 	inline.c \
     45 	inode.c \
     46 	io_manager.c \
     47 	ismounted.c \
     48 	link.c \
     49 	llseek.c \
     50 	lookup.c \
     51 	mmp.c \
     52 	mkdir.c \
     53 	mkjournal.c \
     54 	native.c \
     55 	newdir.c \
     56 	openfs.c \
     57 	progress.c \
     58 	punch.c \
     59 	rbtree.c \
     60 	read_bb.c \
     61 	read_bb_file.c \
     62 	res_gdt.c \
     63 	rw_bitmaps.c \
     64 	swapfs.c \
     65 	tdb.c \
     66 	undo_io.c \
     67 	unix_io.c \
     68 	unlink.c \
     69 	valid_blk.c \
     70 	version.c
     71 
     72 # get rid of this?!
     73 libext2fs_src_files += test_io.c
     74 
     75 libext2fs_shared_libraries := \
     76 	libext2_com_err \
     77 	libext2_uuid \
     78 	libext2_blkid \
     79 	libext2_e2p
     80 
     81 libext2fs_system_shared_libraries := libc
     82 
     83 libext2fs_static_libraries := \
     84 	libext2_com_err \
     85 	libext2_uuid_static \
     86 	libext2_blkid \
     87 	libext2_e2p
     88 
     89 libext2fs_system_static_libraries := libc
     90 
     91 libext2fs_c_includes := external/e2fsprogs/lib
     92 
     93 libext2fs_cflags := -O2 -g -W -Wall \
     94 	-DHAVE_UNISTD_H \
     95 	-DHAVE_ERRNO_H \
     96 	-DHAVE_NETINET_IN_H \
     97 	-DHAVE_SYS_IOCTL_H \
     98 	-DHAVE_SYS_MMAN_H \
     99 	-DHAVE_SYS_MOUNT_H \
    100 	-DHAVE_SYS_RESOURCE_H \
    101 	-DHAVE_SYS_SELECT_H \
    102 	-DHAVE_SYS_STAT_H \
    103 	-DHAVE_SYS_TYPES_H \
    104 	-DHAVE_STDLIB_H \
    105 	-DHAVE_STRDUP \
    106 	-DHAVE_MMAP \
    107 	-DHAVE_UTIME_H \
    108 	-DHAVE_GETPAGESIZE \
    109 	-DHAVE_EXT2_IOCTLS \
    110 	-DHAVE_TYPE_SSIZE_T \
    111 	-DHAVE_SYS_TIME_H \
    112         -DHAVE_SYS_PARAM_H \
    113 	-DHAVE_SYSCONF
    114 
    115 libext2fs_cflags_linux := \
    116 	-DHAVE_LINUX_FD_H \
    117 	-DHAVE_SYS_PRCTL_H \
    118 	-DHAVE_LSEEK64 \
    119 	-DHAVE_LSEEK64_PROTOTYPE
    120 
    121 include $(CLEAR_VARS)
    122 
    123 LOCAL_SRC_FILES := $(libext2fs_src_files)
    124 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
    125 LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries)
    126 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
    127 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
    128 LOCAL_PRELINK_MODULE := false
    129 LOCAL_MODULE := libext2fs
    130 LOCAL_MODULE_TAGS := optional
    131 
    132 include $(BUILD_SHARED_LIBRARY)
    133 
    134 include $(CLEAR_VARS)
    135 
    136 LOCAL_SRC_FILES := $(libext2fs_src_files)
    137 LOCAL_STATIC_LIBRARIES := $(libext2fs_static_libraries) $(libext2fs_system_static_libraries)
    138 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
    139 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
    140 LOCAL_PRELINK_MODULE := false
    141 LOCAL_MODULE := libext2fs
    142 LOCAL_MODULE_TAGS := optional
    143 
    144 include $(BUILD_STATIC_LIBRARY)
    145 
    146 include $(CLEAR_VARS)
    147 
    148 LOCAL_SRC_FILES := $(libext2fs_src_files)
    149 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2fs_shared_libraries))
    150 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
    151 ifeq ($(HOST_OS),linux)
    152 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
    153 else
    154 LOCAL_CFLAGS := $(libext2fs_cflags)
    155 endif
    156 LOCAL_MODULE := libext2fs_host
    157 LOCAL_MODULE_TAGS := optional
    158 
    159 include $(BUILD_HOST_SHARED_LIBRARY)
    160