2d1ba244e9
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.8 2009/03/20 19:24:30 joerg Exp $
|
|
|
|
BUILDLINK_TREE+= teem
|
|
|
|
.if !defined(TEEM_BUILDLINK3_MK)
|
|
TEEM_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.teem+= teem>=1.8.0
|
|
BUILDLINK_ABI_DEPENDS.teem+= teem>=1.8.0nb1
|
|
BUILDLINK_PKGSRCDIR.teem?= ../../devel/teem
|
|
|
|
BUILDLINK_FILES.teem+= include/teem/*
|
|
BUILDLINK_FILES.teem+= include/teem32bit.h include/teemDio.h
|
|
BUILDLINK_FILES.teem+= include/teemEndian.h include/teemPng.h
|
|
BUILDLINK_FILES.teem+= include/teemQnanhibit.h
|
|
|
|
BUILDLINK_FILES.teem+= lib/libair.*
|
|
BUILDLINK_FILES.teem+= lib/libalan.*
|
|
BUILDLINK_FILES.teem+= lib/libbane.*
|
|
BUILDLINK_FILES.teem+= lib/libbiff.*
|
|
BUILDLINK_FILES.teem+= lib/libcoil.*
|
|
BUILDLINK_FILES.teem+= lib/libdye.*
|
|
BUILDLINK_FILES.teem+= lib/libecho.*
|
|
BUILDLINK_FILES.teem+= lib/libell.*
|
|
BUILDLINK_FILES.teem+= lib/libgage.*
|
|
BUILDLINK_FILES.teem+= lib/libhest.*
|
|
BUILDLINK_FILES.teem+= lib/libhoover.*
|
|
BUILDLINK_FILES.teem+= lib/liblimn.*
|
|
BUILDLINK_FILES.teem+= lib/libmite.*
|
|
BUILDLINK_FILES.teem+= lib/libmoss.*
|
|
BUILDLINK_FILES.teem+= lib/libnrrd.*
|
|
BUILDLINK_FILES.teem+= lib/libteem.*
|
|
BUILDLINK_FILES.teem+= lib/libten.*
|
|
BUILDLINK_FILES.teem+= lib/libunrrdu.*
|
|
.endif # TEEM_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -teem
|