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