82 lines
1.5 KiB
Makefile
Executable File
82 lines
1.5 KiB
Makefile
Executable File
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 \
|
|
adb_auth_host.c \
|
|
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 \
|
|
-include ../include/arch/linux-arm/OEConfig.h \
|
|
${OPENSSL_CFLAGS} \
|
|
${GTHREAD_CFLAGS}
|
|
|
|
adb_LDADD = ../libcutils/libcutils.a
|
|
adb_LDADD += ../libzipfile/libzipfile.a
|
|
adb_LDADD += -lz
|
|
adb_LDADD += ${OPENSSL_LIBS} ${GTHREAD_LIBS}
|
|
adb_LDADD += -ldl
|
|
|
|
# adbd device daemon
|
|
# =========================================================
|
|
adbd_CC = @CC@
|
|
|
|
adbd_SOURCES = adb.c \
|
|
fdevent.c \
|
|
transport.c \
|
|
transport_local.c \
|
|
transport_usb.c \
|
|
adb_auth_client.c\
|
|
backup_service.c \
|
|
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
|
|
|
|
|
|
adbd_CFLAGS = -O2 \
|
|
-g \
|
|
-DADB_HOST=0 \
|
|
-Wall \
|
|
-Wno-unused-parameter \
|
|
-D_XOPEN_SOURCE \
|
|
-D_GNU_SOURCE \
|
|
-DANDROID_GADGET=1 \
|
|
-DADB_REBOOT_ENABLED=1 \
|
|
${DEBUG_VERSION_CFLAGS} \
|
|
-I../include \
|
|
-include ../include/arch/linux-arm/OEConfig.h \
|
|
${OPENSSL_CFLAGS} \
|
|
${GTHREAD_CFLAGS}
|
|
|
|
adbd_LDFLAGS = -lresolv
|
|
adbd_LDADD = ../libcutils/libcutils.a
|
|
adbd_LDADD += ${OPENSSL_LIBS} ${GTHREAD_LIBS}
|
|
adbd_LDADD += -ldl
|