diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-09-28 01:42:56 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-09-28 01:42:56 +1000 |
commit | bbdc236967ecff9095e04f3a47dd0c358b691640 (patch) | |
tree | da4fcd7b989c0a6d27db6b7221c6f9da6414a8ac /gfx.mk | |
parent | aa858131c0c0f2eef4ced7987f0becbe27d378e0 (diff) | |
parent | daf9f65b9fb9822bc3bc80d63b66a612e085802a (diff) | |
download | uGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.tar.gz uGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.tar.bz2 uGFX-bbdc236967ecff9095e04f3a47dd0c358b691640.zip |
Merge branch 'master' into newmouse
Diffstat (limited to 'gfx.mk')
-rw-r--r-- | gfx.mk | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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
|