xref: /haiku/src/bin/Jamfile (revision cbed190f71b8aff814bf95539c39a1bcfb953ed8)
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 fortune : fortune.rdef ;
21AddResources hey : hey.rdef ;
22AddResources mimeset : mimeset.rdef ;
23AddResources mountvolume : mountvolume.rdef ;
24AddResources notify : notify.rdef ;
25AddResources urlwrapper : urlwrapper.rdef ;
26
27# standard commands that don't need any additional library
28StdBinCommands
29	badblocks.cpp
30	cal.c
31	chop.c
32	clear.c
33#	csplit.c
34	driveinfo.c
35#	echo.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	eject.cpp
123	hey.cpp
124	reindex.cpp
125	resattr.cpp
126	settype.cpp
127	spybmessage.cpp
128	urlwrapper.cpp
129	: be $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
130
131# commands that need libbe.so, libsupc++.so and liblocale.so
132StdBinCommands
133	dstcheck.cpp
134	: be $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS) : $(haiku-utils_rsrc) ;
135
136# Haiku-specific apps which need libbe.so
137if $(TARGET_PLATFORM) = haiku {
138StdBinCommands
139	isvolume.cpp
140	shutdown.cpp
141	: be : $(haiku-utils_rsrc) ;
142}
143
144# standard commands that need libbe.so, libstdc++.so
145StdBinCommands
146	copyattr.cpp
147	xres.cpp
148	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
149
150# Haiku-specific apps which need libbe.so, libstdc++.so
151if $(TARGET_PLATFORM) = haiku {
152StdBinCommands
153	mountvolume.cpp
154	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
155}
156
157# commands that need libstdc++ only
158StdBinCommands
159	diff_zip.cpp
160	: $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
161
162# standard commands that need libbe.so, libtranslation.so, libsupc++.so
163StdBinCommands
164	translate.cpp
165	: be translation $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
166
167# standard commands that need libbe.so, libtranslation.so, libicon.a, libstdc++.so
168StdBinCommands
169	notify.cpp
170	: be translation libicon.a $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
171
172# standard commands that need libbe.so, libmedia.so
173StdBinCommands
174	installsound.cpp
175	: be libmedia.so : $(haiku-utils_rsrc) ;
176
177# standard commands that need libbe.so, libmedia.so, libsupc++.so
178StdBinCommands
179	setvolume.cpp
180	: be libmedia.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
181
182# standard commands that need libbe.so, libmail.so
183StdBinCommands
184	mail.cpp
185	: be libmail.so : $(haiku-utils_rsrc) ;
186
187# standard commands that need libbe.so, libdevice.so
188StdBinCommands
189	listusb.cpp
190	setusbconfig.cpp
191	: be libdevice.so : $(haiku-utils_rsrc) ;
192
193# standard commands that need libbluetooth.so, due the Bluetooth Kit
194StdBinCommands
195	bt_dev_info.cpp
196	: be libbluetooth.so : $(haiku-utils_rsrc) ;
197
198StdBinCommands
199	bt_discovery.cpp
200	: be libbluetooth.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
201
202
203# standard commands that need libbe.so, libtracker.so
204StdBinCommands
205	checkitout.cpp
206	: be tracker $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
207
208#standard commands that need libbe.so, libtracker.so, liblocale.so
209StdBinCommands
210	filepanel.cpp
211	: be tracker $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS) : $(haiku-utils_rsrc) ;
212
213# standard commands that need libncurses.a
214StdBinCommands
215	watch.c
216	: libncurses.a : $(haiku-utils_rsrc) ;
217
218# Localization of some applications
219DoCatalogs dstcheck
220	: x-vnd.Haiku-cmd-dstconfig
221	: dstcheck.cpp
222;
223
224DoCatalogs filepanel
225	: x-vnd.mmu_man.filepanel
226	: filepanel.cpp
227;
228
229SubInclude HAIKU_TOP src bin addattr ;
230SubInclude HAIKU_TOP src bin bash ;
231SubInclude HAIKU_TOP src bin bc ;
232SubInclude HAIKU_TOP src bin mail_utils ;
233SubInclude HAIKU_TOP src bin compress ;
234SubInclude HAIKU_TOP src bin consoled ;
235SubInclude HAIKU_TOP src bin coreutils ;
236SubInclude HAIKU_TOP src bin ctags ;
237SubInclude HAIKU_TOP src bin desklink ;
238SubInclude HAIKU_TOP src bin diffutils ;
239SubInclude HAIKU_TOP src bin findutils ;
240SubInclude HAIKU_TOP src bin fwcontrol ;
241SubInclude HAIKU_TOP src bin gawk ;
242SubInclude HAIKU_TOP src bin gdb ;
243SubInclude HAIKU_TOP src bin grep ;
244SubInclude HAIKU_TOP src bin hid_decode ;
245SubInclude HAIKU_TOP src bin iasl ;
246SubInclude HAIKU_TOP src bin ideinfo ;
247SubInclude HAIKU_TOP src bin keymap ;
248SubInclude HAIKU_TOP src bin less ;
249SubInclude HAIKU_TOP src bin listdev ;
250SubInclude HAIKU_TOP src bin locale ;
251SubInclude HAIKU_TOP src bin makebootable ;
252#SubInclude HAIKU_TOP src bin makeudfimage ;
253SubInclude HAIKU_TOP src bin mkdos ;
254SubInclude HAIKU_TOP src bin mkfs ;
255SubInclude HAIKU_TOP src bin multiuser ;
256SubInclude HAIKU_TOP src bin package ;
257SubInclude HAIKU_TOP src bin package_repo ;
258SubInclude HAIKU_TOP src bin patch ;
259SubInclude HAIKU_TOP src bin pc ;
260SubInclude HAIKU_TOP src bin pcmcia-cs ;
261SubInclude HAIKU_TOP src bin pkgman ;
262SubInclude HAIKU_TOP src bin playsound ;
263SubInclude HAIKU_TOP src bin rc ;
264SubInclude HAIKU_TOP src bin rmd160 ;
265SubInclude HAIKU_TOP src bin screen_blanker ;
266SubInclude HAIKU_TOP src bin screenmode ;
267SubInclude HAIKU_TOP src bin sharutils ;
268SubInclude HAIKU_TOP src bin unrar ;
269SubInclude HAIKU_TOP src bin zic ;
270
271# RCS commands
272SubInclude HAIKU_TOP src bin rcs ;
273
274# debugging tools
275SubInclude HAIKU_TOP src bin debug ;
276
277# Network command line tools
278SubInclude HAIKU_TOP src bin network ;
279
280# Compression command line tools
281SubInclude HAIKU_TOP src bin unzip ;
282SubInclude HAIKU_TOP src bin zip ;
283SubInclude HAIKU_TOP src bin gzip ;
284SubInclude HAIKU_TOP src bin bzip2 ;
285