SubDir OBOS_TOP src apps bin ;

UsePrivateHeaders kernel ;
UsePrivateHeaders shared ;

# standard commands that don't need any additional library
StdBinCommands
	catattr.cpp
	chop.c
	clear.c
	clockconfig.c
#	csplit.c
	driveinfo.c
#	echo.c
	eject.c
	finddir.c
	hd.c
	ideinfo.c
	idestatus.c
	isvolume.cpp
	listarea.c
	listimage.c
	listport.c
	listsem.c
	lsindex.cpp
	mount.c
	prio.c
	ps.c
	release.c
	renice.c
	rescan.c
	rmattr.cpp
	safemode.c
	sleep.cpp
	sysinfo.c
	unchop.c
	unmount.c
	waitfor.c
	whoami.c
	: libroot.so ;

StdBinCommands
	top.c
	tput.c
	: libroot.so libtermcap.a
	;

# standard commands that need libbe.so
StdBinCommands
	alert.cpp
	beep.cpp
	clipboard.cpp
	df.cpp
	draggers.cpp
	dstcheck.cpp
#	factor.cpp
	ffm.cpp
	iroster.cpp
	listattr.cpp
	modifiers.cpp
	open.cpp
	play.cpp
	query.cpp
	quit.cpp
	setversion.cpp
	shutdown.cpp
	version.cpp
#	yes.cpp
	: libroot.so be ;

# standard commands that need libbe.so, libtranslation.so
StdBinCommands
	translate.cpp
	: be translation
	;

# standard commands that need libbe.so, libmedia.so
StdBinCommands
	installsound.cpp
	: be libmedia.so
	;

# standard commands that need libbe.so, libstdc++.r4.so
StdBinCommands
	roster.cpp
	: be stdc++.r4
	;

# standard commands that need libbe.so, libmail.so
StdBinCommands
	mail.cpp
	: be libmail.so
	;

# standard commands that need libbe.so, libmail.so, libtracker.so
StdBinCommands
	spamfilter.cpp
	: be tracker stdc++.r4 libmail.so
	;

SubInclude OBOS_TOP src apps bin addattr ;
SubInclude OBOS_TOP src apps bin bash ;
SubInclude OBOS_TOP src apps bin bc ;
SubInclude OBOS_TOP src apps bin bison ;
SubInclude OBOS_TOP src apps bin chkbfs ;
SubInclude OBOS_TOP src apps bin compress ;
SubInclude OBOS_TOP src apps bin coreutils-5.0 ;
SubInclude OBOS_TOP src apps bin desklink ;
SubInclude OBOS_TOP src apps bin diffutils-2.8.1 ;
SubInclude OBOS_TOP src apps bin findutils ;
SubInclude OBOS_TOP src apps bin flex ;
SubInclude OBOS_TOP src apps bin gawk ;
#SubInclude OBOS_TOP src apps bin gnu ;
SubInclude OBOS_TOP src apps bin grep-2.5 ;
SubInclude OBOS_TOP src apps bin keymap ;
SubInclude OBOS_TOP src apps bin less-381 ;
SubInclude OBOS_TOP src apps bin listdev ;
SubInclude OBOS_TOP src apps bin make ;
SubInclude OBOS_TOP src apps bin makeudfimage ;
SubInclude OBOS_TOP src apps bin mkdos ;
SubInclude OBOS_TOP src apps bin patch ;
SubInclude OBOS_TOP src apps bin pc ;
#SubInclude OBOS_TOP src apps bin sed ;
SubInclude OBOS_TOP src apps bin sed-4.0.9 ;
SubInclude OBOS_TOP src apps bin sharutils-4.2.1 ;
SubInclude OBOS_TOP src apps bin vim ;
SubInclude OBOS_TOP src apps bin zic ;

# RCS commands
SubInclude OBOS_TOP src apps bin rcs ;

# Network command line tools
SubInclude OBOS_TOP src apps bin arp ;
SubInclude OBOS_TOP src apps bin ifconfig ;
SubInclude OBOS_TOP src apps bin ppp_up ;
SubInclude OBOS_TOP src apps bin pppconfig ;
SubInclude OBOS_TOP src apps bin ping ;
SubInclude OBOS_TOP src apps bin route ;
SubInclude OBOS_TOP src apps bin traceroute ;

# Compression command line tools
SubInclude OBOS_TOP src apps bin unzip ;
SubInclude OBOS_TOP src apps bin zip ;
SubInclude OBOS_TOP src apps bin gzip ;
SubInclude OBOS_TOP src apps bin bzip2 ;
SubInclude OBOS_TOP src apps bin tar ;
