xref: /haiku/src/bin/Jamfile (revision 2069f565e8ed3556b30cf2f5e3aa54450128b8c2)
1SubDir HAIKU_TOP src bin ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5UsePrivateHeaders app shared storage support usb ;
6UsePrivateSystemHeaders ;
7SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_cache ;
8UseLibraryHeaders ncurses ;
9UseLibraryHeaders termcap ;
10
11local haiku-utils_rsrc = [ FGristFiles haiku-utils.rsrc ] ;
12
13ResComp $(haiku-utils_rsrc) : [ FGristFiles haiku-utils.rdef ] ;
14
15AddResources fortune : fortune.rdef ;
16AddResources hey : hey.rdef ;
17AddResources mimeset : mimeset.rdef ;
18AddResources mountvolume : mountvolume.rdef ;
19AddResources urlwrapper : urlwrapper.rdef ;
20AddResources checkitout : checkitout.rdef ;
21
22# standard commands that don't need any additional library
23StdBinCommands
24	badblocks.c
25	cal.c
26	chop.c
27	clear.c
28	clockconfig.c
29#	csplit.c
30	driveinfo.c
31#	echo.c
32	eject.c
33	error.c
34	fortune.c
35	finddir.c
36	hd.c
37	idestatus.c
38	listarea.c
39	listimage.c
40	listport.c
41	listsem.c
42	logger.cpp
43	lsindex.cpp
44	prio.c
45	ps.c
46	release.c
47	renice.c
48	rescan.c
49	sysinfo.c
50	unchop.c
51	uptime.cpp
52	vmstat.cpp
53#	whoami.c
54	: : $(haiku-utils_rsrc) ;
55
56# Commands which don't need another library that depend on
57# Haiku-specific code
58if $(TARGET_PLATFORM) = haiku {
59StdBinCommands
60	boot_process_done.cpp
61	fdinfo.cpp
62	mount.c
63	rmattr.cpp
64	rmindex.cpp
65	safemode.c
66	unmount.c
67	: : $(haiku-utils_rsrc) ;
68}
69
70# standard commands that need libtermcap.a
71StdBinCommands
72	top.c
73	tput.c
74	: libtermcap.a : $(haiku-utils_rsrc) ;
75
76# standard commands that need libbe.so
77StdBinCommands
78	beep.cpp
79	catattr.cpp
80	checkfs.cpp
81	clipboard.cpp
82	df.cpp
83	diskimage.cpp
84	dpms.cpp
85	draggers.cpp
86#	factor.cpp
87	ffm.cpp
88	iroster.cpp
89	listattr.cpp
90	listfont.cpp
91	listres.cpp
92	mimeset.cpp
93	mkindex.cpp
94	message.cpp
95	modifiers.cpp
96	open.cpp
97	play.cpp
98	query.cpp
99	quit.cpp
100	roster.cpp
101	setdecor.cpp
102	setversion.cpp
103	trash.cpp
104	version.cpp
105	waitfor.cpp
106	WindowShade.cpp
107#	yes.cpp
108	: be : $(haiku-utils_rsrc) ;
109
110# standard commands that need libbe.so and libsupc++.so
111StdBinCommands
112	alert.cpp
113	dstcheck.cpp
114	hey.cpp
115	reindex.cpp
116	settype.cpp
117	spybmessage.cpp
118	urlwrapper.cpp
119	: be $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
120
121# Haiku-specific apps which need libbe.so
122if $(TARGET_PLATFORM) = haiku {
123StdBinCommands
124	isvolume.cpp
125	shutdown.cpp
126	: be : $(haiku-utils_rsrc) ;
127}
128
129# standard commands that need libbe.so, libstdc++.so
130StdBinCommands
131	copyattr.cpp
132	xres.cpp
133	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
134
135# Haiku-specific apps which need libbe.so, libstdc++.so
136if $(TARGET_PLATFORM) = haiku {
137StdBinCommands
138	mountvolume.cpp
139	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
140}
141
142# commands that need libstdc++ only
143StdBinCommands
144	diff_zip.cpp
145	: $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
146
147# standard commands that need libbe.so, libtranslation.so, libsupc++.so
148StdBinCommands
149	translate.cpp
150	: be translation $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
151
152# standard commands that need libbe.so, libmedia.so
153StdBinCommands
154	installsound.cpp
155	: be libmedia.so : $(haiku-utils_rsrc) ;
156
157# standard commands that need libbe.so, libmedia.so, libsupc++.so
158StdBinCommands
159	setvolume.cpp
160	: be libmedia.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
161
162# standard commands that need libbe.so, libmail.so
163StdBinCommands
164	mail.cpp
165	: be libmail.so : $(haiku-utils_rsrc) ;
166
167# standard commands that need libbe.so, libdevice.so
168StdBinCommands
169	listusb.cpp
170	setusbconfig.cpp
171	: be libdevice.so : $(haiku-utils_rsrc) ;
172
173# standard commands that need libbluetooth.so, due the Bluetooth Kit
174StdBinCommands
175	bt_dev_info.cpp
176	: be libbluetooth.so : $(haiku-utils_rsrc) ;
177
178StdBinCommands
179	bt_discovery.cpp
180	: be libbluetooth.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
181
182
183# standard commands that need libbe.so, libtracker.so
184StdBinCommands
185	checkitout.cpp
186	filepanel.cpp
187	: be tracker $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
188
189# standard commands that need libncurses.a
190StdBinCommands
191	watch.c
192	: libncurses.a : $(haiku-utils_rsrc) ;
193
194SubInclude HAIKU_TOP src bin addattr ;
195SubInclude HAIKU_TOP src bin bash ;
196SubInclude HAIKU_TOP src bin bc ;
197SubInclude HAIKU_TOP src bin mail_utils ;
198SubInclude HAIKU_TOP src bin compress ;
199SubInclude HAIKU_TOP src bin coreutils ;
200SubInclude HAIKU_TOP src bin ctags ;
201SubInclude HAIKU_TOP src bin desklink ;
202SubInclude HAIKU_TOP src bin diffutils ;
203SubInclude HAIKU_TOP src bin findutils ;
204SubInclude HAIKU_TOP src bin fwcontrol ;
205SubInclude HAIKU_TOP src bin gawk ;
206SubInclude HAIKU_TOP src bin gdb ;
207SubInclude HAIKU_TOP src bin grep ;
208SubInclude HAIKU_TOP src bin iasl ;
209SubInclude HAIKU_TOP src bin ideinfo ;
210SubInclude HAIKU_TOP src bin keymap ;
211SubInclude HAIKU_TOP src bin less ;
212SubInclude HAIKU_TOP src bin listdev ;
213SubInclude HAIKU_TOP src bin locale ;
214SubInclude HAIKU_TOP src bin make ;
215SubInclude HAIKU_TOP src bin makebootable ;
216#SubInclude HAIKU_TOP src bin makeudfimage ;
217SubInclude HAIKU_TOP src bin mkdepend ;
218SubInclude HAIKU_TOP src bin mkdos ;
219SubInclude HAIKU_TOP src bin mkfs ;
220SubInclude HAIKU_TOP src bin multiuser ;
221SubInclude HAIKU_TOP src bin package ;
222SubInclude HAIKU_TOP src bin patch ;
223SubInclude HAIKU_TOP src bin pc ;
224SubInclude HAIKU_TOP src bin pcmcia-cs ;
225SubInclude HAIKU_TOP src bin playsound ;
226SubInclude HAIKU_TOP src bin rc ;
227SubInclude HAIKU_TOP src bin rmd160 ;
228SubInclude HAIKU_TOP src bin screen_blanker ;
229SubInclude HAIKU_TOP src bin screenmode ;
230SubInclude HAIKU_TOP src bin sed ;
231SubInclude HAIKU_TOP src bin sharutils ;
232SubInclude HAIKU_TOP src bin unrar ;
233SubInclude HAIKU_TOP src bin vim ;
234SubInclude HAIKU_TOP src bin zic ;
235
236# RCS commands
237SubInclude HAIKU_TOP src bin rcs ;
238
239# debugging tools
240SubInclude HAIKU_TOP src bin debug ;
241
242# Network command line tools
243SubInclude HAIKU_TOP src bin network ;
244
245# Compression command line tools
246SubInclude HAIKU_TOP src bin unzip ;
247SubInclude HAIKU_TOP src bin zip ;
248SubInclude HAIKU_TOP src bin gzip ;
249SubInclude HAIKU_TOP src bin bzip2 ;
250SubInclude HAIKU_TOP src bin tar ;
251