aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.mk
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-09-28 01:42:56 +1000
committerinmarket <andrewh@inmarket.com.au>2014-09-28 01:42:56 +1000
commitbbdc236967ecff9095e04f3a47dd0c358b691640 (patch)
treeda4fcd7b989c0a6d27db6b7221c6f9da6414a8ac /gfx.mk
parentaa858131c0c0f2eef4ced7987f0becbe27d378e0 (diff)
parentdaf9f65b9fb9822bc3bc80d63b66a612e085802a (diff)
downloaduGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.tar.gz
uGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.tar.bz2
uGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.zip
Merge branch 'master' into newmouse
Diffstat (limited to 'gfx.mk')
-rw-r--r--gfx.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/gfx.mk b/gfx.mk
index d3dbdbed..a0f27c53 100644
--- a/gfx.mk
+++ b/gfx.mk
@@ -13,3 +13,33 @@ include $(GFXLIB)/src/gadc/sys_make.mk
include $(GFXLIB)/src/gaudio/sys_make.mk
include $(GFXLIB)/src/gmisc/sys_make.mk
include $(GFXLIB)/src/gfile/sys_make.mk
+
+# 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
+ifeq ($(OPT_OS),win32)
+ GFXDEFS += GFX_USE_OS_WIN32=TRUE
+else ifeq ($(OPT_OS),linux)
+ GFXDEFS += GFX_USE_OS_LINUX=TRUE
+else ifeq ($(OPT_OS),osx)
+ GFXDEFS += GFX_USE_OS_OSX=TRUE
+else ifeq ($(OPT_OS),chibios)
+ GFXDEFS += GFX_USE_OS_CHIBIOS=TRUE
+else ifeq ($(OPT_OS),freertos)
+ GFXDEFS += GFX_USE_OS_FREERTOS=TRUE
+else ifeq ($(OPT_OS),ecos)
+ GFXDEFS += GFX_USE_OS_ECOS=TRUE
+else ifeq ($(OPT_OS),rawrtos)
+ GFXDEFS += GFX_USE_OS_RAWRTOS=TRUE
+else ifeq ($(OPT_OS),raw32)
+ GFXDEFS += GFX_USE_OS_RAW32=TRUE
+endif