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] * run '''./tsar-build.sh release''' (or '''./tsar-build.sh -u -j8 release''' if you want to speed things up) to rebuild the world.