Ticket #131: LIBSDL.kmk.2.diff

File LIBSDL.kmk.2.diff, 1.2 KB (added by diver, 8 years ago)
  • LIBSDL.kmk

    old new  
    7575  # Check if it's the framework or not.
    7676  _SDK_LIBSDK_IS_FRAMEWORK := $(if $(wildcard $(PATH_SDK_LIBSDL)/Headers/SDL.h),yes)
    7777 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
    7883endif
    7984
    8085#
    8186# The way libsdl is distributed on the different platforms
    8287# varies quite a bit, thus this kludge.
    8388#
    84 ifeq ($(KBUILD_TARGET),os2)
     89ifeq ($(KBUILD_TARGET).$(_SDK_LIBSDK_IS_FRAMEWORK),os2.yes)
    8590 LIB_SDK_LIBSDL_SDLMAIN  ?=
    8691 DLL_SDK_LIBSDL_SDL      ?= $(PATH_SDK_LIBSDL)/SDL/SDL12.dll
    8792 DLL_SDK_LIBSDL_FSLIB    ?= $(PATH_SDK_LIBSDL)/SDL/FSLib.dll
     
    145150 SDK_LIBSDL_LDFLAGS      ?= -framework SDL
    146151
    147152else # ASSUMES Unix like system
    148  LIB_SDK_LIBSDL_SDLMAIN  ?= SDLmain
     153 ifneq ($(KBUILD_TARGET),os2)
     154  LIB_SDK_LIBSDL_SDLMAIN ?= SDLmain
     155 endif
    149156 LIB_SDK_LIBSDL_SDL      ?= SDL
    150157 LIB_SDK_LIBSDL_SDLGFX   ?= SDL_gfx
    151158 LIB_SDK_LIBSDL_SDLIMAGE ?= SDL_image