[mtd-utils] Link to libz
[0xdroid:external_mtd_utils.git] / Android.mk
1 ifeq ($(strip $(TARGET_USERIMAGES_USE_UBIFS)),true)
2
3 LOCAL_PATH:= $(call my-dir)
4 include $(CLEAR_VARS)
5
6 include $(CLEAR_VARS)
7
8 LOCAL_CFLAGS += -O2 -Wall
9 LOCAL_LDLIBS += -lz -lm
10
11 LOCAL_SRC_FILES := \
12         ubi-utils/src/libubi.c \
13         mkfs.ubifs/mkfs.ubifs.c \
14         mkfs.ubifs/crc16.c \
15         mkfs.ubifs/crc32.c \
16         mkfs.ubifs/lpt.c \
17         mkfs.ubifs/compr.c \
18         mkfs.ubifs/devtable.c \
19         mkfs.ubifs/hashtable/hashtable.c \
20         mkfs.ubifs/hashtable/hashtable_itr.c \
21         lzo-2.03/src/lzo1x_9x.c \
22         uuid/gen_uuid.c \
23         uuid/unpack.c \
24         uuid/pack.c \
25         uuid/unparse.c
26
27
28
29 LOCAL_C_INCLUDES += \
30         $(LOCAL_PATH)/include \
31         $(LOCAL_PATH)/ubi-utils/include \
32         $(LOCAL_PATH)/ubi-utils/src \
33         $(LOCAL_PATH)/lzo-2.03/include \
34         $(LOCAL_PATH)/uuid/
35
36 LOCAL_MODULE := mkfs_ubifs
37
38 include $(BUILD_HOST_EXECUTABLE)
39
40
41 #==================
42 include $(CLEAR_VARS)
43
44 LOCAL_SRC_FILES:= \
45         ubi-utils/src/ubinize.c \
46         ubi-utils/src/common.c \
47         ubi-utils/src/crc32.c \
48         ubi-utils/src/libiniparser.c \
49         ubi-utils/src/dictionary.c \
50         ubi-utils/src/libubigen.c 
51
52 LOCAL_C_INCLUDES+= \
53         $(LOCAL_PATH)/include \
54         $(LOCAL_PATH)/ubi-utils/include \
55         $(LOCAL_PATH)/ubi-utils/src
56
57 LOCAL_MODULE:=ubinize
58
59 LOCAL_CFLAGS+=-O3
60
61 include $(BUILD_HOST_EXECUTABLE)
62
63 endif