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.

Makefile.libusb 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- mode: makefile -*-
  2. default: _complain_
  3. include ./local.uses
  4. ifeq (x"$BUILD_SYSNAME",x"cygwin")
  5. $(error Please use the Win32 specific port of LibUSB not the Unix version)
  6. endif
  7. ifeq (x"$BUILD_SYSNAME",x"mingw32")
  8. $(error Please use the win32 specific port of LibUSB not the Unix version)
  9. endif
  10. TARFILE_LOCAL = ${VIRGINS}/libusb-${LIBUSB_VERSION_linux}.tar.bz2
  11. TARFILE_URL = http://downloads.sourceforge.net/libusb/libusb-${LIBUSB_VERSION_linux}.tar.gz
  12. LIBUSB_SRC_DIR = ${HERE}/libusb-${LIBUSB_VERSION}
  13. LIBUSB_BUILD_DIR = ${HERE}/libusb-build
  14. download:
  15. wget -O ${TARFILE_LOCAL} ${TARFILE_URL}
  16. unpack:
  17. rm -rf ${LIBUSB_SRC_DIR}
  18. tar xfz ${TARFILE_LOCAL}
  19. clean::
  20. rm -rf ${LIBUSB_SRC_DIR}
  21. configure:
  22. rm -rf ${LIBUSB_BUILD_DIR}
  23. mkdir -p ${LIBUSB_BUILD_DIR}
  24. cd ${LIBUSB_BUILD_DIR} && ${LIBUSB_SRC_DIR}/configure \
  25. --prefix=${PREFIX} --exec-prefix=${EXEC_PREFIX}
  26. clean::
  27. rm -rf ${LIBUSB_BUILD_DIR}
  28. build:
  29. cd ${LIBUSB_BUILD_DIR} && ${MAKE}
  30. install:
  31. cd ${LIBUSB_BUILD_DIR} && ${MAKE} install
  32. all: unpack configure build install
  33. .PHONY: install
  34. _complain_:
  35. @echo ""
  36. @echo "Please try one of these targets: bootstrap, clean, configure, build, install"
  37. @echo " Or read the makefile and learn about the permutation test targets"
  38. @echo ""
  39. @echo "You also might find the download and unpack targets helpful."
  40. @echo ""
  41. @exit 1