2015-06-08 02:11:37 +00:00
|
|
|
# This file is subject to the terms of the GFX License. If a copy of
|
|
|
|
# the license was not distributed with this file, you can obtain one at:
|
|
|
|
#
|
|
|
|
# http://ugfx.org/license.html
|
|
|
|
|
2014-02-18 14:36:52 +00:00
|
|
|
GFXINC += $(GFXLIB)
|
2012-11-26 08:45:26 +00:00
|
|
|
|
2015-06-08 04:14:40 +00:00
|
|
|
ifeq ($(GFXSINGLEMAKE),yes)
|
|
|
|
GFXSRC += $(GFXLIB)/src/gfx_mk.c
|
|
|
|
else
|
|
|
|
GFXSRC += $(GFXLIB)/src/gfx.c
|
|
|
|
include $(GFXLIB)/src/gos/gos.mk
|
|
|
|
include $(GFXLIB)/src/gdriver/gdriver.mk
|
|
|
|
include $(GFXLIB)/src/gqueue/gqueue.mk
|
|
|
|
include $(GFXLIB)/src/gdisp/gdisp.mk
|
|
|
|
include $(GFXLIB)/src/gevent/gevent.mk
|
|
|
|
include $(GFXLIB)/src/gtimer/gtimer.mk
|
|
|
|
include $(GFXLIB)/src/gwin/gwin.mk
|
|
|
|
include $(GFXLIB)/src/ginput/ginput.mk
|
|
|
|
include $(GFXLIB)/src/gadc/gadc.mk
|
|
|
|
include $(GFXLIB)/src/gaudio/gaudio.mk
|
|
|
|
include $(GFXLIB)/src/gmisc/gmisc.mk
|
|
|
|
include $(GFXLIB)/src/gfile/gfile.mk
|
|
|
|
endif
|
2014-09-27 15:42:30 +00:00
|
|
|
|
|
|
|
# Include the boards and drivers
|
|
|
|
ifneq ($(GFXBOARD),)
|
|
|
|
include $(GFXLIB)/boards/base/$(GFXBOARD)/board.mk
|
|
|
|
endif
|
|
|
|
ifneq ($(GFXDRIVERS),)
|
|
|
|
include $(patsubst %,$(GFXLIB)/drivers/%/driver.mk,$(GFXDRIVERS))
|
|
|
|
endif
|
|
|
|
ifneq ($(GFXDEMO),)
|
|
|
|
include $(GFXLIB)/demos/$(GFXDEMO)/demo.mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Include the operating system define
|
2015-06-08 02:12:05 +00:00
|
|
|
ifeq ($(OPT_OS),arduino)
|
|
|
|
GFXDEFS += GFX_USE_OS_ARDUINO=TRUE
|
|
|
|
endif
|
2014-09-27 15:42:30 +00:00
|
|
|
ifeq ($(OPT_OS),win32)
|
|
|
|
GFXDEFS += GFX_USE_OS_WIN32=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
2015-07-07 23:51:17 +00:00
|
|
|
ifeq ($(OPT_OS),win32.chibios)
|
|
|
|
GFXDEFS += GFX_USE_OS_CHIBIOS=TRUE
|
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),win32.raw32)
|
|
|
|
GFXDEFS += GFX_USE_OS_RAW32=TRUE
|
|
|
|
endif
|
2014-09-30 03:33:00 +00:00
|
|
|
ifeq ($(OPT_OS),linux)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_LINUX=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),osx)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_OSX=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),chibios)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_CHIBIOS=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),freertos)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_FREERTOS=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),ecos)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_ECOS=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),rawrtos)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_RAWRTOS=TRUE
|
2014-09-30 03:33:00 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(OPT_OS),raw32)
|
2014-09-27 15:42:30 +00:00
|
|
|
GFXDEFS += GFX_USE_OS_RAW32=TRUE
|
|
|
|
endif
|