Make.defs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ############################################################################
  2. # drivers/usbhost/Make.defs
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one or more
  5. # contributor license agreements. See the NOTICE file distributed with
  6. # this work for additional information regarding copyright ownership. The
  7. # ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance with the
  9. # License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. # License for the specific language governing permissions and limitations
  17. # under the License.
  18. #
  19. ############################################################################
  20. CSRCS += hid_parser.c
  21. ifeq ($(CONFIG_USBHOST),y)
  22. # Include built-in USB host driver logic
  23. CSRCS += usbhost_registry.c usbhost_registerclass.c usbhost_findclass.c
  24. CSRCS += usbhost_enumerate.c usbhost_devaddr.c
  25. ifeq ($(CONFIG_USBHOST_HUB),y)
  26. CSRCS += usbhost_hub.c
  27. endif
  28. ifeq ($(CONFIG_USBHOST_COMPOSITE),y)
  29. CSRCS += usbhost_composite.c
  30. endif
  31. ifeq ($(CONFIG_USBHOST_MSC),y)
  32. CSRCS += usbhost_storage.c
  33. endif
  34. ifeq ($(CONFIG_USBHOST_CDCACM),y)
  35. CSRCS += usbhost_cdcacm.c
  36. endif
  37. ifeq ($(CONFIG_USBHOST_CDCMBIM),y)
  38. CSRCS += usbhost_cdcmbim.c
  39. endif
  40. ifeq ($(CONFIG_USBHOST_HIDKBD),y)
  41. CSRCS += usbhost_hidkbd.c
  42. endif
  43. ifeq ($(CONFIG_USBHOST_HIDMOUSE),y)
  44. CSRCS += usbhost_hidmouse.c
  45. endif
  46. ifeq ($(CONFIG_USBHOST_XBOXCONTROLLER),y)
  47. CSRCS += usbhost_xboxcontroller.c
  48. endif
  49. ifeq ($(CONFIG_USBHOST_MAX3421E),y)
  50. CSRCS += usbhost_max3421e.c
  51. endif
  52. ifeq ($(CONFIG_USBHOST_FT232R),y)
  53. CSRCS += usbhost_ft232r.c
  54. endif
  55. # HCD debug/trace logic
  56. ifeq ($(CONFIG_USBHOST_TRACE),y)
  57. CSRCS += usbhost_trace.c
  58. else
  59. ifeq ($(CONFIG_DEBUG_USB),y)
  60. CSRCS += usbhost_trace.c
  61. endif
  62. endif
  63. endif
  64. # Include USB host driver build logic
  65. DEPPATH += --dep-path usbhost
  66. VPATH += :usbhost
  67. CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)usbhost}