{"id":633,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=633"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"sample-code-make-everything","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=633","title":{"rendered":"Sample code: make everything"},"content":{"rendered":"<p>One of the long-lasting traditions with every successive release of the BeOS is the sample code archive (<code>\/boot\/optional\/sample-code<\/code>). It&#8217;s a collection of feature-light, but nevertheless useful programs and pieces of code that developers are free to learn from, or to incorporate into their applications.<br \/>\nNote that if you&#8217;re using BeOS Personal Edition, you&#8217;ll need to <a href=\"\/chunga.php?ID=612\">download the sample code<\/a> separately.<br \/>\nNew in R5 Pro&#8217;s sample-code archive is the ability to compile all of the individual sample-code projects at once. To compile everything at once, fire up a Terminal and issue the following command (all on one line):<br \/>\n\/bin\/sh -c &#8222;cd \/boot\/optional\/sample-code ; cp makefile.all makefile ; make ; rm makefile&#8220;<br \/>\nLet it grind for a while, and voila! You&#8217;ve now compiled every individual project. To make everything on a version of BeOS older than R5, you can simply create a text file called &#8218;makefile&#8216; in <code>\/boot\/optional\/sample-code<\/code>, containing the following:<\/p>\n<pre>\nSUBDIRS =\n\tfolder1\n\tfolder2\n\tfolder3\n\tfolder4\ndefault .DEFAULT :\n\t-@for f in $(SUBDIRS) ; do\n\t\t$(MAKE) -C $$f -f makefile.all $@;\n\tdone\n<\/pre>\n<p>Where folder1 is the name of the first folder that contains sample- code projects, folder2 the second, and so on&#8230; After you&#8217;ve done this, simply type the following into a Terminal to compile everything:<\/p>\n<pre>\/bin\/sh -c \"cd \/boot\/optional\/sample-code ; make\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>One of the long-lasting traditions with every successive release of the BeOS is the sample code archive (\/boot\/optional\/sample-code). It&#8217;s a collection of feature-light, but nevertheless useful programs and pieces of code that developers are free to learn from, or to incorporate into their applications. Note that if you&#8217;re using BeOS Personal Edition, you&#8217;ll need to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[8],"class_list":["post-633","post","type-post","status-publish","format-standard","hentry","tag-misc"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=633"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/633\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}