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 	block.c \
     14 	bmap.c \
     15 	check_desc.c \
     16 	crc16.c \
     17 	csum.c \
     18 	closefs.c \
     19 	dblist.c \
     20 	dblist_dir.c \
     21 	dirblock.c \
     22 	dirhash.c \
     23 	dir_iterate.c \
     24 	dupfs.c \
     25 	expanddir.c \
     26 	ext_attr.c \
     27 	extent.c \
     28 	finddev.c \
     29 	flushb.c \
     30 	freefs.c \
     31 	gen_bitmap.c \
     32 	get_pathname.c \
     33 	getsize.c \
     34 	getsectsize.c \
     35 	i_block.c \
     36 	icount.c \
     37 	ind_block.c \
     38 	initialize.c \
     39 	inline.c \
     40 	inode.c \
     41 	io_manager.c \
     42 	ismounted.c \
     43 	link.c \
     44 	llseek.c \
     45 	lookup.c \
     46 	mkdir.c \
     47 	mkjournal.c \
     48 	native.c \
     49 	newdir.c \
     50 	openfs.c \
     51 	read_bb.c \
     52 	read_bb_file.c \
     53 	res_gdt.c \
     54 	rw_bitmaps.c \
     55 	swapfs.c \
     56 	tdb.c \
     57 	undo_io.c \
     58 	unix_io.c \
     59 	unlink.c \
     60 	valid_blk.c \
     61 	version.c
     62 
     63 # get rid of this?!
     64 libext2fs_src_files += test_io.c
     65 
     66 libext2fs_shared_libraries := \
     67 	libext2_com_err \
     68 	libext2_uuid \
     69 	libext2_blkid \
     70 	libext2_e2p
     71 
     72 libext2fs_system_shared_libraries := libc
     73 
     74 libext2fs_c_includes := external/e2fsprogs/lib
     75 
     76 libext2fs_cflags := -O2 -g -W -Wall \
     77 	-DHAVE_UNISTD_H \
     78 	-DHAVE_ERRNO_H \
     79 	-DHAVE_NETINET_IN_H \
     80 	-DHAVE_SYS_IOCTL_H \
     81 	-DHAVE_SYS_MMAN_H \
     82 	-DHAVE_SYS_MOUNT_H \
     83 	-DHAVE_SYS_RESOURCE_H \
     84 	-DHAVE_SYS_SELECT_H \
     85 	-DHAVE_SYS_STAT_H \
     86 	-DHAVE_SYS_TYPES_H \
     87 	-DHAVE_STDLIB_H \
     88 	-DHAVE_STRDUP \
     89 	-DHAVE_MMAP \
     90 	-DHAVE_UTIME_H \
     91 	-DHAVE_GETPAGESIZE \
     92 	-DHAVE_EXT2_IOCTLS \
     93 	-DHAVE_TYPE_SSIZE_T \
     94 	-DHAVE_SYS_TIME_H \
     95 	-DHAVE_SYSCONF
     96 
     97 libext2fs_cflags_linux := \
     98 	-DHAVE_LINUX_FD_H \
     99 	-DHAVE_SYS_PRCTL_H \
    100 	-DHAVE_LSEEK64 \
    101 	-DHAVE_LSEEK64_PROTOTYPE
    102 
    103 include $(CLEAR_VARS)
    104 
    105 LOCAL_SRC_FILES := $(libext2fs_src_files)
    106 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
    107 LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries)
    108 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
    109 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
    110 LOCAL_PRELINK_MODULE := false
    111 LOCAL_MODULE := libext2fs
    112 LOCAL_MODULE_TAGS := optional
    113 
    114 include $(BUILD_SHARED_LIBRARY)
    115 
    116 include $(CLEAR_VARS)
    117 
    118 LOCAL_SRC_FILES := $(libext2fs_src_files)
    119 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2fs_shared_libraries))
    120 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
    121 ifeq ($(HOST_OS),linux)
    122 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
    123 else
    124 LOCAL_CFLAGS := $(libext2fs_cflags)
    125 endif
    126 LOCAL_MODULE := libext2fs_host
    127 LOCAL_MODULE_TAGS := optional
    128 
    129 include $(BUILD_HOST_SHARED_LIBRARY)
    130