Update to bmake-20131001 on the vendor branch
[dragonfly.git] / contrib / bmake / mk / host.libnames.mk
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
17 DLIBEXT ?= .a
18 DSHLIBEXT ?= ${DLIBEXT}
19 HOST_LIBEXT ?= ${DSHLIBEXT}
20 HOST_LIBDIRS ?= /usr/lib /lib
21 HOST_LIBS ?=
22
23 .for x in ${HOST_LIBS:O:u}
24 .for d in ${HOST_LIBDIRS}
25 .if exists($d/lib$x${HOST_LIBEXT})
26 LIB${x:tu} ?= $d/lib$x${HOST_LIBEXT}
27 .endif
28 .endfor
29 .endfor