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