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