Ticket #131: LIBSDL.kmk.2.diff
File LIBSDL.kmk.2.diff, 1.2 KB (added by , 8 years ago) |
---|
-
LIBSDL.kmk
old new 75 75 # Check if it's the framework or not. 76 76 _SDK_LIBSDK_IS_FRAMEWORK := $(if $(wildcard $(PATH_SDK_LIBSDL)/Headers/SDL.h),yes) 77 77 endif 78 ifeq ($(KBUILD_TARGET),os2) 79 # Abuse _SDK_LIBSDK_IS_FRAMEWORK to indicate we have a PATH_SDK_LIBSDL override 80 # (which implies a non-Linux directory structure). 81 _SDK_LIBSDK_IS_FRAMEWORK := yes 82 endif 78 83 endif 79 84 80 85 # 81 86 # The way libsdl is distributed on the different platforms 82 87 # varies quite a bit, thus this kludge. 83 88 # 84 ifeq ($(KBUILD_TARGET) ,os2)89 ifeq ($(KBUILD_TARGET).$(_SDK_LIBSDK_IS_FRAMEWORK),os2.yes) 85 90 LIB_SDK_LIBSDL_SDLMAIN ?= 86 91 DLL_SDK_LIBSDL_SDL ?= $(PATH_SDK_LIBSDL)/SDL/SDL12.dll 87 92 DLL_SDK_LIBSDL_FSLIB ?= $(PATH_SDK_LIBSDL)/SDL/FSLib.dll … … 145 150 SDK_LIBSDL_LDFLAGS ?= -framework SDL 146 151 147 152 else # ASSUMES Unix like system 148 LIB_SDK_LIBSDL_SDLMAIN ?= SDLmain 153 ifneq ($(KBUILD_TARGET),os2) 154 LIB_SDK_LIBSDL_SDLMAIN ?= SDLmain 155 endif 149 156 LIB_SDK_LIBSDL_SDL ?= SDL 150 157 LIB_SDK_LIBSDL_SDLGFX ?= SDL_gfx 151 158 LIB_SDK_LIBSDL_SDLIMAGE ?= SDL_image