xref: /haiku/src/bin/Jamfile (revision 03187b607b2b5eec7ee059f1ead09bdba14991fb)
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 ;
20
21# standard commands that don't need any additional library
22StdBinCommands
23	badblocks.c
24	cal.c
25	catattr.cpp
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	waitfor.c
54#	whoami.c
55	: : $(haiku-utils_rsrc) ;
56
57# Commands which don't need another library that depend on
58# Haiku-specific code
59if $(TARGET_PLATFORM) = haiku {
60StdBinCommands
61	boot_process_done.cpp
62	fdinfo.cpp
63	mount.c
64	rmattr.cpp
65	rmindex.cpp
66	safemode.c
67	unmount.c
68	: : $(haiku-utils_rsrc) ;
69}
70
71# standard commands that need libtermcap.a
72StdBinCommands
73	top.c
74	tput.c
75	: libtermcap.a : $(haiku-utils_rsrc) ;
76
77# standard commands that need libbe.so
78StdBinCommands
79	beep.cpp
80	checkfs.cpp
81	clipboard.cpp
82	df.cpp
83	dpms.cpp
84	draggers.cpp
85#	factor.cpp
86	ffm.cpp
87	iroster.cpp
88	listattr.cpp
89	listfont.cpp
90	listres.cpp
91	mimeset.cpp
92	mkindex.cpp
93	message.cpp
94	modifiers.cpp
95	open.cpp
96	play.cpp
97	query.cpp
98	quit.cpp
99	roster.cpp
100	setdecor.cpp
101	setversion.cpp
102	trash.cpp
103	version.cpp
104	WindowShade.cpp
105#	yes.cpp
106	: be : $(haiku-utils_rsrc) ;
107
108# standard commands that need libbe.so and libsupc++.so
109StdBinCommands
110	alert.cpp
111	dstcheck.cpp
112	hey.cpp
113	reindex.cpp
114	settype.cpp
115	spybmessage.cpp
116	urlwrapper.cpp
117	: be $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
118
119# Haiku-specific apps which need libbe.so
120if $(TARGET_PLATFORM) = haiku {
121StdBinCommands
122	isvolume.cpp
123	shutdown.cpp
124	: be : $(haiku-utils_rsrc) ;
125}
126
127# standard commands that need libbe.so, libstdc++.so
128StdBinCommands
129	copyattr.cpp
130	xres.cpp
131	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
132
133# Haiku-specific apps which need libbe.so, libstdc++.so
134if $(TARGET_PLATFORM) = haiku {
135StdBinCommands
136	mountvolume.cpp
137	: be $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
138}
139
140# commands that need libstdc++ only
141StdBinCommands
142	diff_zip.cpp
143	: $(TARGET_LIBSTDC++) : $(haiku-utils_rsrc) ;
144
145# standard commands that need libbe.so, libtranslation.so, libsupc++.so
146StdBinCommands
147	translate.cpp
148	: be translation $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
149
150# standard commands that need libbe.so, libmedia.so
151StdBinCommands
152	installsound.cpp
153	: be libmedia.so : $(haiku-utils_rsrc) ;
154
155# standard commands that need libbe.so, libmedia.so, libsupc++.so
156StdBinCommands
157	setvolume.cpp
158	: be libmedia.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
159
160# standard commands that need libbe.so, libmail.so
161StdBinCommands
162	mail.cpp
163	: be libmail.so : $(haiku-utils_rsrc) ;
164
165# standard commands that need libbe.so, libdevice.so
166StdBinCommands
167	listusb.cpp
168	setusbconfig.cpp
169	: be libdevice.so : $(haiku-utils_rsrc) ;
170
171# standard commands that need libbluetooth.so, due the Bluetooth Kit
172StdBinCommands
173	bt_dev_info.cpp
174	: be libbluetooth.so : $(haiku-utils_rsrc) ;
175
176StdBinCommands
177	bt_discovery.cpp
178	: be libbluetooth.so $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
179
180
181# standard commands that need libbe.so, libtracker.so
182StdBinCommands
183	filepanel.cpp
184	: be tracker $(TARGET_LIBSUPC++) : $(haiku-utils_rsrc) ;
185
186# standard commands that need libncurses.a
187StdBinCommands
188	watch.c
189	: libncurses.a : $(haiku-utils_rsrc) ;
190
191SubInclude HAIKU_TOP src bin addattr ;
192SubInclude HAIKU_TOP src bin bash ;
193SubInclude HAIKU_TOP src bin bc ;
194SubInclude HAIKU_TOP src bin bemail_utils ;
195SubInclude HAIKU_TOP src bin compress ;
196SubInclude HAIKU_TOP src bin coreutils ;
197SubInclude HAIKU_TOP src bin ctags ;
198SubInclude HAIKU_TOP src bin desklink ;
199SubInclude HAIKU_TOP src bin diffutils ;
200SubInclude HAIKU_TOP src bin findutils ;
201SubInclude HAIKU_TOP src bin fwcontrol ;
202SubInclude HAIKU_TOP src bin gawk ;
203SubInclude HAIKU_TOP src bin gdb ;
204SubInclude HAIKU_TOP src bin grep ;
205SubInclude HAIKU_TOP src bin iasl ;
206SubInclude HAIKU_TOP src bin ideinfo ;
207SubInclude HAIKU_TOP src bin keymap ;
208SubInclude HAIKU_TOP src bin less ;
209SubInclude HAIKU_TOP src bin listdev ;
210SubInclude HAIKU_TOP src bin locale ;
211SubInclude HAIKU_TOP src bin make ;
212SubInclude HAIKU_TOP src bin makebootable ;
213#SubInclude HAIKU_TOP src bin makeudfimage ;
214SubInclude HAIKU_TOP src bin mkdepend ;
215SubInclude HAIKU_TOP src bin mkdos ;
216SubInclude HAIKU_TOP src bin mkfs ;
217SubInclude HAIKU_TOP src bin multiuser ;
218SubInclude HAIKU_TOP src bin patch ;
219SubInclude HAIKU_TOP src bin pc ;
220SubInclude HAIKU_TOP src bin pcmcia-cs ;
221SubInclude HAIKU_TOP src bin playsound ;
222SubInclude HAIKU_TOP src bin rc ;
223SubInclude HAIKU_TOP src bin rmd160 ;
224SubInclude HAIKU_TOP src bin screen_blanker ;
225SubInclude HAIKU_TOP src bin screenmode ;
226SubInclude HAIKU_TOP src bin sed ;
227SubInclude HAIKU_TOP src bin sharutils ;
228SubInclude HAIKU_TOP src bin unrar ;
229SubInclude HAIKU_TOP src bin vim ;
230SubInclude HAIKU_TOP src bin zic ;
231
232# RCS commands
233SubInclude HAIKU_TOP src bin rcs ;
234
235# debugging tools
236SubInclude HAIKU_TOP src bin debug ;
237
238# Network command line tools
239SubInclude HAIKU_TOP src bin network ;
240
241# Compression command line tools
242SubInclude HAIKU_TOP src bin unzip ;
243SubInclude HAIKU_TOP src bin zip ;
244SubInclude HAIKU_TOP src bin gzip ;
245SubInclude HAIKU_TOP src bin bzip2 ;
246SubInclude HAIKU_TOP src bin tar ;
247