Ignore:
Timestamp:
Feb 26, 2012, 6:40:55 PM (13 years ago)
Author:
bird
Message:

header.kmk: Added platform specific libary searching clues for SDKs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r2550 r2559  
    189189# build types. (PORTME)
    190190#
    191 KBUILD_OSES   := darwin dos dragonfly freebsd haiku l4 linux netbsd nt openbsd os2 solaris win os-agnostic
    192 KBUILD_ARCHES := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 mips32 mips64 ia64 hppa32 hppa64 arm alpha
     191KBUILD_OSES      := darwin dos dragonfly freebsd haiku l4 linux netbsd nt openbsd os2 solaris win os-agnostic
     192KBUILD_ARCHES    := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 mips32 mips64 ia64 hppa32 hppa64 arm alpha
     193KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 mips64 ia64 hppa64 alpha
     194KBUILD_ARCHES_32 := x86 sparc32 s390 ppc32 mips32 hppa32 arm
    193195
    194196
     
    12511253  export KBUILD_USE_KOBJCACHE := $(USE_KOBJCACHE)
    12521254 endif
     1255endif
     1256
     1257
     1258#
     1259# Library path searching hints (target OS + arch).
     1260#
     1261#        KBUILD_LIB_SEARCH_SUBS  - Subdirs typically containing the right libraries.
     1262#    KBUILD_LIB_SEARCH_ROOTS - Roots to search for library subdirs.
     1263#    KBUILD_LIB_SEARCH_PATHS - ROOTS + SUBS.
     1264#
     1265ifeq ($(KBUILD_TARGET),darwin)
     1266 KBUILD_LIB_SEARCH_ROOTS := \
     1267        /usr/ \
     1268        /Developer/usr/
     1269 KBUILD_LIB_SEARCH_SUBS  := lib/
     1270 KBUILD_LIB_SEARCH_PATHS := $(addsuffix $(KBUILD_LIB_SEARCH_SUBS),$(KBUILD_LIB_SEARCH_ROOTS))
     1271
     1272else if1of ($(KBUILD_TARGET), freebsd netbsd openbsd dragonfly)
     1273 KBUILD_LIB_SEARCH_ROOTS := \
     1274        / \
     1275        /usr/ \
     1276        /usr/local/
     1277 KBUILD_LIB_SEARCH_SUBS := lib/
     1278 KBUILD_LIB_SEARCH_PATHS := $(addsuffix $(KBUILD_LIB_SEARCH_SUBS),$(KBUILD_LIB_SEARCH_ROOTS))
     1279
     1280else ifeq ($(KBUILD_TARGET),linux)
     1281 KBUILD_LIB_SEARCH_ROOTS := \
     1282        / \
     1283        /usr/ \
     1284        /usr/local/
     1285 ifeq ($(KBUILD_TARGET_ARCH),amd64)
     1286  KBUILD_LIB_SEARCH_SUBS := \
     1287        lib/x86_64-linux-gnu/ \
     1288        lib64/ \
     1289        lib/
     1290 else ifeq ($(KBUILD_TARGET_ARCH),x86)
     1291  KBUILD_LIB_SEARCH_SUBS := \
     1292        lib/i686-linux-gnu/ \
     1293        lib/i386-linux-gnu/ \
     1294        lib32/ \
     1295        lib/
     1296 else
     1297  KBUILD_LIB_SEARCH_SUBS := lib/
     1298 endif
     1299 KBUILD_LIB_SEARCH_PATHS := $(addsuffix $(KBUILD_LIB_SEARCH_SUBS),$(KBUILD_LIB_SEARCH_ROOTS))
     1300
     1301else ifeq ($(KBUILD_TARGET),solaris)
     1302 KBUILD_LIB_SEARCH_ROOTS := \
     1303        / \
     1304        /usr/ \
     1305        /usr/sfw/ \
     1306        /usr/local/ \
     1307        /sw/
     1308 ifeq ($(KBUILD_TARGET_ARCH),amd64)
     1309  KBUILD_LIB_SEARCH_SUBS := lib/amd64/ lib/
     1310 else ifeq ($(KBUILD_TARGET_ARCH),sparc64)
     1311  KBUILD_LIB_SEARCH_SUBS := lib/sparcv9/ lib/
     1312 else
     1313  KBUILD_LIB_SEARCH_SUBS := lib/
     1314 endif
     1315 KBUILD_LIB_SEARCH_PATHS := $(addsuffix $(KBUILD_LIB_SEARCH_SUBS),$(KBUILD_LIB_SEARCH_ROOTS))
     1316
     1317else
     1318 KBUILD_LIB_SEARCH_SUBS  :=
     1319 KBUILD_LIB_SEARCH_ROOTS :=
     1320 KBUILD_LIB_SEARCH_PATHS :=
    12531321endif
    12541322
Note: See TracChangeset for help on using the changeset viewer.