aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.mk
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-09-28 01:42:30 +1000
committerinmarket <andrewh@inmarket.com.au>2014-09-28 01:42:30 +1000
commitdaf9f65b9fb9822bc3bc80d63b66a612e085802a (patch)
tree554493727b03b8dc0277a9f7d5b53e339188a1fd /gfx.mk
parent2776d00e82b85365efa38d0067b658fd2818ca41 (diff)
downloaduGFX-daf9f65b9fb9822bc3bc80d63b66a612e085802a.tar.gz
uGFX-daf9f65b9fb9822bc3bc80d63b66a612e085802a.tar.bz2
uGFX-daf9f65b9fb9822bc3bc80d63b66a612e085802a.zip
New makefile structure. Also OSX board defintion
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