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