M7350/system/core/adb/Makefile.am

82 lines
1.5 KiB
Makefile
Raw Normal View History

2024-09-09 08:52:07 +00:00
bin_PROGRAMS = adbd adb
# adb host tool for linux
# =========================================================
adb_SOURCES := \
adb.c \
console.c \
transport.c \
transport_local.c \
transport_usb.c \
commandline.c \
adb_client.c \
2024-09-09 08:57:42 +00:00
adb_auth_host.c \
2024-09-09 08:52:07 +00:00
sockets.c \
services.c \
file_sync_client.c \
utils.c \
usb_vendors.c \
fdevent.c \
usb_linux.c \
get_my_path_linux.c
adb_CFLAGS = -O2 \
-g \
-DADB_HOST=1 \
-Wall \
-Wno-unused-parameter \
-D_XOPEN_SOURCE \
-D_GNU_SOURCE \
-I../include \
2024-09-09 08:57:42 +00:00
-include ../include/arch/linux-arm/OEConfig.h \
${OPENSSL_CFLAGS} \
${GTHREAD_CFLAGS}
2024-09-09 08:52:07 +00:00
adb_LDADD = ../libcutils/libcutils.a
adb_LDADD += ../libzipfile/libzipfile.a
adb_LDADD += -lz
2024-09-09 08:57:42 +00:00
adb_LDADD += ${OPENSSL_LIBS} ${GTHREAD_LIBS}
adb_LDADD += -ldl
2024-09-09 08:52:07 +00:00
# adbd device daemon
# =========================================================
adbd_CC = @CC@
adbd_SOURCES = adb.c \
fdevent.c \
transport.c \
transport_local.c \
transport_usb.c \
2024-09-09 08:57:42 +00:00
adb_auth_client.c\
backup_service.c \
2024-09-09 08:52:07 +00:00
sockets.c \
services.c \
file_sync_service.c \
jdwp_service.c \
framebuffer_service.c \
remount_service.c \
usb_linux_client.c \
log_service.c \
utils.c
2024-09-09 08:57:42 +00:00
2024-09-09 08:52:07 +00:00
adbd_CFLAGS = -O2 \
-g \
-DADB_HOST=0 \
-Wall \
-Wno-unused-parameter \
-D_XOPEN_SOURCE \
-D_GNU_SOURCE \
-DANDROID_GADGET=1 \
-DADB_REBOOT_ENABLED=1 \
2024-09-09 08:57:42 +00:00
${DEBUG_VERSION_CFLAGS} \
2024-09-09 08:52:07 +00:00
-I../include \
2024-09-09 08:57:42 +00:00
-include ../include/arch/linux-arm/OEConfig.h \
${OPENSSL_CFLAGS} \
${GTHREAD_CFLAGS}
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
adbd_LDFLAGS = -lresolv
2024-09-09 08:52:07 +00:00
adbd_LDADD = ../libcutils/libcutils.a
2024-09-09 08:57:42 +00:00
adbd_LDADD += ${OPENSSL_LIBS} ${GTHREAD_LIBS}
adbd_LDADD += -ldl