The official µGFX library repository.

gfx.mk 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This file is subject to the terms of the GFX License. If a copy of
  2. # the license was not distributed with this file, you can obtain one at:
  3. #
  4. # http://ugfx.org/license.html
  5. GFXINC += $(GFXLIB)
  6. ifeq ($(GFXSINGLEMAKE),yes)
  7. GFXSRC += $(GFXLIB)/src/gfx_mk.c
  8. else
  9. GFXSRC += $(GFXLIB)/src/gfx.c
  10. include $(GFXLIB)/src/gos/gos.mk
  11. include $(GFXLIB)/src/gdriver/gdriver.mk
  12. include $(GFXLIB)/src/gqueue/gqueue.mk
  13. include $(GFXLIB)/src/gdisp/gdisp.mk
  14. include $(GFXLIB)/src/gevent/gevent.mk
  15. include $(GFXLIB)/src/gtimer/gtimer.mk
  16. include $(GFXLIB)/src/gwin/gwin.mk
  17. include $(GFXLIB)/src/ginput/ginput.mk
  18. include $(GFXLIB)/src/gadc/gadc.mk
  19. include $(GFXLIB)/src/gaudio/gaudio.mk
  20. include $(GFXLIB)/src/gmisc/gmisc.mk
  21. include $(GFXLIB)/src/gfile/gfile.mk
  22. include $(GFXLIB)/src/gtrans/gtrans.mk
  23. endif
  24. # Include the boards and drivers
  25. ifneq ($(GFXBOARD),)
  26. include $(GFXLIB)/boards/base/$(GFXBOARD)/board.mk
  27. endif
  28. ifneq ($(GFXDRIVERS),)
  29. include $(patsubst %,$(GFXLIB)/drivers/%/driver.mk,$(GFXDRIVERS))
  30. endif
  31. ifneq ($(GFXDEMO),)
  32. include $(GFXLIB)/demos/$(GFXDEMO)/demo.mk
  33. endif
  34. # Include the operating system define
  35. ifeq ($(OPT_OS),arduino)
  36. GFXDEFS += GFX_USE_OS_ARDUINO=GFXON
  37. endif
  38. ifeq ($(OPT_OS),win32)
  39. GFXDEFS += GFX_USE_OS_WIN32=GFXON
  40. endif
  41. ifeq ($(OPT_OS),win32.chibios)
  42. GFXDEFS += GFX_USE_OS_CHIBIOS=GFXON
  43. endif
  44. ifeq ($(OPT_OS),win32.raw32)
  45. GFXDEFS += GFX_USE_OS_RAW32=GFXON
  46. endif
  47. ifeq ($(OPT_OS),linux)
  48. GFXDEFS += GFX_USE_OS_LINUX=GFXON
  49. endif
  50. ifeq ($(OPT_OS),osx)
  51. GFXDEFS += GFX_USE_OS_OSX=GFXON
  52. endif
  53. ifeq ($(OPT_OS),chibios)
  54. GFXDEFS += GFX_USE_OS_CHIBIOS=GFXON
  55. endif
  56. ifeq ($(OPT_OS),freertos)
  57. GFXDEFS += GFX_USE_OS_FREERTOS=GFXON
  58. endif
  59. ifeq ($(OPT_OS),ecos)
  60. GFXDEFS += GFX_USE_OS_ECOS=GFXON
  61. endif
  62. ifeq ($(OPT_OS),rawrtos)
  63. GFXDEFS += GFX_USE_OS_RAWRTOS=GFXON
  64. endif
  65. ifeq ($(OPT_OS),raw32)
  66. GFXDEFS += GFX_USE_OS_RAW32=GFXON
  67. endif