aboutsummaryrefslogtreecommitdiff
path: root/development/android-tools/fastbootMakefile
blob: 079c628b2d9e2d111068ba75d9f162895eb5176f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
SRCS+=bootimg.c
SRCS+=engine.c
SRCS+=fastboot.c
SRCS+=protocol.c
SRCS+=usb_linux.c
SRCS+=util_linux.c
SRCS+=util.c
SRCS+=fs.c

VPATH+= ../libsparse
SRCS+= backed_block.c
SRCS+= output_file.c
SRCS+= sparse.c
SRCS+= sparse_crc32.c
SRCS+= sparse_err.c
SRCS+= sparse_read.c

VPATH+= ../libzipfile
SRCS+= centraldir.c
SRCS+= zipfile.c

VPATH+= ../../extras/ext4_utils
SRCS+= allocate.c
SRCS+= contents.c
SRCS+= crc16.c
SRCS+= ext4_utils.c
SRCS+= ext4_sb.c
SRCS+= extent.c
SRCS+= indirect.c
SRCS+= make_ext4fs.c
SRCS+= sha1.c
SRCS+= uuid.c
SRCS+= wipe.c

VPATH+= ../../extras/f2fs_utils
SRCS+= f2fs_utils.c
SRCS+= f2fs_dlutils.c
SRCS+= f2fs_ioutils.c

VPATH+= ../../libselinux/src
SRCS+= callbacks.c
SRCS+= check_context.c
SRCS+= freecon.c
SRCS+= init.c
SRCS+= label.c
SRCS+= label_android_property.c
SRCS+= label_file.c

CPPFLAGS+= -I../include
CPPFLAGS+= -I../libsparse/include
CPPFLAGS+= -I../mkbootimg
CPPFLAGS+= -I../../extras/ext4_utils
CPPFLAGS+= -I../../extras/f2fs_utils/
CPPFLAGS+= -I../../libselinux/include
CPPFLAGS+= -I../../f2fs-tools/include
CPPFLAGS+= -I../../f2fs-tools/mkfs
CPPFLAGS+= -DHAVE_OFF64_T=1
CPPFLAGS+= -std=gnu99

LIBS+= -lz -ldl -lpcre

OBJS= $(SRCS:.c=.o)

all: fastboot

fastboot: $(OBJS)
		cc -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)