Files
gentoo-zh/dev-android/fastboot/files/Makefile
T
Lan Yixun (dlan) a4f5540d16 dev-android/fastboot: fix missing ext4_crc16 error
abel.o label_android_property.o label_file.o -lz
ext4_utils.o: In function `ext4_update_free':
ext4_utils.c:(.text+0xd35): undefined reference to `ext4_crc16'
ext4_utils.c:(.text+0xd47): undefined reference to `ext4_crc16'
ext4_utils.c:(.text+0xd63): undefined reference to `ext4_crc16'

Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com>
2013-03-14 14:49:08 +08:00

59 lines
1013 B
Makefile

SRCS+=bootimg.c
SRCS+=engine.c
SRCS+=fastboot.c
SRCS+=protocol.c
SRCS+=usb_linux.c
SRCS+=util_linux.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+= extent.c
SRCS+= indirect.c
SRCS+= make_ext4fs.c
SRCS+= sha1.c
SRCS+= uuid.c
SRCS+= wipe.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+= -Ilibselinux/include
CPPFLAGS+= -Iextras/ext4_utils
LIBS+= -lz
OBJS= $(SRCS:.c=.o)
all: fastboot
fastboot: $(OBJS)
cc -o $@ $(OBJS) $(LIBS)
install:
test -d '$(DESTDIR)/usr/bin' || mkdir -p '$(DESTDIR)/usr/bin'
cp fastboot '$(DESTDIR)/usr/bin'