Previous 199869 Revisions Next

r34275 Friday 9th January, 2015 at 02:25:46 UTC by Couriersud
Move definition of -DOSD_WINDOWS, -DOSD_SDL and -DOSD_MINI into
$(OSD).mak. Added sanity check to makefile. [Couriersud]
[/trunk]makefile
[src/osd/osdmini]osdmini.mak
[src/osd/sdl]sdl.mak
[src/osd/windows]windows.mak

trunk/makefile
r242786r242787
490490DEFS += -DMAME_DEBUG_FAST
491491endif
492492
493# add a define identifying the target osd
494
495ifeq ($(OSD),sdl)
496DEFS += -DOSD_SDL
497else
498ifeq ($(OSD),windows)
499DEFS += -DOSD_WINDOWS
500else
501ifeq ($(OSD),winui)
502DEFS += -DOSD_WINDOWS
503else
504ifeq ($(OSD),osdmini)
505DEFS += -DOSD_MINI
506else
507$(warning Please add -DOSD_[SDL|WINDOWS|MINI] in $(OSD).mak)
508endif
509endif
510endif
511endif
512
513493#-------------------------------------------------
514494# compile flags
515495# CCOMFLAGS are common flags
r242786r242787
885865# TODO: -x c++ should not be hard-coded
886866CPPCHECKFLAGS = $(CDEFS) $(INCPATH) -x c++ --enable=style
887867
868#-------------------------------------------------
869# sanity check OSD additions
870#-------------------------------------------------
888871
872ifeq (,$(findstring -DOSD_,$(CDEFS)))
873$(error $(OSD).mak should have defined -DOSD_)
874endif
875
889876#-------------------------------------------------
890877# primary targets
891878#-------------------------------------------------
trunk/src/osd/osdmini/osdmini.mak
r242786r242787
3737#
3838###########################################################################
3939
40# add a define identifying the target osd
41DEFS += -DOSD_MINI
4042
4143#-------------------------------------------------
4244# object and source roots
trunk/src/osd/sdl/sdl.mak
r242786r242787
8686OSDSRC = $(SRC)/osd
8787OSDOBJ = $(OBJ)/osd
8888
89# add a define identifying the target osd
90DEFS += -DOSD_SDL
91
8992# default to SDL2 for non-OS/2, non-Emscripten builds now
9093ifndef SDL_LIBVER
9194ifneq ($(TARGETOS),os2)
trunk/src/osd/windows/windows.mak
r242786r242787
7373##################   END USER-CONFIGURABLE OPTIONS   ######################
7474###########################################################################
7575
76# add a define identifying the target osd
77DEFS += -DOSD_WINDOWS
7678
79
7780#-------------------------------------------------
7881# object and source roots
7982#-------------------------------------------------


Previous 199869 Revisions Next


© 1997-2024 The MAME Team