2
0

001-create_Makefile.patch 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- /dev/null
  2. +++ b/adb/Makefile 2016-10-19 15:28:03.421194137 +0200
  3. @@ -0,0 +1,42 @@
  4. +SRCS+= adb.c
  5. +SRCS+= adb_auth_host.c
  6. +SRCS+= adb_client.c
  7. +SRCS+= commandline.c
  8. +SRCS+= console.c
  9. +SRCS+= fdevent.c
  10. +SRCS+= file_sync_client.c
  11. +SRCS+= get_my_path_linux.c
  12. +SRCS+= services.c
  13. +SRCS+= sockets.c
  14. +SRCS+= transport.c
  15. +SRCS+= transport_local.c
  16. +SRCS+= transport_usb.c
  17. +SRCS+= usb_linux.c
  18. +
  19. +VPATH+= ../libcutils
  20. +SRCS+= load_file.c
  21. +SRCS+= socket_inaddr_any_server.c
  22. +SRCS+= socket_local_client.c
  23. +SRCS+= socket_local_server.c
  24. +SRCS+= socket_loopback_client.c
  25. +SRCS+= socket_loopback_server.c
  26. +SRCS+= socket_network_client.c
  27. +
  28. +VPATH+= ../libzipfile
  29. +SRCS+= centraldir.c
  30. +SRCS+= zipfile.c
  31. +
  32. +CPPFLAGS+= -DADB_HOST=1
  33. +CPPFLAGS+= -DHAVE_FORKEXEC=1
  34. +CPPFLAGS+= -I.
  35. +CPPFLAGS+= -I../include
  36. +CPPFLAGS+= -D_FILE_OFFSET_BITS=64
  37. +
  38. +LIBS+= -lcrypto -lpthread -lz
  39. +
  40. +OBJS= $(SRCS:.c=.o)
  41. +
  42. +all: adb
  43. +
  44. +adb: $(OBJS)
  45. + $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)