makefile: Fix OS X build to correctly supply input events for video capable sims

This commit is contained in:
Mark Pizzolato 2016-03-28 18:16:59 -07:00
parent fb36c22058
commit 736e341fd2

View file

@ -431,6 +431,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
DISPLAYVT = ${DISPLAYD}/vt11.c
DISPLAY_OPT += -DUSE_DISPLAY $(VIDEO_CCDEFS) $(VIDEO_LDFLAGS)
$(info using libSDL2: $(call find_include,SDL2/SDL))
ifeq (Darwin,$(OSTYPE))
VIDEO_CCDEFS += -DSDL_MAIN_AVAILABLE
endif
endif
else
ifneq (,$(call find_include,SDL/SDL))
@ -442,6 +445,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
DISPLAYVT = ${DISPLAYD}/vt11.c
DISPLAY_OPT += -DUSE_DISPLAY $(VIDEO_CCDEFS) $(VIDEO_LDFLAGS)
$(info using libSDL: $(call find_include,SDL/SDL))
ifeq (Darwin,$(OSTYPE))
VIDEO_CCDEFS += -DSDL_MAIN_AVAILABLE
endif
endif
endif
endif