From e229733850ae34a92898c23795d39e3f8a5f6634 Mon Sep 17 00:00:00 2001 From: Tony Nicholson Date: Fri, 25 Sep 2015 17:34:11 +1000 Subject: [PATCH] makefile: cygwin build video support using SDL2 (preferred) or SDL cygwin now includes development packages for the SDL2 and SDL video libraries (libSDL2-devel and libSDL-devel). Adjust makefile to find the libSDL2.dll.a or libSDL.dll.a library. --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index 46d6b74a..5df34159 100644 --- a/makefile +++ b/makefile @@ -414,6 +414,10 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) endif endif ifneq (,$(VIDEO_USEFUL)) + ifeq (cygwin,$(OSTYPE)) + LIBEXTSAVE := $(LIBEXT) + LIBEXT = dll.a + endif ifneq (,$(call find_include,SDL2/SDL)) ifneq (,$(call find_lib,SDL2)) VIDEO_CCDEFS += -DHAVE_LIBSDL -I$(dir $(call find_include,SDL2/SDL)) @@ -437,6 +441,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) endif endif endif + ifeq (cygwin,$(OSTYPE)) + LIBEXT = $(LIBEXTSAVE) + endif ifeq (,$(findstring HAVE_LIBSDL,$(VIDEO_CCDEFS))) $(info *** Info ***) $(info *** Info *** The simulator$(BUILD_MULTIPLE) you are building could provide more)