Makefile 482 B

12345678910111213141516171819202122232425262728293031
  1. include $(SDK_ROOT)/mk/common.mk
  2. SUBDIRS = filesystem usb_stack
  3. # Determine if the target is either the MX6DQ or MX6SDL.
  4. ifeq "$(TARGET)" "mx6dq"
  5. is_dq_or_sdl = 1
  6. endif
  7. ifeq "$(TARGET)" "mx6sdl"
  8. is_dq_or_sdl = 1
  9. endif
  10. ifeq "$(TARGET)" "mx6sl"
  11. is_sl = 1
  12. endif
  13. # Compile these sources directly.
  14. SOURCES = \
  15. profile/profile.c
  16. ifdef is_dq_or_sdl
  17. SOURCES += \
  18. ioexpander/src/max7310.c
  19. endif
  20. ifdef is_sl
  21. SOURCES += \
  22. pmic/pfuse/pf0100.c
  23. endif
  24. include $(SDK_ROOT)/mk/targets.mk