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