⛏️ index : haiku.git

SubDir HAIKU_TOP src libs termcap ;

SetSubDirSupportedPlatformsBeOSCompatible ;

# set some additional defines
{
	SubDirCcFlags -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1  -DTERMCAP_FILE=\'\"/etc/termcap\"\' -w ;
}

StaticLibrary libtermcap.a : 
	termcap.c tparam.c version.c
;

# Build the /etc/termcap file. It's already ready to use, but we filter out the
# comments.

actions BuildTermcap {
	grep -v '^#' $(2) > $(1)
}

local termcap = <etc>termcap ;
MakeLocateCommonPlatform $(termcap) ;
local termcapSource = [ FGristFiles termcap.src ] ;
SEARCH on $(termcapSource) = $(SUBDIR) ;
Depends $(termcap) : $(termcapSource) ;
BuildTermcap $(termcap) : $(termcapSource) ;