pkgsrc/devel/libtool/buildlink.mk
2001-12-27 00:22:43 +00:00

32 lines
986 B
Makefile

# $NetBSD: buildlink.mk,v 1.6 2001/12/27 00:22:43 jlam Exp $
#
# This Makefile fragment is included by packages that use ltdl.
#
# To use this Makefile fragment, simply:
#
# (1) Include this Makefile fragment in the package Makefile,
# (2) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
# search path, and
# (3) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
# path.
.if !defined(LTDL_BUILDLINK_MK)
LTDL_BUILDLINK_MK= # defined
.include "../../mk/bsd.buildlink.mk"
BUILDLINK_DEPENDS.ltdl?= libtool-base>=${LIBTOOL_REQD}
DEPENDS+= ${BUILDLINK_DEPENDS.ltdl}:../../devel/libtool
EVAL_PREFIX+= BUILDLINK_PREFIX.ltdl=libtool
BUILDLINK_PREFIX.ltdl_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.ltdl= include/ltdl.h
BUILDLINK_FILES.ltdl+= lib/libltdl.*
BUILDLINK_TARGETS.ltdl= ltdl-buildlink
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.ltdl}
pre-configure: ${BUILDLINK_TARGETS.ltdl}
ltdl-buildlink: _BUILDLINK_USE
.endif # LTDL_BUILDLINK_MK