edf2f64040
This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. Currently only known to work on Linux, I suspect other glibc based systems would work too.
18 lines
531 B
Makefile
18 lines
531 B
Makefile
# $NetBSD: Makefile.common,v 1.1 2013/01/03 21:11:34 mrampke Exp $
|
|
#
|
|
# Determine if libbsd can be built on this platform
|
|
#
|
|
# if so, USELIBBSD will be defined and including buildlink3.mk will
|
|
# link your package against it if not, including buildlink3.mk will be a
|
|
# noop.
|
|
#
|
|
# define here for which platforms libbsd is available
|
|
LIBBSD.only_for_platform= Linux-*-*
|
|
# stop editing here
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.for p in ${LIBBSD.only_for_platform}
|
|
. if !empty(MACHINE_PLATFORM:M${p})
|
|
USE_LIBBSD= yes
|
|
. endif
|
|
.endfor
|