Ignore:
Timestamp:
Dec 8, 2006, 11:31:16 PM (19 years ago)
Author:
bird
Message:

tools location is being cleaned up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/sdks/LIBSDL.kmk

    r676 r692  
    22## @file
    33#
    4 # kBuild SDK - libsdl, targeting $(BUILD_TARGET).
     4# kBuild SDK - Simple DirectMedia Layer, targeting $(BUILD_TARGET).
    55#
    66# Copyright (c) 2006 knut st. osmundsen <bird-srcspam@anduin.net>
     
    2525#
    2626
    27 SDK_LIBSDL := libsdl, targeting $(BUILD_TARGET).
     27SDK_LIBSDL := Simple DirectMedia Layer, targeting $(BUILD_TARGET).
    2828
    2929# SDK Specific Properties
    3030ifndef PATH_SDK_LIBSDL
    31  PATH_SDK_LIBSDL := $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/libsdl/v*))
     31 PATH_SDK_LIBSDL := $(wildcard $(PATH_DEVTOOLS_TRG)/libsdl/v*)
    3232 ifeq ($(PATH_SDK_LIBSDL),)
    33   PATH_SDK_LIBSDL := $(sort $(wildcard $(PATH_DEVTOOLS_BLD)/libsdl/v*))
     33  PATH_SDK_LIBSDL := $(wildcard $(PATH_DEVTOOLS_BLD)/libsdl/v*)
    3434 endif
    3535 ifneq ($(PATH_SDK_LIBSDL),)
    36   PATH_SDK_LIBSDL := $(call lastword,$(PATH_SDK_LIBSDL))
     36  PATH_SDK_LIBSDL := $(lastword $(sort $(PATH_SDK_LIBSDL)))
    3737 else
    38   $(warning kBuild: PATH_SDK_LIBSDL couldn't be determined!)
    39   PATH_SDK_LIBSDL := /usr
     38  # Search in the typical unix places.
     39  PATH_SDK_LIBSDL := $(firstword $(wildcard \
     40        /lib/libsdl.* \
     41        /usr/lib/libsdl.* \
     42        /usr/local/lib/libsdl.* \
     43        /opt/lib/libsdl.* \
     44        /opt/local/lib/libsdl.*) )
     45  ifneq ($(PATH_SDK_LIBSDL),)
     46   PATH_SDK_LIBSDL := $(patsubst %/,%,$(dir $(dir PATH_SDK_LIBSDL)))
     47  else
     48   $(warning kBuild: PATH_SDK_LIBSDL couldn't be determined!)
     49   PATH_SDK_LIBSDL := $(PATH_DEVTOOLS_TRG)/libsdl/not/found
     50  endif
    4051 endif
    4152else
Note: See TracChangeset for help on using the changeset viewer.