Lots of code refactoring, simplification and cleanup. Lots of new unit-tests providing much higher code coverage. All courtesy of rillig at netbsd. Other significant changes: o new read-only variable .SHELL which provides the path of the shell used to run scripts (as defined by the .SHELL target). o variable parsing detects more errors. o new debug option -dl: LINT mode, does the equivalent of := for all variable assignments so that file and line number are reported for variable parse errors.
30 lines
700 B
Makefile
30 lines
700 B
Makefile
# $Id: host.libnames.mk,v 1.5 2020/08/19 17:51:53 sjg Exp $
|
|
#
|
|
# @(#) Copyright (c) 2007-2009, Simon J. Gerraty
|
|
#
|
|
# This file is provided in the hope that it will
|
|
# be of use. There is absolutely NO WARRANTY.
|
|
# Permission to copy, redistribute or otherwise
|
|
# use this file is hereby granted provided that
|
|
# the above copyright notice and this notice are
|
|
# left intact.
|
|
#
|
|
# Please send copies of changes and bug-fixes to:
|
|
# sjg@crufty.net
|
|
#
|
|
|
|
|
|
DLIBEXT ?= .a
|
|
DSHLIBEXT ?= ${DLIBEXT}
|
|
HOST_LIBEXT ?= ${DSHLIBEXT}
|
|
HOST_LIBDIRS ?= /usr/lib /lib
|
|
HOST_LIBS ?=
|
|
|
|
.for x in ${HOST_LIBS:O:u}
|
|
.for d in ${HOST_LIBDIRS}
|
|
.if exists($d/lib$x${HOST_LIBEXT})
|
|
LIB${x:tu} ?= $d/lib$x${HOST_LIBEXT}
|
|
.endif
|
|
.endfor
|
|
.endfor
|