2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= protocol.c
|
|
|
|
SRCS+= engine.c
|
|
|
|
SRCS+= bootimg.c
|
|
|
|
SRCS+= fastboot.c
|
|
|
|
SRCS+= usb_linux.c
|
|
|
|
SRCS+= util_linux.c
|
|
|
|
SRCS+= util.c
|
|
|
|
SRCS+= fs.c
|
|
|
|
|
|
|
|
VPATH+= ../libzipfile
|
|
|
|
SRCS+= centraldir.c
|
|
|
|
SRCS+= zipfile.c
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
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+= ../../extras/ext4_utils
|
|
|
|
SRCS+= allocate.c
|
|
|
|
SRCS+= contents.c
|
|
|
|
SRCS+= ext4_utils.c
|
|
|
|
SRCS+= extent.c
|
|
|
|
SRCS+= indirect.c
|
|
|
|
SRCS+= make_ext4fs.c
|
|
|
|
SRCS+= sha1.c
|
|
|
|
SRCS+= uuid.c
|
|
|
|
SRCS+= wipe.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= crc16.c
|
|
|
|
SRCS+= ext4_sb.c
|
2024-01-05 20:24:01 +01:00
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
VPATH+= ../../extras/f2fs_utils
|
|
|
|
SRCS+= f2fs_ioutils.c
|
2024-01-05 20:24:01 +01:00
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
CPPFLAGS+= -DADB_HOST=1
|
|
|
|
CPPFLAGS+= -DHAVE_FORKEXEC=1
|
|
|
|
CPPFLAGS+= -DHAVE_SYMLINKS
|
|
|
|
CPPFLAGS+= -DHAVE_TERMIO_H
|
|
|
|
CPPFLAGS+= -D_GNU_SOURCE
|
|
|
|
CPPFLAGS+= -D_XOPEN_SOURCE
|
|
|
|
CPPFLAGS+= -D_FILE_OFFSET_BITS=64
|
|
|
|
CPPFLAGS+= -DHAVE_OFF64_T
|
|
|
|
CPPFLAGS+= -DHAVE_SYS_UIO_H
|
|
|
|
CPPFLAGS+= -I.
|
2024-01-05 20:24:01 +01:00
|
|
|
CPPFLAGS+= -I../include
|
|
|
|
CPPFLAGS+= -I../libsparse/include
|
|
|
|
CPPFLAGS+= -I../mkbootimg
|
|
|
|
CPPFLAGS+= -I../../extras/ext4_utils
|
2024-01-05 20:24:01 +01:00
|
|
|
CPPFLAGS+= -I../../extras/f2fs_utils
|
2024-01-05 20:24:01 +01:00
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
CFLAGS+= $(RPM_OPT_FLAGS) -std=gnu99
|
|
|
|
LIBS= -lrt -lpthread -lz -lselinux
|
|
|
|
LDFLAGS+= $(RPM_LD_FLAGS)
|
|
|
|
|
|
|
|
CC= $(TOOLCHAIN)gcc
|
|
|
|
LD= $(TOOLCHAIN)gcc
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
OBJS= $(SRCS:.c=.o)
|
|
|
|
|
|
|
|
all: fastboot
|
|
|
|
|
|
|
|
fastboot: $(OBJS)
|
2024-01-05 20:24:01 +01:00
|
|
|
$(LD) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
install: fastboot
|
|
|
|
install fastboot $(DESTDIR)$(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS)
|