summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-01-06 02:18:38 +0100
committer couriersud <couriersud@arcor.de>2015-01-06 02:18:38 +0100
commit2c4b7855547e47f9c2be54868ac012d97cb4dd58 (patch)
tree000e428fa8cb781a14d8aab23e660fc9c47a0c0e /makefile
parent8fefbb296998967a853087cdef59e6ec2558ba15 (diff)
Merged winwork and sdlwork into osd/modules/sync/work_osd.c. Moved
miniwork.c to osd/modules/sync/work_mini.c The makefile now adds either a OSD_SDL, OSD_WINDOWS or OSD_MINI define to DEFS. This was necessary so that work_osd.c could determine the build on a OSD level. (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile
index a690b680f6b..e753ad8c7b4 100644
--- a/makefile
+++ b/makefile
@@ -491,7 +491,22 @@ ifdef FASTDEBUG
DEFS += -DMAME_DEBUG_FAST
endif
+# add a define identifying the target osd
+ifeq ($(OSD),sdl)
+DEFS += -DOSD_SDL
+else
+ifeq ($(OSD),windows)
+DEFS += -DOSD_WINDOWS
+else
+ifeq ($(OSD),osdmini)
+DEFS += -DOSD_MINI
+else
+$(error Unknown OSD)
+endif
+endif
+endif
+
#-------------------------------------------------
# compile flags
# CCOMFLAGS are common flags