aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.mk
blob: 89454e6b210d9b8bdc3b1f6f0b964159f1ea7149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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

GFXINC +=   $(GFXLIB)

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
	include $(GFXLIB)/src/gtrans/gtrans.mk
endif

# 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),arduino)
	GFXDEFS += GFX_USE_OS_ARDUINO=GFXON
endif
ifeq ($(OPT_OS),win32)
	GFXDEFS += GFX_USE_OS_WIN32=GFXON
endif
ifeq ($(OPT_OS),win32.chibios)
	GFXDEFS += GFX_USE_OS_CHIBIOS=GFXON
endif
ifeq ($(OPT_OS),win32.raw32)
	GFXDEFS += GFX_USE_OS_RAW32=GFXON
endif
ifeq ($(OPT_OS),linux)
	GFXDEFS += GFX_USE_OS_LINUX=GFXON
endif
ifeq ($(OPT_OS),osx)
	GFXDEFS += GFX_USE_OS_OSX=GFXON
endif
ifeq ($(OPT_OS),chibios)
	GFXDEFS += GFX_USE_OS_CHIBIOS=GFXON
endif
ifeq ($(OPT_OS),freertos)
	GFXDEFS += GFX_USE_OS_FREERTOS=GFXON
endif
ifeq ($(OPT_OS),ecos)
	GFXDEFS += GFX_USE_OS_ECOS=GFXON
endif
ifeq ($(OPT_OS),rawrtos)
	GFXDEFS += GFX_USE_OS_RAWRTOS=GFXON
endif
ifeq ($(OPT_OS),raw32)
	GFXDEFS += GFX_USE_OS_RAW32=GFXON
endif