xref: /freebsd/contrib/bmake/mk/host.libnames.mk (revision a0409676120c1e558d0ade943019934e0f15118d)
1# $Id: host.libnames.mk,v 1.5 2020/08/19 17:51:53 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