From 2c4b7855547e47f9c2be54868ac012d97cb4dd58 Mon Sep 17 00:00:00 2001 From: couriersud Date: Tue, 6 Jan 2015 02:18:38 +0100 Subject: 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) --- makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'makefile') 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 -- cgit v1.2.3