1# $Id: host.libnames.mk,v 1.4 2010/01/11 23:01:31 sjg Exp $ 2# 3# @(#) Copyright (c) 2007-2009, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are 10# left intact. 11# 12# Please send copies of changes and bug-fixes to: 13# sjg@crufty.net 14# 15 16 17DLIBEXT ?= .a 18DSHLIBEXT ?= ${DLIBEXT} 19HOST_LIBEXT ?= ${DSHLIBEXT} 20HOST_LIBDIRS ?= /usr/lib /lib 21HOST_LIBS ?= 22 23.for x in ${HOST_LIBS:O:u} 24.for d in ${HOST_LIBDIRS} 25.if exists($d/lib$x${HOST_LIBEXT}) 26LIB${x:tu} ?= $d/lib$x${HOST_LIBEXT} 27.endif 28.endfor 29.endfor 30