fa8167b94d
Naming is more consistent with the new scheme. May affect some third party drivers (header file renames).
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
GFXINC += $(GFXLIB)
|
|
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
|
|
|
|
# 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
|
|
endif
|
|
ifeq ($(OPT_OS),linux)
|
|
GFXDEFS += GFX_USE_OS_LINUX=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),osx)
|
|
GFXDEFS += GFX_USE_OS_OSX=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),chibios)
|
|
GFXDEFS += GFX_USE_OS_CHIBIOS=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),freertos)
|
|
GFXDEFS += GFX_USE_OS_FREERTOS=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),ecos)
|
|
GFXDEFS += GFX_USE_OS_ECOS=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),rawrtos)
|
|
GFXDEFS += GFX_USE_OS_RAWRTOS=TRUE
|
|
endif
|
|
ifeq ($(OPT_OS),raw32)
|
|
GFXDEFS += GFX_USE_OS_RAW32=TRUE
|
|
endif
|