mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
devel/android-tools-adb: convert to BSD-style Makefile
- Supports building with multiple jobs - No longer depends on devel/gmake Differential Revision: https://reviews.freebsd.org/D2862 Obtained from: devel/android-tools-fastboot (based on) Approved by: kevlo (maintainer)
This commit is contained in:
parent
49738e9b8d
commit
17f90e4b96
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390135
2 changed files with 19 additions and 26 deletions
|
@ -14,10 +14,10 @@ USE_GITHUB= yes
|
||||||
GH_ACCOUNT= android
|
GH_ACCOUNT= android
|
||||||
GH_PROJECT= platform_system_core
|
GH_PROJECT= platform_system_core
|
||||||
|
|
||||||
USES= gmake
|
USES= uidfix
|
||||||
WRKSRC_SUBDIR= adb
|
WRKSRC_SUBDIR= adb
|
||||||
MAKEFILE= ${FILESDIR}/Makefile
|
MAKEFILE= ${FILESDIR}/Makefile
|
||||||
MAKE_JOBS_UNSAFE= yes
|
MAKE_ENV= BINDIR="${PREFIX}/bin"
|
||||||
|
|
||||||
PLIST_FILES= bin/adb
|
PLIST_FILES= bin/adb
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PROG= adb
|
||||||
|
NO_MAN=
|
||||||
|
BINDIR?=/usr/bin
|
||||||
|
|
||||||
SRCS+= adb.c
|
SRCS+= adb.c
|
||||||
SRCS+= adb_client.c
|
SRCS+= adb_client.c
|
||||||
SRCS+= adb_auth_host.c
|
SRCS+= adb_auth_host.c
|
||||||
|
@ -16,7 +20,7 @@ SRCS+= transport_usb.c
|
||||||
SRCS+= usb_libusb.c
|
SRCS+= usb_libusb.c
|
||||||
SRCS+= usb_vendors.c
|
SRCS+= usb_vendors.c
|
||||||
|
|
||||||
VPATH+= ../libcutils
|
.PATH: ${.CURDIR}/../libcutils
|
||||||
SRCS+= socket_inaddr_any_server.c
|
SRCS+= socket_inaddr_any_server.c
|
||||||
SRCS+= socket_local_client.c
|
SRCS+= socket_local_client.c
|
||||||
SRCS+= socket_local_server.c
|
SRCS+= socket_local_server.c
|
||||||
|
@ -25,31 +29,20 @@ SRCS+= socket_loopback_server.c
|
||||||
SRCS+= socket_network_client.c
|
SRCS+= socket_network_client.c
|
||||||
SRCS+= load_file.c
|
SRCS+= load_file.c
|
||||||
|
|
||||||
VPATH+= ../libzipfile
|
.PATH: ${.CURDIR}/../libzipfile
|
||||||
SRCS+= centraldir.c
|
SRCS+= centraldir.c
|
||||||
SRCS+= zipfile.c
|
SRCS+= zipfile.c
|
||||||
|
|
||||||
|
CFLAGS+= -DADB_HOST=1
|
||||||
|
CFLAGS+= -DHAVE_FORKEXEC=1
|
||||||
|
CFLAGS+= -DHAVE_SYMLINKS
|
||||||
|
CFLAGS+= -DHAVE_TERMIO_H
|
||||||
|
CFLAGS+= -DHAVE_SYS_SOCKET_H
|
||||||
|
CFLAGS+= -D_FILE_OFFSET_BITS=64
|
||||||
|
CFLAGS+= -I${.CURDIR}
|
||||||
|
CFLAGS+= -I${.CURDIR}/../include
|
||||||
|
|
||||||
CPPFLAGS+= -DADB_HOST=1
|
LDADD+= -lcrypto -lpthread -lusb -lz
|
||||||
CPPFLAGS+= -DHAVE_FORKEXEC=1
|
DPADD+= ${LIBCRYPTO} ${LIBPTHREAD} ${LIBUSB} ${LIBZ}
|
||||||
CPPFLAGS+= -DHAVE_SYMLINKS
|
|
||||||
CPPFLAGS+= -DHAVE_TERMIO_H
|
|
||||||
CPPFLAGS+= -DHAVE_SYS_SOCKET_H
|
|
||||||
CPPFLAGS+= -D_FILE_OFFSET_BITS=64
|
|
||||||
CPPFLAGS+= -I.
|
|
||||||
CPPFLAGS+= -I../include
|
|
||||||
|
|
||||||
LIBS+= -lc -pthread -lz -lcrypto -lusb
|
.include <bsd.prog.mk>
|
||||||
|
|
||||||
OBJS= $(SRCS:.c=.o)
|
|
||||||
|
|
||||||
all: adb
|
|
||||||
|
|
||||||
adb: $(OBJS)
|
|
||||||
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
|
|
||||||
install: adb
|
|
||||||
${BSD_INSTALL_PROGRAM} adb ${DESTDIR}${PREFIX}/bin/
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf $(OBJS) adb
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue