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