You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.2 KiB
67 lines
1.2 KiB
SRCS+= adb.c |
|
SRCS+= adb_client.c |
|
SRCS+= adb_auth_host.c |
|
SRCS+= commandline.c |
|
SRCS+= console.c |
|
SRCS+= file_sync_client.c |
|
SRCS+= fdevent.c |
|
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 |
|
SRCS+= load_file.c |
|
|
|
VPATH+= ../libzipfile |
|
SRCS+= centraldir.c |
|
SRCS+= zipfile.c |
|
|
|
VPATH+= ../libmincrypt |
|
SRCS+= rsa.c |
|
SRCS+= sha256.c |
|
SRCS+= sha.c |
|
SRCS+= p256.c |
|
SRCS+= p256_ec.c |
|
SRCS+= p256_ecdsa.c |
|
|
|
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+= -I. |
|
CPPFLAGS+= -I../include |
|
|
|
CFLAGS+= $(RPM_OPT_FLAGS) |
|
LIBS= -lrt -lpthread -lz -lcrypto |
|
LDFLAGS+= $(RPM_LD_FLAGS) |
|
|
|
CC= $(TOOLCHAIN)gcc |
|
LD= $(TOOLCHAIN)gcc |
|
|
|
OBJS= $(SRCS:.c=.o) |
|
|
|
all: adb |
|
|
|
adb: $(OBJS) |
|
$(LD) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
|
|
|
install: adb |
|
install adb $(DESTDIR)$(BINDIR) |
|
|
|
clean: |
|
rm -rf $(OBJS)
|
|
|