~ubuntu-branches/ubuntu/trusty/bmake/trusty-proposed

« back to all changes in this revision

Viewing changes to mk/host.libnames.mk

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-09-22 16:07:33 UTC
  • Revision ID: package-import@ubuntu.com-20130922160733-9cvmsi7z0jswtrbi
Tags: upstream-20130904
ImportĀ upstreamĀ versionĀ 20130904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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