2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= adb.c
|
|
|
|
SRCS+= adb_client.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= adb_auth_host.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= commandline.c
|
|
|
|
SRCS+= console.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= file_sync_client.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= fdevent.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= get_my_path_linux.c
|
|
|
|
SRCS+= services.c
|
|
|
|
SRCS+= sockets.c
|
|
|
|
SRCS+= transport.c
|
|
|
|
SRCS+= transport_local.c
|
|
|
|
SRCS+= transport_usb.c
|
|
|
|
SRCS+= usb_linux.c
|
|
|
|
SRCS+= usb_vendors.c
|
|
|
|
|
|
|
|
VPATH+= ../libcutils
|
|
|
|
SRCS+= socket_inaddr_any_server.c
|
|
|
|
SRCS+= socket_local_client.c
|
|
|
|
SRCS+= socket_local_server.c
|
|
|
|
SRCS+= socket_loopback_client.c
|
|
|
|
SRCS+= socket_loopback_server.c
|
|
|
|
SRCS+= socket_network_client.c
|
2024-01-05 20:24:01 +01:00
|
|
|
SRCS+= load_file.c
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
VPATH+= ../libzipfile
|
|
|
|
SRCS+= centraldir.c
|
|
|
|
SRCS+= zipfile.c
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
VPATH+= ../libmincrypt
|
|
|
|
SRCS+= rsa.c
|
|
|
|
SRCS+= sha256.c
|
|
|
|
SRCS+= sha.c
|
|
|
|
SRCS+= p256.c
|
|
|
|
SRCS+= p256_ec.c
|
|
|
|
SRCS+= p256_ecdsa.c
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
CPPFLAGS+= -DADB_HOST=1
|
|
|
|
CPPFLAGS+= -DHAVE_FORKEXEC=1
|
2024-01-05 20:24:01 +01:00
|
|
|
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
|
2024-01-05 20:24:01 +01:00
|
|
|
CPPFLAGS+= -I.
|
|
|
|
CPPFLAGS+= -I../include
|
|
|
|
|
2024-01-05 20:24:01 +01:00
|
|
|
CFLAGS+= $(RPM_OPT_FLAGS)
|
|
|
|
LIBS= -lrt -lpthread -lz -lcrypto
|
|
|
|
LDFLAGS+= $(RPM_LD_FLAGS)
|
|
|
|
|
|
|
|
CC= $(TOOLCHAIN)gcc
|
|
|
|
LD= $(TOOLCHAIN)gcc
|
2024-01-05 20:24:01 +01:00
|
|
|
|
|
|
|
OBJS= $(SRCS:.c=.o)
|
|
|
|
|
|
|
|
all: adb
|
|
|
|
|
|
|
|
adb: $(OBJS)
|
2024-01-05 20:24:01 +01:00
|
|
|
$(LD) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
install: adb
|
|
|
|
install adb $(DESTDIR)$(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS)
|