These are the steps needed to cross-compile the mjpeg benchmark and add it to the NetBSD/tsarmips disk image. * create a subdirectory of ''benchs'' (in the src top-directory) holding your program sources (''mjpeg_het'' in this example) * in this subdirectory, create a BSD-style Makefile which will build your sources. You can use [source:/trunk/src/benchs/mjpeg_het/Makefile] as a template. * PROG is the name of the binary created (it will be created in ''/benchs'') * SRCS is the list of sources for PROG * set LDADD and DPADD if you need extra libraries. More informations about BSD Makefiles can be found in [source:/trunk/src/share/mk/bsd.README] * add this subdirectory to the list in ''benchs/Makefile'' * add the binary to the list in ''distrib/sets/lists/base/mi'' (you can cut and paste the mjpeg_het line). * run '''./tsar-build.sh release''' (or '''./tsar-build.sh -u -j8 release''' if you want to speed things up) to rebuild the whole distribution. The disk image in ''tsarmips/installation/diskimages/'' of your release dir should now have your new binary in ''/benchs''